I get to the login page, but after any user logs in (including root) I get ERR 500. Gitlab is running in a docker container using docker swarm. I’m using the images provided by gitlab. The ERR 500 response correlates to the following exception backtrace in production.log.
Processing by SessionsController#create as HTML
Parameters: {“utf8”=>“✓”, “authenticity_token”=>“[FILTERED]”, “user”=>{“login”=>“martin”, “password”=>“[FILTERED]”, “remember_me”=>“0”}}
Completed 500 Internal Server Error in 250ms (ActiveRecord: 59.9ms | Elasticsearch: 0.0ms | Allocations: 56761)
ActiveModel::UnknownAttributeError (unknown attribute ‘author_name’ for SecurityEvent.):
app/services/audit_event_service.rb:84:in log_security_event_to_database' app/services/audit_event_service.rb:43:in
security_event’
ee/app/services/ee/audit_event_service.rb:122:in security_event' app/controllers/sessions_controller.rb:262:in
log_audit_event’
app/controllers/sessions_controller.rb:71:in block in create' app/controllers/sessions_controller.rb:56:in
create’
ee/lib/gitlab/ip_address_state.rb:10:in with' ee/app/controllers/ee/application_controller.rb:44:in
set_current_ip_address’
app/controllers/application_controller.rb:491:in set_current_admin' lib/gitlab/session.rb:11:in
with_session’
app/controllers/application_controller.rb:482:in set_session_storage' lib/gitlab/i18n.rb:55:in
with_locale’
lib/gitlab/i18n.rb:61:in with_user_locale' app/controllers/application_controller.rb:476:in
set_locale’
lib/gitlab/error_tracking.rb:50:in with_context' app/controllers/application_controller.rb:541:in
sentry_context’
app/controllers/application_controller.rb:469:in block in set_current_context' lib/gitlab/application_context.rb:52:in
block in use’
lib/gitlab/application_context.rb:52:in use' lib/gitlab/application_context.rb:20:in
with_context’
app/controllers/application_controller.rb:462:in set_current_context' lib/gitlab/metrics/elasticsearch_rack_middleware.rb:24:in
call’
lib/gitlab/metrics/redis_rack_middleware.rb:22:in call' lib/gitlab/middleware/rails_queue_duration.rb:29:in
call’
lib/gitlab/metrics/rack_middleware.rb:17:in block in call' lib/gitlab/metrics/transaction.rb:54:in
run’
lib/gitlab/metrics/rack_middleware.rb:17:in call' lib/gitlab/request_profiler/middleware.rb:17:in
call’
ee/lib/gitlab/jira/middleware.rb:19:in call' lib/gitlab/middleware/go.rb:20:in
call’
lib/gitlab/etag_caching/middleware.rb:13:in call' lib/gitlab/middleware/multipart.rb:140:in
call’
lib/gitlab/middleware/read_only/controller.rb:51:in call' lib/gitlab/middleware/read_only.rb:18:in
call’
lib/gitlab/middleware/same_site_cookies.rb:27:in call' lib/gitlab/middleware/basic_health_check.rb:25:in
call’
lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in call' lib/gitlab/middleware/request_context.rb:23:in
call’
config/initializers/fix_local_cache_middleware.rb:9:in call' lib/gitlab/metrics/requests_rack_middleware.rb:60:in
call’
lib/gitlab/middleware/release_env.rb:12:in `call’