Project

General

Profile

Actions

Defect #21907

closed

receive emails fails

Added by Dmitry Kuznetsov about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi,
I'm trying to configure receive emails, but it fails:

rake -f /usr/local/rvm/rubies/ruby-2.0.0-p598/bin/rake redmine:email:receive_imap RAILS_ENV="production" host=ipaddr username=redmineuser password=redminepass --trace
rake aborted!
SystemStackError: stack level too deep
/usr/local/rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/optparse.rb:1515

same error with ruby-2.1.5

I also tried plugin (https://github.com/luismaia/redmine_email_fetcher) - if I click on "Fetch" via web interface - it works, but via console fails with same error.

config:

# ruby bin/about

sh: darcs: command not found
sh: hg: command not found
sh: bzr: command not found
Environment:
  Redmine version                3.2.0.stable
  Ruby version                   2.0.0-p598 (2014-11-13) [x86_64-linux]
  Rails version                  4.2.5
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.11
  Git                            1.7.1
  Filesystem                     
Redmine plugins:
  a_common_libs                  2.0.0
  ajax_counters                  1.2.0
  extra_queries                  2.0.3
  redmine_codebutton             0.0.1
  redmine_default_assign         0.5
  redmine_default_version        0.0.2
  redmine_dmsf                   1.5.1 stable
  redmine_monitoring_controlling 0.1.1
  redmine_people                 1.1.1
  redmine_stats                  0.0.2
  redmine_tweaks                 0.5.5
  rm_user_mentions               1.0.0
  unread_issues                  2.0.0
  usability                      2.0.0

same problem at Redmine 2.6.3

Actions #1

Updated by Toshi MARUYAMA about 8 years ago

  • Status changed from New to Needs feedback

Try without some plugins.

Actions #2

Updated by Dmitry Kuznetsov about 8 years ago

Toshi MARUYAMA wrote:

Try without some plugins.

Remove all of them, no changes:

# ruby bin/about

sh: darcs: command not found
sh: hg: command not found
sh: bzr: command not found
Environment:
  Redmine version                3.2.0.stable
  Ruby version                   2.0.0-p598 (2014-11-13) [x86_64-linux]
  Rails version                  4.2.5
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.11
  Git                            1.7.1
  Filesystem                     
Redmine plugins:
  no plugin installed
# rake -f /usr/local/rvm/rubies/ruby-2.0.0-p598/bin/rake redmine:email:receive_imap host=ipaddr username=redmineuser password=redminepass  RAILS_ENV=production --trace 
rake aborted!
SystemStackError: stack level too deep
/usr/local/rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/optparse.rb:1515

Actions #3

Updated by Toshi MARUYAMA about 8 years ago

Try updating Ruby.

Actions #4

Updated by Dmitry Kuznetsov about 8 years ago

Toshi MARUYAMA wrote:

Try updating Ruby.

Same problem with 2.1.4:

# rake -f /usr/local/rvm/rubies/ruby-2.1.4/bin/rake redmine:email:receive_imap host=ipaddr username=redmineuser password=redminepass  RAILS_ENV=production --trace
rake aborted!
SystemStackError: stack level too deep
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/optparse.rb:329

and 2.1.5:
# rake -f /usr/local/rvm/rubies/ruby-2.1.5/bin/rake redmine:email:receive_imap host=ipaddr username=redmineuser password=redminepass RAILS_ENV=production --trace
rake aborted!
SystemStackError: stack level too deep
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/optparse.rb:329

Actions #5

Updated by Toshi MARUYAMA about 8 years ago

Try "bundle exec rake ..."

Actions #6

Updated by Dmitry Kuznetsov about 8 years ago

Toshi MARUYAMA wrote:

Try "bundle exec rake ..."

Runs without errors, marking email as read, but doesn't create ticket.

Actions #7

Updated by Toshi MARUYAMA about 8 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid

Please use forum for question.

Actions

Also available in: Atom PDF