All 'observers' throw error 'TypeError (can't dump anonymous class Class)'
Created by: JasonS-Dev
Hi GitLab team!
Summary: 500 error when trying to add key to profile.
Expected Behaviour: When submitted, the 'add ssh key' form is redirected to the 'ssh keys' list, listing the key that was uploaded.
Observed Behaviour: 500 error message
Relevant Logs: (production.log)
Started POST "/keys" for 192.168.1.xx at 2013-07-18 16:10:02 +0100
Processing by KeysController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+j+GeulFyOjTnLWiduCrwFTaa2FPp337aDnjNAAgiJ8=", "key"=>{"title"=>"[email protected] macbook", "key"=>"ssh-rsa {ssh key removed} [email protected]"}}
Completed 500 Internal Server Error in 364ms
TypeError (can't dump anonymous class Class):
app/services/notification_service.rb:16:in `new_key'
app/observers/key_observer.rb:9:in `after_save'
app/controllers/keys_controller.rb:21:in `create'
(sidekiq.log)
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/tasks/task_fiber.rb:21: [BUG]
Output of Application check
Checking Environment ...
Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.4.0 ? ... OK (1.4.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ...
Onset Webs / SCALER ... ok
Jason Summers / Jade Vincent ... repository is empty
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... no
Try fixing it:
sudo -u git -H bundle exec rake sidekiq:start RAILS_ENV=production
For more information see:
doc/install/installation.md in section "Install Init Script"
see log/sidekiq.log for possible errors
Please fix the error above and rerun the checks.
Checking Sidekiq ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have satellites? ...
Onset Webs / SCALER ... yes
Jason Summers / Jade Vincent ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.1)
Checking GitLab ... Finished
Running the command to start sidekiq returns nothing and is never running on check
Environment info:
System information
System: Ubuntu 13.04
Current User: git
Using RVM: no
Ruby Version: 1.9.2p290
Gem Version: 1.3.7
Bundler Version:1.3.5
Rake Version: 10.0.4
GitLab information
Version: 5.3.0
Revision: 7269281
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://xxxxxxxx
HTTP Clone URL: http://xxxxxxxxxx/some-project.git
SSH Clone URL: git@xxxxxxxxxx:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.4.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
I'm hypothesising that my problems could be caused by Sidekiq not starting?
Thanks.