Project

General

Profile

Actions

Defect #25593

closed

cron failed "Repository.fetch_changesets"

Added by Kirill Kolchanov about 7 years ago. Updated about 7 years ago.

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

strace_rails_runner (75 KB) strace_rails_runner strace cron command Kirill Kolchanov, 2017-04-12 10:35
Actions #1

Updated by Toshi MARUYAMA about 7 years ago

  • Category deleted (Rails support)
  • Status changed from New to Closed
  • Resolution set to Invalid

Please use forum for question.

Actions

Also available in: Atom PDF