Defect #3560

reposman.rb and crontab

Added by Dmitry Plaschinsky over 12 years ago. Updated almost 12 years ago.

Status:ClosedStart date:2009-06-30
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:No feedback Affected version:

Description

Hello,i'm a russian user of Redmine, so sorry for my bad English :(
I have installed and configured Redmine on FreeBSD 7.2 with Apache22 and integration with SVN
I have some trouble with automatic repository creation by reposman.rb and trougth crontab

Normal operation in cli:
#/usr/local/bin/ruby /usr/local/www/redmine/extra/svn/reposman.rb -r rm -s /data/svn/repositories -o www -u http://rm/svn/ -v >> /var/log/reposman.log

treating project redmine
repository /data/svn/repositories/creatf registered in Redmine with url http://rm/svn/creatf
repository /data/svn/repositories/creatf created
it's ok
but the same operation trougth crontab failed:
#cat /etc/crontab
*/5 * * * * root /usr/local/bin/ruby /usr/local/www/redmine/extra/svn/reposman.rb -r rm -s /data/svn/repositories -o www -u http://rm/svn/ -v >> /var/log/reposman.log

#tail -f /var/log/reposman.log

querying Redmine for projects...
retrieved 1 projects
treating project redmine
unable to create /data/svn/repositories/creatf : "svnadmin create /data/svn/repositories/creatf" failed

History

#1 Updated by Jean-Philippe Lang over 12 years ago

Maybe you could try to see why svnadmin fails on your system when running with cron.

#2 Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from New to Closed
  • Resolution set to No feedback

#3 Updated by Joachim Fritschi almost 12 years ago

You have to append the option:

--command='/usr/local/bin/svnadmin create'

FreeBSD has installs all ports in /usr/local. Crontab only has PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin set. This means reposman wont find the svnadmin binary unless you extend your PATH or add the custom path.

Also available in: Atom PDF