cron failed run "Repository.fetch_changesets"
Added by Kirill Kolchanov over 7 years ago
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 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?
Replies (1)
RE: cron failed run "Repository.fetch_changesets" - Added by Kirill Kolchanov over 7 years ago
it doesn't help:
$> gem uninstall rubygems-update -a -x --force $> gem uninstall bundler -a -x --force $> gem update --system $> gem install bundler
and change file /usr/local/bin/rails in line 22: 'activate_bin_path' to 'bin_path'.