Actions
Defect #25593
closedcron failed "Repository.fetch_changesets"
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
I added "recheck svn" to cron for root and recieved error, if run script to manual is it worked.
cron root:
#!/bin/bash LOCALDIR=/var/www/redmine/www PATH=/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin export PATH LOCALDIR SHELL cd $LOCALDIR && rails runner "Repository.fetch_changesets" -e production
/var/mail/root:
/usr/local/bin/rails:22:in `<main>': undefined method `activate_bin_path' for Gem:Module (NoMethodError)
same, I tryed change variable SHELL=/bin/bash to /bin/sh and without succesfull.
info:
[root@redmine ~]# ruby -v ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux] [root@redmine ~]# rails -v Rails 5.0.2
Maybe, its problems because owner $LOCALDIR as user apache?
Files
Updated by Toshi MARUYAMA over 7 years ago
- Category deleted (
Rails support) - Status changed from New to Closed
- Resolution set to Invalid
Please use forum for question.
Actions