Defect #12241
closed
Error creating tasks in crontab (Redmine 1.3)
Added by Ilya Levy over 12 years ago.
Updated over 12 years ago.
Description
Hello!
Redmine Version 1.3
Please help.
I'm trying to set up a crontab tasks are received by mail.
run crontab
*/1 * * * * cd $HOME/www/site2/public_html/; rake -s Rakefile redmine:email:receive_pop3 RAILS_ENV="production" > $HOME/tmp/redmine-email.log 2>&1
getting error
/home/my/www/site2/public_html/vendor/rails/activesupport/lib/active_support/inflector.rb:208: [BUG] Segmentation fault
ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-freebsd8.2], MBARI 0x6770, Ruby Enterprise Edition 2010.02
Code that causes the error
207 def underscore(camel_cased_word)
208 camel_cased_word.to_s.gsub(/::/, '/').
209 gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
210 gsub(/([a-z\d])([A-Z])/,'\1_\2').
211 tr("-", "_").
212 downcase
213 end
How can this be corrected?
Thank you!
Have you tried this with a more recent version of Redmine (1.4.4 or 2.1.2) ?
- Category set to Email receiving
ruby 1.8.7 (2010-04-19 patchlevel 253) is too old.
- Affected version (unused) set to 1.3.0
- Affected version set to 1.3.0
Daniel Felix wrote:
Have you tried this with a more recent version of Redmine (1.4.4 or 2.1.2) ?
No, i did not. In the console, without the crontab, the script works correctly.
Toshi MARUYAMA wrote:
ruby 1.8.7 (2010-04-19 patchlevel 253) is too old.
Yes, but in the console, without the crontab, the script works correctly. On the same Ruby 1.8.7.
Ilya Levy wrote:
No, i did not. In the console, without the crontab, the script works correctly.
Well i will try it on a testserver later. But, I think, that my current installation uses this feature too.
Some tipps:
- Check your cronusers permissions. Try this cron task with your console user. Maybe this could be a faulty permission.
- Try this command by adding the parameter "host" (see: http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails).
- Try to install a newer version of ruby and redmine and re-run bundler. Maybe some of the programm packages itself have some bugs. It's not bad to have a more recent version. ;-)
If your running ubuntu or something like this, maybe you could try rvm (https://rvm.io/) which enables you to run different ruby versions on one server. Ubuntu still uses some older ruby-versions. This way, you can upgrade to a newer version without loosing the older one.
- Status changed from New to Closed
- Resolution set to Invalid
Please, no technical support in the issue tracker.
Thank you all! Problem was solved, prescribed path
GEM_HOME=/home/my/.gems
GEM_PATH=/home/my/.gems:/usr/local/lib/ruby/gems/1.8/
Also available in: Atom
PDF