|
From: Jorg H. <jor...@gm...> - 2007-04-17 13:46:00
|
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
>
>
|