Actions
Defect #21673
closedActionView::Template::Error: Cannot visit ThreadSafe::Array
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
executing bundle exec rake redmine:send_reminders days=7 RAILS_ENV="production" results in:
rake aborted! ActionView::Template::Error: Cannot visit ThreadSafe::Array /home/npticket/apps/npticket/current/app/models/user.rb:737:in `anonymous' /home/npticket/apps/npticket/current/app/models/user.rb:731:in `current' /home/npticket/apps/npticket/current/app/models/issue.rb:1242:in `css_classes' /home/npticket/apps/npticket/current/app/helpers/application_helper.rb:87:in `link_to_issue' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:5:in `block in _app_views_mailer_reminder_html_erb__2458635835046685007_70109836468080' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:4:in `each' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:4:in `_app_views_mailer_reminder_html_erb__2458635835046685007_70109836468080' /home/npticket/apps/npticket/current/app/models/mailer.rb:439:in `block in mail' /home/npticket/apps/npticket/current/app/models/mailer.rb:437:in `mail' /home/npticket/apps/npticket/current/app/models/mailer.rb:110:in `reminder' /home/npticket/apps/npticket/current/app/models/mailer.rb:450:in `initialize' /home/npticket/apps/npticket/current/config/initializers/10-patches.rb:154:in `deliver' /home/npticket/apps/npticket/current/app/models/mailer.rb:365:in `block in reminders' /home/npticket/apps/npticket/current/app/models/mailer.rb:364:in `each' /home/npticket/apps/npticket/current/app/models/mailer.rb:364:in `reminders' /home/npticket/apps/npticket/current/lib/tasks/reminder.rake:42:in `block (3 levels) in <top (required)>' /home/npticket/apps/npticket/current/app/models/mailer.rb:386:in `with_synched_deliveries' /home/npticket/apps/npticket/current/lib/tasks/reminder.rake:41:in `block (2 levels) in <top (required)>' TypeError: Cannot visit ThreadSafe::Array /home/npticket/apps/npticket/current/app/models/user.rb:737:in `anonymous' /home/npticket/apps/npticket/current/app/models/user.rb:731:in `current' /home/npticket/apps/npticket/current/app/models/issue.rb:1242:in `css_classes' /home/npticket/apps/npticket/current/app/helpers/application_helper.rb:87:in `link_to_issue' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:5:in `block in _app_views_mailer_reminder_html_erb__2458635835046685007_70109836468080' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:4:in `each' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:4:in `_app_views_mailer_reminder_html_erb__2458635835046685007_70109836468080' /home/npticket/apps/npticket/current/app/models/mailer.rb:439:in `block in mail' /home/npticket/apps/npticket/current/app/models/mailer.rb:437:in `mail' /home/npticket/apps/npticket/current/app/models/mailer.rb:110:in `reminder' /home/npticket/apps/npticket/current/app/models/mailer.rb:450:in `initialize' /home/npticket/apps/npticket/current/config/initializers/10-patches.rb:154:in `deliver' /home/npticket/apps/npticket/current/app/models/mailer.rb:365:in `block in reminders' /home/npticket/apps/npticket/current/app/models/mailer.rb:364:in `each' /home/npticket/apps/npticket/current/app/models/mailer.rb:364:in `reminders' /home/npticket/apps/npticket/current/lib/tasks/reminder.rake:42:in `block (3 levels) in <top (required)>' /home/npticket/apps/npticket/current/app/models/mailer.rb:386:in `with_synched_deliveries' /home/npticket/apps/npticket/current/lib/tasks/reminder.rake:41:in `block (2 levels) in <top (required)>' NoMethodError: undefined method `visit_ThreadSafe_Array' for #<Arel::Visitors::PostgreSQL:0x007f876e3eab78> /home/npticket/apps/npticket/current/app/models/user.rb:737:in `anonymous' /home/npticket/apps/npticket/current/app/models/user.rb:731:in `current' /home/npticket/apps/npticket/current/app/models/issue.rb:1242:in `css_classes' /home/npticket/apps/npticket/current/app/helpers/application_helper.rb:87:in `link_to_issue' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:5:in `block in _app_views_mailer_reminder_html_erb__2458635835046685007_70109836468080' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:4:in `each' /home/npticket/apps/npticket/current/app/views/mailer/reminder.html.erb:4:in `_app_views_mailer_reminder_html_erb__2458635835046685007_70109836468080' /home/npticket/apps/npticket/current/app/models/mailer.rb:439:in `block in mail' /home/npticket/apps/npticket/current/app/models/mailer.rb:437:in `mail' /home/npticket/apps/npticket/current/app/models/mailer.rb:110:in `reminder' /home/npticket/apps/npticket/current/app/models/mailer.rb:450:in `initialize' /home/npticket/apps/npticket/current/config/initializers/10-patches.rb:154:in `deliver' /home/npticket/apps/npticket/current/app/models/mailer.rb:365:in `block in reminders' /home/npticket/apps/npticket/current/app/models/mailer.rb:364:in `each' /home/npticket/apps/npticket/current/app/models/mailer.rb:364:in `reminders' /home/npticket/apps/npticket/current/lib/tasks/reminder.rake:42:in `block (3 levels) in <top (required)>' /home/npticket/apps/npticket/current/app/models/mailer.rb:386:in `with_synched_deliveries' /home/npticket/apps/npticket/current/lib/tasks/reminder.rake:41:in `block (2 levels) in <top (required)>' Tasks: TOP => redmine:send_reminders (See full trace by running task with --trace)
Related issues
Actions