After recently upgrading GitLab to version 10.1.10, I am unable to login, being provided with “422 -The change you requested was rejected.”. So I upgraded to 10.1.13, hoping it was merely a bug, however I still am presented with the same issue.
I have spent a lot of time trawling google and the forum to find a reason as to why I may be having this issue, however the majority of what I’m finding seems to be related to an LDAP issue from 3 months ago, for which my version should be patched - although I do not have LDAP enabled anyway.
When I investigate in production.log, I am presented with the following:
Processing by SessionsController#create as HTML
Parameters: {"utf8"=>"", "authenticity_token"=>"[FILTERED]", "user"=>{"login"=>"shanept", "password"=>"[FILTERED]", "remember_me"=>"0"}}
Can't verify CSRF token authenticity
Completed 422 Unprocessable Entity in 41ms (ActiveRecord: 4.2ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken)
lib/gitlab/middleware/multipart.rb:93:in 'call'
lib/gitlab/request_profiler/middleware.rb:14:in 'call'
lib/gitlab/middleware/go.rb:17:in 'call'
lib/gitlab/etag_caching/middleware.rb:11:in 'call'
lib/gitlab/middlware/read_only.rb:30:in 'call'
lib/gitlab/request_context.rb:18:in 'call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in 'call'
Env info:
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.5p376
Gem Version: 2.6.13
Bundler Version:1.13.7
Rake Version: 12.1.0
Redis Version: 3.2.5
Git Version: 2.13.6
Sidekiq Version:5.0.4
Go Version: unknown
GitLab information
Version: 10.1.3
Revision: e6142bc
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://gitsvr
HTTP Clone URL: http://gitsvr/some-group/some-project.git
SSH Clone URL: git@gitsvr:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.9.3
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
I absolutely can not log in, and don’t believe there to be a way to roll back to an earlier version, as the only recent backups I have are from 10.1.10 and 10.1.13.
@shanept Can you share more information about your environment? Are you running with the bundled nginx server or have you configured an external web server?
Which version were you running prior to the 10.1.x upgrade?
You noted “it was a bad cookie” – this is client side only problem? – I’m having the same issue but from multiple web browsers, tested even from multiple systems … it couldn’t be a bad cookie.