|
From: Yoav L. <yla...@gm...> - 2007-04-18 12:08:55
|
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 <jor...@gm...> 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 <yla...@gm...> 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 < jor...@gm...> 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 < yla...@gm...> 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 <fre...@gm...> wrote: > > > > > > > > > > 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 < jor...@gm...> 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 > > > > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > > _______________________________________________ > > > > > > Artifactory-users mailing list > > > > > > Art...@li... > > > > > > 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 > > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > _______________________________________________ > > > > > Artifactory-users mailing list > > > > > Art...@li... > > > > > 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 > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > > > Artifactory-users mailing list > > > > Art...@li... > > > > 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. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Artifactory-users mailing list > > > Art...@li... > > > 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. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Artifactory-users mailing list > > Art...@li... > > 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. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Artifactory-users mailing list > Art...@li... > https://lists.sourceforge.net/lists/listinfo/artifactory-users > > |