backup implemented ?

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

backup implemented ?

Jorg Heymans-4
Hi,

Is the backup feature implemented ? I configured this :

    <backupDir>/backup/artifactory</backupDir>
    <!-- Backup every weekday at 11pm  -->
    <backupCronExp>0 0 23 * MON-FRI</backupCronExp>

but during startup i always get

2007-04-13 15:19:06,157 [INFO ] artifactory.scheduling.ArtifactorySchedulerFactoryBean  - Starting Quartz Scheduler now
2007-04-13 15:19:06,618 [WARN ] artifactory.backup.Backup   - No backup cron expression is configured. Backup will be disabled.


Regards
Jorg

Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Frederic Simon-3
The backupCronExp does not look good.
In:
http://www.jfrog.org/sites/artifactory/latest/configuration.html
I added a pointer to:
http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html

It always need a * or ? somewhere? Never really understood how it works?
Yours should be like: "0 0 23 ? * MON-FRI"

On 4/13/07, Jorg Heymans <[hidden email]> wrote:
Hi,

Is the backup feature implemented ? I configured this :

    <backupDir>/backup/artifactory</backupDir>
    <!-- Backup every weekday at 11pm  -->
    <backupCronExp>0 0 23 * MON-FRI</backupCronExp>

but during startup i always get

2007-04-13 15:19:06,157 [INFO ] artifactory.scheduling.ArtifactorySchedulerFactoryBean  - Starting Quartz Scheduler now
2007-04-13 15:19:06,618 [WARN ] artifactory.backup.Backup   - No backup cron expression is configured. Backup will be disabled.


Regards
Jorg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/artifactory-users


Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Yoav Landman
Administrator
Backup sure does work.
The ? is required since you need to "negate" the relevance of either day-of-month or day-of-week if you use one on them (in your case it is day-of-month you need to mark as irrelevant, hence 0 0 23 ? * MON-FRI).
There is an issue, however, with the bad cron expression error not being reported correctly. I applied a fix for that. Thanks.


On 4/13/07, Frederic Simon <[hidden email]> wrote:
The backupCronExp does not look good.
In:
<a href="http://www.jfrog.org/sites/artifactory/latest/configuration.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.jfrog.org/sites/artifactory/latest/configuration.html
I added a pointer to:
<a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html

It always need a * or ? somewhere? Never really understood how it works?
Yours should be like: "0 0 23 ? * MON-FRI"

On 4/13/07, Jorg Heymans <[hidden email]> wrote:
Hi,

Is the backup feature implemented ? I configured this :

    <backupDir>/backup/artifactory</backupDir>
    <!-- Backup every weekday at 11pm  -->
    <backupCronExp>0 0 23 * MON-FRI</backupCronExp>

but during startup i always get

2007-04-13 15:19:06,157 [INFO ] artifactory.scheduling.ArtifactorySchedulerFactoryBean  - Starting Quartz Scheduler now
2007-04-13 15:19:06,618 [WARN ] artifactory.backup.Backup   - No backup cron expression is configured. Backup will be disabled.


Regards
Jorg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/artifactory-users


Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Jorg Heymans-4
OK the backup seems to kick in fine now. There is a stacktrace in the logs however :

2007-04-16 23:00:01,632 [ERROR] quartz.core.JobRunShell  - Job DEFAULT.backupJobDetail threw an unhandled Exception:
java.lang.RuntimeException : Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run (JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: javax.jcr.lock.LockException: Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable(NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump (JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java :287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:161)
        ... 6 more
2007-04-16 23:00:01,641 [ERROR] quartz.core.ErrorLogger   - Job (DEFAULT.backupJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.RuntimeException: Failed to execute JcrCallback.]
        at org.quartz.core.JobRunShell.run (JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.RuntimeException: Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        ... 1 more
Caused by: javax.jcr.lock.LockException : Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable (NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java :378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:161)

-------------------

Also, it seems that the backup job stops after this error. Repositories that are defined after patch-repo in the configuration are not included in the backup.

Regards,
Jorg

Regards
Jorg

On 4/13/07, Yoav Landman <[hidden email]> wrote:
Backup sure does work.
The ? is required since you need to "negate" the relevance of either day-of-month or day-of-week if you use one on them (in your case it is day-of-month you need to mark as irrelevant, hence 0 0 23 ? * MON-FRI).
There is an issue, however, with the bad cron expression error not being reported correctly. I applied a fix for that. Thanks.



On 4/13/07, Frederic Simon <[hidden email]> wrote:
The backupCronExp does not look good.
In:
<a href="http://www.jfrog.org/sites/artifactory/latest/configuration.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.jfrog.org/sites/artifactory/latest/configuration.html
I added a pointer to:
<a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html

It always need a * or ? somewhere? Never really understood how it works?
Yours should be like: "0 0 23 ? * MON-FRI"

On 4/13/07, Jorg Heymans <[hidden email]> wrote:
Hi,

Is the backup feature implemented ? I configured this :

    <backupDir>/backup/artifactory</backupDir>
    <!-- Backup every weekday at 11pm  -->
    <backupCronExp>0 0 23 * MON-FRI</backupCronExp>

but during startup i always get

2007-04-13 15:19:06,157 [INFO ] artifactory.scheduling.ArtifactorySchedulerFactoryBean  - Starting Quartz Scheduler now
2007-04-13 15:19:06,618 [WARN ] artifactory.backup.Backup   - No backup cron expression is configured. Backup will be disabled.


Regards
Jorg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/artifactory-users


Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Yoav Landman
Administrator
What version of Artifactory are you using?
Did you update from an older version? If so, how did you perform the upgrade?

On 4/17/07, Jorg Heymans < [hidden email]> wrote:
OK the backup seems to kick in fine now. There is a stacktrace in the logs however :

2007-04-16 23:00:01,632 [ERROR] quartz.core.JobRunShell  - Job DEFAULT.backupJobDetail threw an unhandled Exception:
java.lang.RuntimeException : Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run (JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: javax.jcr.lock.LockException: Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable(NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump (JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java :287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:161)
        ... 6 more
2007-04-16 23:00:01,641 [ERROR] quartz.core.ErrorLogger   - Job (DEFAULT.backupJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.RuntimeException: Failed to execute JcrCallback.]
        at org.quartz.core.JobRunShell.run (JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.RuntimeException: Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        ... 1 more
Caused by: javax.jcr.lock.LockException : Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable (NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java :378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:161)

-------------------

Also, it seems that the backup job stops after this error. Repositories that are defined after patch-repo in the configuration are not included in the backup.

Regards,
Jorg

Regards
Jorg


On 4/13/07, Yoav Landman <[hidden email]> wrote:
Backup sure does work.
The ? is required since you need to "negate" the relevance of either day-of-month or day-of-week if you use one on them (in your case it is day-of-month you need to mark as irrelevant, hence 0 0 23 ? * MON-FRI).
There is an issue, however, with the bad cron expression error not being reported correctly. I applied a fix for that. Thanks.



On 4/13/07, Frederic Simon <[hidden email]> wrote:
The backupCronExp does not look good.
In:
<a href="http://www.jfrog.org/sites/artifactory/latest/configuration.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.jfrog.org/sites/artifactory/latest/configuration.html
I added a pointer to:
<a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html

It always need a * or ? somewhere? Never really understood how it works?
Yours should be like: "0 0 23 ? * MON-FRI"

On 4/13/07, Jorg Heymans <[hidden email]> wrote:
Hi,

Is the backup feature implemented ? I configured this :

    <backupDir>/backup/artifactory</backupDir>
    <!-- Backup every weekday at 11pm  -->
    <backupCronExp>0 0 23 * MON-FRI</backupCronExp>

but during startup i always get

2007-04-13 15:19:06,157 [INFO ] artifactory.scheduling.ArtifactorySchedulerFactoryBean  - Starting Quartz Scheduler now
2007-04-13 15:19:06,618 [WARN ] artifactory.backup.Backup   - No backup cron expression is configured. Backup will be disabled.


Regards
Jorg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/powerbar/db2/" target="_blank">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank"> https://lists.sourceforge.net/lists/listinfo/artifactory-users


Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Jorg Heymans-4
Hi Yoav,

I unzipped the latest RC0 version to a new directory and copied over the jcr directory to data/jcr as specified in the installation instructions.

Jorg

On 4/17/07, Yoav Landman <[hidden email]> wrote:
What version of Artifactory are you using?
Did you update from an older version? If so, how did you perform the upgrade?

On 4/17/07, Jorg Heymans < [hidden email]> wrote:
OK the backup seems to kick in fine now. There is a stacktrace in the logs however :

2007-04-16 23:00:01,632 [ERROR] quartz.core.JobRunShell  - Job DEFAULT.backupJobDetail threw an unhandled Exception:
java.lang.RuntimeException : Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run (JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: javax.jcr.lock.LockException: Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable(NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump (JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java :287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:161)
        ... 6 more
2007-04-16 23:00:01,641 [ERROR] quartz.core.ErrorLogger   - Job (DEFAULT.backupJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.RuntimeException: Failed to execute JcrCallback.]
        at org.quartz.core.JobRunShell.run (JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.RuntimeException: Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        ... 1 more
Caused by: javax.jcr.lock.LockException : Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable (NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java :378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:161)

-------------------

Also, it seems that the backup job stops after this error. Repositories that are defined after patch-repo in the configuration are not included in the backup.

Regards,
Jorg

Regards
Jorg


On 4/13/07, Yoav Landman <[hidden email]> wrote:
Backup sure does work.
The ? is required since you need to "negate" the relevance of either day-of-month or day-of-week if you use one on them (in your case it is day-of-month you need to mark as irrelevant, hence 0 0 23 ? * MON-FRI).
There is an issue, however, with the bad cron expression error not being reported correctly. I applied a fix for that. Thanks.



On 4/13/07, Frederic Simon <[hidden email]> wrote:
The backupCronExp does not look good.
In:
<a href="http://www.jfrog.org/sites/artifactory/latest/configuration.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.jfrog.org/sites/artifactory/latest/configuration.html
I added a pointer to:
<a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html

It always need a * or ? somewhere? Never really understood how it works?
Yours should be like: "0 0 23 ? * MON-FRI"

On 4/13/07, Jorg Heymans <[hidden email]> wrote:
Hi,

Is the backup feature implemented ? I configured this :

    <backupDir>/backup/artifactory</backupDir>
    <!-- Backup every weekday at 11pm  -->
    <backupCronExp>0 0 23 * MON-FRI</backupCronExp>

but during startup i always get

2007-04-13 15:19:06,157 [INFO ] artifactory.scheduling.ArtifactorySchedulerFactoryBean  - Starting Quartz Scheduler now
2007-04-13 15:19:06,618 [WARN ] artifactory.backup.Backup   - No backup cron expression is configured. Backup will be disabled.


Regards
Jorg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a href="http://sourceforge.net/powerbar/db2/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/powerbar/db2/" target="_blank">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank"> https://lists.sourceforge.net/lists/listinfo/artifactory-users


Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Yoav Landman
Administrator
You can try deleting the problematic artifact group and redeploy it.
Another option is deleting the whole repo content and importing an export of it from the old Artifactory.
Finally, you can try exporting all the repos from the old version and importing them back to the new one (the other method suggested in the installation instruction). This is the "cleanest" option.as it is using a fresh repository to start with.

BTW - We are adding a manual backup option (for all repositories), so it will be easier to test and use the backup output (RTFACT-110).

On 4/18/07, Jorg Heymans <[hidden email]> wrote:
Hi Yoav,

I unzipped the latest RC0 version to a new directory and copied over the jcr directory to data/jcr as specified in the installation instructions.

Jorg


On 4/17/07, Yoav Landman <[hidden email]> wrote:
What version of Artifactory are you using?
Did you update from an older version? If so, how did you perform the upgrade?

On 4/17/07, Jorg Heymans < [hidden email]> wrote:
OK the backup seems to kick in fine now. There is a stacktrace in the logs however :

2007-04-16 23:00:01,632 [ERROR] quartz.core.JobRunShell  - Job DEFAULT.backupJobDetail threw an unhandled Exception:
java.lang.RuntimeException : Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run (JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: javax.jcr.lock.LockException: Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable(NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump (JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java :287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:161)
        ... 6 more
2007-04-16 23:00:01,641 [ERROR] quartz.core.ErrorLogger   - Job (DEFAULT.backupJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.RuntimeException: Failed to execute JcrCallback.]
        at org.quartz.core.JobRunShell.run (JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.RuntimeException: Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.exportToDir(JcrRepo.java:281)
        at org.artifactory.repo.CentralConfig.backupRepos(CentralConfig.java:157)
        at org.artifactory.repo.CentralConfig.backupRepos (CentralConfig.java:148)
        at org.artifactory.backup.BackupJob.execute(BackupJob.java:24)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        ... 1 more
Caused by: javax.jcr.lock.LockException : Unable to perform locking operation on non-lockable node: /patch-repo/xdoclet/maven2-xdoclet2-plugin/2.0.5-18042006/maven2-x
doclet2-plugin-2.0.5-18042006.jar/jcr:content
        at org.apache.jackrabbit.core.NodeImpl.checkLockable (NodeImpl.java:4186)
        at org.apache.jackrabbit.core.NodeImpl.lock(NodeImpl.java:4067)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:356)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java :378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.jcr.JcrHelper.dump(JcrHelper.java:378)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:287)
        at org.artifactory.repo.JcrRepo$6.doInJcr(JcrRepo.java:281)
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:161)

-------------------

Also, it seems that the backup job stops after this error. Repositories that are defined after patch-repo in the configuration are not included in the backup.

Regards,
Jorg

Regards
Jorg


On 4/13/07, Yoav Landman <[hidden email]> wrote:
Backup sure does work.
The ? is required since you need to "negate" the relevance of either day-of-month or day-of-week if you use one on them (in your case it is day-of-month you need to mark as irrelevant, hence 0 0 23 ? * MON-FRI).
There is an issue, however, with the bad cron expression error not being reported correctly. I applied a fix for that. Thanks.



On 4/13/07, Frederic Simon <[hidden email]> wrote:
The backupCronExp does not look good.
In:
<a href="http://www.jfrog.org/sites/artifactory/latest/configuration.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.jfrog.org/sites/artifactory/latest/configuration.html
I added a pointer to:
<a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html

It always need a * or ? somewhere? Never really understood how it works?
Yours should be like: "0 0 23 ? * MON-FRI"

On 4/13/07, Jorg Heymans <[hidden email]> wrote:
Hi,

Is the backup feature implemented ? I configured this :

    <backupDir>/backup/artifactory</backupDir>
    <!-- Backup every weekday at 11pm  -->
    <backupCronExp>0 0 23 * MON-FRI</backupCronExp>

but during startup i always get

2007-04-13 15:19:06,157 [INFO ] artifactory.scheduling.ArtifactorySchedulerFactoryBean  - Starting Quartz Scheduler now
2007-04-13 15:19:06,618 [WARN ] artifactory.backup.Backup   - No backup cron expression is configured. Backup will be disabled.


Regards
Jorg


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a href="http://sourceforge.net/powerbar/db2/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a href="http://sourceforge.net/powerbar/db2/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/powerbar/db2/" target="_blank">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank"> https://lists.sourceforge.net/lists/listinfo/artifactory-users


Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Jorg Heymans-4
I
On 4/18/07, Yoav Landman <[hidden email]> wrote:
You can try deleting the problematic artifact group and redeploy it.
Another option is deleting the whole repo content and importing an export of it from the old Artifactory.
Finally, you can try exporting all the repos from the old version and importing them back to the new one (the other method suggested in the installation instruction). This is the "cleanest" <a href="http://option.as" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">option.as it is using a fresh repository to start with.

It seems that exporting/re-importing is the only clean solution. Perhaps the instructions on how to copy the jcr data directory should be removed alltogether.

The funny thing is, i tried booting the older artifactory version again and when i go to the repository browser there is nothing anymore. Not even the tree widget appears. The jcr directory is still there though. Anyway, so i went to the import/export module and when i tried to export the content there i get the same locking error.

So it seems that my artifacts are trapped now in the jcr repositories ... is there a way to reset this locking somehow or access the jcr repository outside of artifactory ?

BTW - We are adding a manual backup option (for all repositories), so it will be easier to test and use the backup output (RTFACT-110).

Cool !

Jorg

Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Yoav Landman
Administrator


On 4/18/07, Jorg Heymans <[hidden email]> wrote:
I
On 4/18/07, Yoav Landman <[hidden email]> wrote:
You can try deleting the problematic artifact group and redeploy it.
Another option is deleting the whole repo content and importing an export of it from the old Artifactory.
Finally, you can try exporting all the repos from the old version and importing them back to the new one (the other method suggested in the installation instruction). This is the "cleanest" <a href="http://option.as" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">option.as it is using a fresh repository to start with.

It seems that exporting/re-importing is the only clean solution. Perhaps the instructions on how to copy the jcr data directory should be removed alltogether.
The funny thing is, i tried booting the older artifactory version again and when i go to the repository browser there is nothing anymore. Not even the tree widget appears. The jcr directory is still there though. Anyway, so i went to the import/export module and when i tried to export the content there i get the same locking error.

Odd. There is no reason for this to happen. Perhaps there is now mixed data in your repo or some mixed configuration. We never had  jcr data corruption, not even with heavily used repositories of tens of GBs.
Anyway, I agree that the clean procedure of export/import should be the single way to go.

So it seems that my artifacts are trapped now in the jcr repositories ... is there a way to reset this locking somehow or access the jcr repository outside of artifactory ?

I am afraid not - just to use the backup/export. However, if you maintained the old "repos" folder (now called "data") and it was working fine and wasn't corrupted outside of Artifactory, there is no reason you shouldn't be able to switch back to the previous version and use it to do the export.

HTH

BTW - We are adding a manual backup option (for all repositories), so it will be easier to test and use the backup output (RTFACT-110).

Cool !

Jorg


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sourceforge.net/powerbar/db2/" target="_blank">http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank"> https://lists.sourceforge.net/lists/listinfo/artifactory-users


Reply | Threaded
Open this post in threaded view
|

Re: backup implemented ?

Jorg Heymans-4
On 4/18/07, Yoav Landman <[hidden email]> wrote:

Odd. There is no reason for this to happen. Perhaps there is now mixed data in your repo or some mixed configuration. We never had  jcr data corruption, not even with heavily used repositories of tens of GBs.

I unzipped a new copy of 1.2.0.1 and started it. I go to the repository browser and again the widget does not appear. The logs don't show any error message. Are you sure there is nothing that is somehow shared or reused between instances ?

Anyway, I agree that the clean procedure of export/import should be the single way to go.

So it seems that my artifacts are trapped now in the jcr repositories ... is there a way to reset this locking somehow or access the jcr repository outside of artifactory ?

I am afraid not - just to use the backup/export. However, if you maintained the old "repos" folder (now called "data") and it was working fine and wasn't corrupted outside of Artifactory, there is no reason you shouldn't be able to switch back to the previous version and use it to do the export.

I agree, but somehow i've managed to 'bury' my content in the jcr repositories and i'll have to rebuild it from scratch.

IMO (and i'm not saying this is in the scope of artifactory), there should always be some brute force tool that allows you to get the content out, regardless of corruption/locking etc. At the end of the day we're still talking java processes und overworked administrators, so anything can happen :-)

Cheers,
Jorg