ActiveRecord::RecordNotFound - Couldn't find User without an ID
Created by: suncat2000
I have problem with email notifications.
Sidekiq report
- | - |
---|---|
Class | Sidekiq::Extensions::DelayedMailer |
Arguments | "---\n- !ruby/class 'Notify'\n- :merged_merge_request_email\n- - 2\n - 6\n" |
JID | 54ff93ac06344912ce0dac4d |
/home/git/gitlab/log/sidekiq.log
2014-04-02T10:29:20Z 13087 TID-ovpamtq7g Sidekiq::Extensions::DelayedMailer JID-54ff93ac06344912ce0dac4d INFO: start
2014-04-02T10:29:20Z 13087 TID-ovpamtq7g Sidekiq::Extensions::DelayedMailer JID-54ff93ac06344912ce0dac4d INFO: fail: 0.003 sec
2014-04-02T10:29:20Z 13087 TID-ovpamtq7g WARN: {"retry"=>true, "queue"=>"default", "class"=>"Sidekiq::Extensions::DelayedMailer", "args"=>["---\n- !ruby/class 'Notify'\n- :merged_merge_request_email\n- - 2\n - 6\n"], "jid"=>"54ff93ac06344912ce0dac4d", "enqueued_at"=>1396431604.9366634, "error_message"=>"Couldn't find User without an ID", "error_class"=>"ActiveRecord::RecordNotFound", "failed_at"=>"2014-04-02T09:40:08Z", "retry_count"=>7, "retried_at"=>2014-04-02 10:29:20 UTC}
2014-04-02T10:29:20Z 13087 TID-ovpamtq7g WARN: Couldn't find User without an ID
2014-04-02T10:29:20Z 13087 TID-ovpamtq7g WARN: /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.3/lib/active_record/relation/finder_methods.rb:266:in `find_with_ids'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.3/lib/active_record/relation/finder_methods.rb:35:in `find'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-deprecated_finders-1.0.3/lib/active_record/deprecated_finders/relation.rb:122:in `find'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.3/lib/active_record/querying.rb:3:in `find'
/home/git/gitlab/app/mailers/notify.rb:38:in `sender'
/home/git/gitlab/app/mailers/emails/merge_requests.rb:36:in `merged_merge_request_email'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.3/lib/abstract_controller/base.rb:189:in `process_action'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:373:in `_run__2498259267972982547__process_action__callbacks'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:80:in `run_callbacks'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.3/lib/abstract_controller/base.rb:136:in `process'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.3/lib/abstract_controller/rendering.rb:44:in `process'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:503:in `process'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:497:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:480:in `new'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:480:in `method_missing'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/extensions/action_mailer.rb:17:in `perform'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/processor.rb:49:in `block (3 levels) in process'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/chain.rb:122:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/chain.rb:122:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/chain.rb:124:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/server/retry_jobs.rb:62:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/chain.rb:124:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/logging.rb:22:in `with_context'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/chain.rb:124:in `block in invoke'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/chain.rb:127:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/middleware/chain.rb:127:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/processor.rb:48:in `block (2 levels) in process'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/processor.rb:105:in `stats'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/processor.rb:47:in `block in process'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/processor.rb:86:in `do_defer'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sidekiq-2.17.0/lib/sidekiq/processor.rb:37:in `process'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:122:in `dispatch'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
how to treat?
$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Debian 7.4
Current User: git
Using RVM: no
Ruby Version: 2.1.1p76
Gem Version: 2.2.2
Bundler Version:1.5.3
Rake Version: 10.1.1
GitLab information
Version: 6.7.2
Revision: dbbf4ea
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://gl.site.com
HTTP Clone URL: http://gl.site.com/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.9.1
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
search and check the community advices have not helped(