Project

General

Profile

Actions

Defect #3560

closed

reposman.rb and crontab

Added by Dmitry Plaschinsky over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-06-30
Due date:
% Done:

0%

Estimated time:
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

Actions #1

Updated by Jean-Philippe Lang over 14 years ago

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

Actions #2

Updated by Jean-Philippe Lang over 14 years ago

  • Status changed from New to Closed
  • Resolution set to No feedback
Actions #3

Updated by Joachim Fritschi about 14 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.

Actions

Also available in: Atom PDF