Getting 404 when trying to access admin area
Created by: mariomarin
Hi,
I am getting this error when trying to access admin area:
Completed 500 Internal Server Error in 21ms
ActionController::RoutingError (No route matches {:action=>"show", :controller=>"admin/users", :id=>#<User id: 16, email: "user@domain", encrypted_password: "somepass", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 7, current_sign_in_at: "2013-01-22 21:57:07", last_sign_in_at: "2013-01-16 22:14:36", current_sign_in_ip: "ip", last_sign_in_ip: "ip", created_at: "2012-11-30 15:32:30", updated_at: "2013-01-22 21:57:07", name: "name", admin: false, projects_limit: 10, skype: "skype", linkedin: "", twitter: "", authentication_token: "token", dark_scheme: false, theme_id: 4, bio: nil, blocked: false, failed_attempts: 0, locked_at: nil, extern_uid: nil, provider: nil, username: "username", can_create_group: true, can_create_team: true>}):
app/views/admin/dashboard/index.html.haml:43:in `block in _app_views_admin_dashboard_index_html_haml___1269963918917239324_34459580'
app/views/admin/dashboard/index.html.haml:41:in `_app_views_admin_dashboard_index_html_haml___1269963918917239324_34459580'
A similar error when going to http://gitlab.domain/project/team
Completed 500 Internal Server Error in 198ms
ActionController::RoutingError (No route matches {:action=>"show", :controller=>"team_members", :project_id=>#<Project id: 3, name: "project", path: "project", description: "", created_at: "2012-05-29 20:42:27", updated_at: "2012-06-05 18:42:50", creator_id: 2, default_branch: "master", issues_enabled: true, wall_enabled: true, merge_requests_enabled: true, wiki_enabled: true, namespace_id: nil, public: false>, :id=>#<User id: 16, email: "email", encrypted_password: "$2a$10$ALeIDC/JasTbnqbt8Gsd/OKkh72NXdK9vTLScygqo23I...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 7, current_sign_in_at: "2013-01-22 21:57:07", last_sign_in_at: "2013-01-16 22:14:36", current_sign_in_ip: "ip", last_sign_in_ip: "ip", created_at: "2012-11-30 15:32:30", updated_at: "2013-01-22 21:57:07", name: "name", admin: false, projects_limit: 10, skype: "skype", linkedin: "", twitter: "", authentication_token: "token", dark_scheme: false, theme_id: 4, bio: nil, blocked: false, failed_attempts: 0, locked_at: nil, extern_uid: nil, provider: nil, username: "username", can_create_group: true, can_create_team: true>}):
app/views/team_members/_show.html.haml:6:in `_app_views_team_members__show_html_haml__1867702919822901455_63436060'
app/views/team_members/_team.html.haml:8:in `block (2 levels) in _app_views_team_members__team_html_haml___2499397061895409119_63281400'
app/views/team_members/_team.html.haml:7:in `each'
app/views/team_members/_team.html.haml:7:in `block in _app_views_team_members__team_html_haml___2499397061895409119_63281400'
app/views/team_members/_team.html.haml:1:in `each'
app/views/team_members/_team.html.haml:1:in `_app_views_team_members__team_html_haml___2499397061895409119_63281400'
app/views/team_members/index.html.haml:22:in `_app_views_team_members_index_html_haml__2940783348515027606_52008600'
The user appearing in the logs is the last one in users table.
I updated the migrations and it modified db/schema.rb, this is the diff:
diff --git a/db/schema.rb b/db/schema.rb
index 0f07d2b..594157f 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -69,19 +69,19 @@ ActiveRecord::Schema.define(:version => 20130131070232) do
add_index "keys", ["user_id"], :name => "index_keys_on_user_id"
create_table "merge_requests", :force => true do |t|
- t.string "target_branch", :null => false
- t.string "source_branch", :null => false
- t.integer "project_id", :null => false
+ t.string "target_branch", :null => false
+ t.string "source_branch", :null => false
+ t.integer "project_id", :null => false
t.integer "author_id"
t.integer "assignee_id"
t.string "title"
- t.boolean "closed", :default => false, :null => false
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- t.text "st_commits", :limit => 2147483647
- t.text "st_diffs", :limit => 2147483647
- t.boolean "merged", :default => false, :null => false
- t.integer "state", :default => 1, :null => false
+ t.boolean "closed", :default => false, :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.text "st_commits"
+ t.text "st_diffs"
+ t.boolean "merged", :default => false, :null => false
+ t.integer "state", :default => 1, :null => false
t.integer "milestone_id"
end
@@ -238,36 +238,36 @@ ActiveRecord::Schema.define(:version => 20130131070232) do
end
create_table "users", :force => true do |t|
- t.string "email", :default => "", :null => false
- t.string "encrypted_password", :default => "", :null => false
+ t.string "email", :default => "", :null => false
+ t.string "encrypted_password", :limit => 128, :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
- t.integer "sign_in_count", :default => 0
+ t.integer "sign_in_count", :default => 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
t.string "name"
- t.boolean "admin", :default => false, :null => false
- t.integer "projects_limit", :default => 10
- t.string "skype", :default => "", :null => false
- t.string "linkedin", :default => "", :null => false
- t.string "twitter", :default => "", :null => false
+ t.boolean "admin", :default => false, :null => false
+ t.integer "projects_limit", :default => 10
+ t.string "skype", :default => "", :null => false
+ t.string "linkedin", :default => "", :null => false
+ t.string "twitter", :default => "", :null => false
t.string "authentication_token"
- t.boolean "dark_scheme", :default => false, :null => false
- t.integer "theme_id", :default => 1, :null => false
+ t.boolean "dark_scheme", :default => false, :null => false
+ t.integer "theme_id", :default => 1, :null => false
t.string "bio"
- t.boolean "blocked", :default => false, :null => false
- t.integer "failed_attempts", :default => 0
+ t.boolean "blocked", :default => false, :null => false
+ t.integer "failed_attempts", :default => 0
t.datetime "locked_at"
t.string "extern_uid"
t.string "provider"
t.string "username"
- t.boolean "can_create_group", :default => true, :null => false
- t.boolean "can_create_team", :default => true, :null => false
+ t.boolean "can_create_group", :default => true, :null => false
+ t.boolean "can_create_team", :default => true, :null => false
end
This is my environment:
System information
System: Debian 6.0.6
Current User: git
Using RVM: no
Ruby Version: 1.9.3p327
Gem Version: 1.8.23
Bundler Version:1.2.3
Rake Version: 10.0.3
GitLab information
Version: 5.0.0pre
Revision: f9dd547
Directory: /var/lib/gitolite/gitlab
DB Adapter: postgresql
URL: http://gitlab.domain:8003
HTTP Clone URL: http://gitlab.domain:8003/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.0.4
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git