Broken migration due to Field 'created_at' doesn't have a default value

Summary

Updating from GitLab CE v10.7 to GitLab CE v10.8 (from Source) results in a database migration failure.

Steps to reproduce

Upgrade GitLab CE to v10.8 and run sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production. There are presumably some specifics of our installation which trigger the issue for us but not others. Our GitLab installation has gone through many updates dating back years.

What is the current bug behavior?

A database migration failure occurs during upgrade while applying 20180413022611_create_missing_namespace_for_internal_users.rb. The problem is caused by the field created_at having no default value. This results in a database migration failure.

What is the expected correct behavior?

Migration runs successfully.

Relevant logs and/or screenshots

# sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

== 20180413022611 CreateMissingNamespaceForInternalUsers: migrating ===========
-- column_exists?(:users, :support_bot)
   -> 0.0015s
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Mysql2::Error: Field 'created_at' doesn't have a default value: INSERT INTO namespaces(owner_id, path, name) VALUES(28, 'ghost', 'ghost')
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/peek-mysql2-1.1.0/lib/peek/views/mysql2.rb:14:in `query_with_timing'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute'
/home/git/gitlab/config/initializers/connection_fix.rb:20:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:362:in `insert_sql'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:228:in `insert_sql'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:49:in `create_namespace'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:6:in `block in up'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:5:in `each'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:5:in `up'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:611:in `exec_migration'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:591:in `block in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:590:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:768:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1071:in `ddl_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:984:in `block in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:980:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:980:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:823:in `up'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:801:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:139:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'

Caused by:
ActiveRecord::StatementInvalid: Mysql2::Error: Field 'created_at' doesn't have a default value: INSERT INTO namespaces(owner_id, path, name) VALUES(28, 'ghost', 'ghost')
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/peek-mysql2-1.1.0/lib/peek/views/mysql2.rb:14:in `query_with_timing'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute'
/home/git/gitlab/config/initializers/connection_fix.rb:20:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:362:in `insert_sql'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:228:in `insert_sql'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:49:in `create_namespace'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:6:in `block in up'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:5:in `each'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:5:in `up'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:611:in `exec_migration'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:591:in `block in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:590:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:768:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1071:in `ddl_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:984:in `block in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:980:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:980:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:823:in `up'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:801:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:139:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'

Caused by:
Mysql2::Error: Field 'created_at' doesn't have a default value
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/peek-mysql2-1.1.0/lib/peek/views/mysql2.rb:14:in `query_with_timing'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute'
/home/git/gitlab/config/initializers/connection_fix.rb:20:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/database_statements.rb:362:in `insert_sql'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:228:in `insert_sql'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:49:in `create_namespace'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:6:in `block in up'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:5:in `each'
/home/git/gitlab/db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb:5:in `up'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:611:in `exec_migration'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:591:in `block in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:590:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:768:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1071:in `ddl_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:984:in `block in migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:980:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:980:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:823:in `up'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/migration.rb:801:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/tasks/database_tasks.rb:139:in `migrate'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
root@gitlab2test:/home/git/gitlab#
root@gitlab2test:/home/git/gitlab/db/migrate#
root@gitlab2test:/home/git/gitlab# ls db/migrate/*inter*
db/migrate/20130819182730_add_internal_ids_to_issues_and_mr.rb                          db/migrate/20180223120443_create_user_interacted_projects_table.rb
db/migrate/20130821090531_add_internal_ids_to_milestones.rb                             db/migrate/20180305095250_create_internal_ids_table.rb
db/migrate/20160113111034_add_metrics_sample_interval.rb                                db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb
db/migrate/20170329124448_add_polling_interval_multiplier_to_application_settings.rb    db/migrate/20180416155103_add_further_scope_columns_to_internal_id_table.rb
db/migrate/20171123094802_add_circuitbreaker_check_interval_to_application_settings.rb  db/migrate/20180417090132_add_index_constraints_to_internal_id_table.rb
root@gitlab2test:/home/git/gitlab# ls db/migrate/*internai*
ls: cannot access 'db/migrate/*internai*': No such file or directory
root@gitlab2test:/home/git/gitlab# ls db/migrate/*internal*
db/migrate/20130819182730_add_internal_ids_to_issues_and_mr.rb  db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb
db/migrate/20130821090531_add_internal_ids_to_milestones.rb     db/migrate/20180416155103_add_further_scope_columns_to_internal_id_table.rb
db/migrate/20180305095250_create_internal_ids_table.rb          db/migrate/20180417090132_add_index_constraints_to_internal_id_table.rb

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info
System information
System:         Ubuntu 17.10
Current User:   git
Using RVM:      no
Ruby Version:   2.4.4p296
Gem Version:    2.6.14.1
Bundler Version:1.16.2
Rake Version:   12.3.1
Redis Version:  4.0.1
Git Version:    2.14.1
Sidekiq Version:5.0.5
Go Version:     go1.10.3 linux/amd64

GitLab information Version: 10.8.5 Revision: ed84ff17692 Directory: /home/git/gitlab DB Adapter: mysql2 URL: https://gitlab.corp..com HTTP Clone URL: https://gitlab.corp..com/some-group/some-project.git SSH Clone URL: git@gitlab.corp..com:some-group/some-project.git Using LDAP: no Using Omniauth: no

GitLab Shell Version: 7.1.2 Repository storage paths:

  • default: /home/git/repositories Hooks: /home/git/gitlab-shell/hooks Git: /usr/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check
Checking GitLab Shell ...

GitLab Shell version >= 7.1.2 ? ... OK (7.1.2) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 31/4 ... ok 31/5 ... ok 25/7 ... repository is empty 27/9 ... ok 26/10 ... ok 12/11 ... ok 29/12 ... ok 29/13 ... ok 29/14 ... ok 31/15 ... ok 32/17 ... ok 33/18 ... ok 34/19 ... ok 29/20 ... ok 29/21 ... ok 32/22 ... ok 29/23 ... ok 32/24 ... ok 31/25 ... ok 29/26 ... ok 29/27 ... ok 35/28 ... ok 36/29 ... ok 36/30 ... ok 36/31 ... ok 35/33 ... ok 35/34 ... ok 35/35 ... repository is empty 29/36 ... ok 29/37 ... ok 37/38 ... ok 29/40 ... ok 32/41 ... ok 37/42 ... ok 21/43 ... ok 19/44 ... ok 37/45 ... ok 38/46 ... ok 38/47 ... ok 38/48 ... ok 38/49 ... ok 38/50 ... ok 31/52 ... ok 31/53 ... ok 31/54 ... ok 31/55 ... ok 31/56 ... ok 37/57 ... ok 33/58 ... ok 33/59 ... ok 37/60 ... ok 38/62 ... ok 38/64 ... ok 21/67 ... ok 31/68 ... ok 31/72 ... ok 31/73 ... ok 26/74 ... ok 26/75 ... ok 34/76 ... ok 29/78 ... ok 31/79 ... ok 31/80 ... ok 31/81 ... ok 40/82 ... ok 41/84 ... ok 31/85 ... ok 38/86 ... ok 42/87 ... ok 42/88 ... ok 31/89 ... ok 42/90 ... ok 41/92 ... ok 31/93 ... ok 46/95 ... ok 31/96 ... ok 37/97 ... ok 33/98 ... ok 33/99 ... ok 31/100 ... ok 43/101 ... ok 31/102 ... ok 31/103 ... ok 33/104 ... repository is empty 42/105 ... ok 31/106 ... ok 33/107 ... ok 31/108 ... ok 26/109 ... ok 42/110 ... ok 31/111 ... repository is empty 26/112 ... ok 42/115 ... ok 3/116 ... ok 45/117 ... ok 3/118 ... ok 38/119 ... ok 37/120 ... ok 42/121 ... ok 26/122 ... ok 29/123 ... ok 26/124 ... ok 29/125 ... ok 32/126 ... ok 37/127 ... ok 19/128 ... ok 46/129 ... ok 46/130 ... ok 46/131 ... ok 31/132 ... ok 46/133 ... ok 46/134 ... ok 46/135 ... ok 46/136 ... ok 46/137 ... ok 31/138 ... ok 46/139 ... ok 46/140 ... ok 42/143 ... ok 3/144 ... ok 32/145 ... ok 38/147 ... ok 31/148 ... ok 42/149 ... ok 37/150 ... ok 31/151 ... ok 37/152 ... ok 37/153 ... ok 37/154 ... ok 37/155 ... ok 29/156 ... ok 29/158 ... ok 29/159 ... ok 37/160 ... ok 38/161 ... ok 38/162 ... ok 38/163 ... ok 37/164 ... ok 37/165 ... ok 37/166 ... ok 37/167 ... ok 37/168 ... ok 37/169 ... ok 29/170 ... ok 37/171 ... ok 26/172 ... ok 42/173 ... ok 38/175 ... ok 31/176 ... ok 42/177 ... ok 26/178 ... ok 41/179 ... ok 31/180 ... ok 32/181 ... ok 37/182 ... ok 33/183 ... ok 31/184 ... ok 47/186 ... ok 3/187 ... ok 46/188 ... ok 46/189 ... ok 48/190 ... ok 42/191 ... ok 42/192 ... ok 42/193 ... ok 26/194 ... repository is empty 31/195 ... repository is empty 29/196 ... ok 32/197 ... ok 4/198 ... ok 29/199 ... ok 42/200 ... ok 33/201 ... ok 43/202 ... ok 41/203 ... ok 31/204 ... ok 38/205 ... ok 29/206 ... ok 45/207 ... ok 45/208 ... ok 38/210 ... ok 42/211 ... ok 37/212 ... ok 26/213 ... ok 29/214 ... ok 29/215 ... ok 51/216 ... ok 51/217 ... ok 51/218 ... ok 52/219 ... ok 52/220 ... ok 37/221 ... ok 4/222 ... ok 37/223 ... ok 26/224 ... ok 51/225 ... ok 51/226 ... ok 53/227 ... ok 32/228 ... ok 29/229 ... ok 51/230 ... ok 42/231 ... ok 42/232 ... ok 32/233 ... ok 33/234 ... ok 32/235 ... ok 42/236 ... ok 32/237 ... ok 51/238 ... ok 51/239 ... ok 47/240 ... ok 42/241 ... ok 38/242 ... ok 38/243 ... ok 41/244 ... ok 38/245 ... ok 59/246 ... ok 37/249 ... ok 37/250 ... ok 29/251 ... ok 48/252 ... ok 48/253 ... ok 38/254 ... ok 29/255 ... ok 51/256 ... ok 32/257 ... ok 57/258 ... ok 29/259 ... ok 29/261 ... ok 58/262 ... ok 58/263 ... ok 58/264 ... ok 29/265 ... ok 58/266 ... ok 32/267 ... ok 51/268 ... ok 55/269 ... ok 31/270 ... ok 31/271 ... repository is empty 29/272 ... ok 58/273 ... ok 58/274 ... ok 29/275 ... ok 58/276 ... ok 38/277 ... ok 37/278 ... ok 51/279 ... repository is empty Running /home/git/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

Access to /home/git/.ssh/authorized_keys: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Reply by email is disabled in config/gitlab.yml Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... yes Init script up-to-date? ... yes Projects have namespace: ... 31/4 ... yes 31/5 ... yes 25/7 ... yes 27/9 ... yes 26/10 ... yes 12/11 ... yes 29/12 ... yes 29/13 ... yes 29/14 ... yes 31/15 ... yes 32/17 ... yes 33/18 ... yes 34/19 ... yes 29/20 ... yes 29/21 ... yes 32/22 ... yes 29/23 ... yes 32/24 ... yes 31/25 ... yes 29/26 ... yes 29/27 ... yes 35/28 ... yes 36/29 ... yes 36/30 ... yes 36/31 ... yes 35/33 ... yes 35/34 ... yes 35/35 ... yes 29/36 ... yes 29/37 ... yes 37/38 ... yes 29/40 ... yes 32/41 ... yes 37/42 ... yes 21/43 ... yes 19/44 ... yes 37/45 ... yes 38/46 ... yes 38/47 ... yes 38/48 ... yes 38/49 ... yes 38/50 ... yes 31/52 ... yes 31/53 ... yes 31/54 ... yes 31/55 ... yes 31/56 ... yes 37/57 ... yes 33/58 ... yes 33/59 ... yes 37/60 ... yes 38/62 ... yes 38/64 ... yes 21/67 ... yes 31/68 ... yes 31/72 ... yes 31/73 ... yes 26/74 ... yes 26/75 ... yes 34/76 ... yes 29/78 ... yes 31/79 ... yes 31/80 ... yes 31/81 ... yes 40/82 ... yes 41/84 ... yes 31/85 ... yes 38/86 ... yes 42/87 ... yes 42/88 ... yes 31/89 ... yes 42/90 ... yes 41/92 ... yes 31/93 ... yes 46/95 ... yes 31/96 ... yes 37/97 ... yes 33/98 ... yes 33/99 ... yes 31/100 ... yes 43/101 ... yes 31/102 ... yes 31/103 ... yes 33/104 ... yes 42/105 ... yes 31/106 ... yes 33/107 ... yes 31/108 ... yes 26/109 ... yes 42/110 ... yes 31/111 ... yes 26/112 ... yes 42/115 ... yes 3/116 ... yes 45/117 ... yes 3/118 ... yes 38/119 ... yes 37/120 ... yes 42/121 ... yes 26/122 ... yes 29/123 ... yes 26/124 ... yes 29/125 ... yes 32/126 ... yes 37/127 ... yes 19/128 ... yes 46/129 ... yes 46/130 ... yes 46/131 ... yes 31/132 ... yes 46/133 ... yes 46/134 ... yes 46/135 ... yes 46/136 ... yes 46/137 ... yes 31/138 ... yes 46/139 ... yes 46/140 ... yes 42/143 ... yes 3/144 ... yes 32/145 ... yes 38/147 ... yes 31/148 ... yes 42/149 ... yes 37/150 ... yes 31/151 ... yes 37/152 ... yes 37/153 ... yes 37/154 ... yes 37/155 ... yes 29/156 ... yes 29/158 ... yes 29/159 ... yes 37/160 ... yes 38/161 ... yes 38/162 ... yes 38/163 ... yes 37/164 ... yes 37/165 ... yes 37/166 ... yes 37/167 ... yes 37/168 ... yes 37/169 ... yes 29/170 ... yes 37/171 ... yes 26/172 ... yes 42/173 ... yes 38/175 ... yes 31/176 ... yes 42/177 ... yes 26/178 ... yes 41/179 ... yes 31/180 ... yes 32/181 ... yes 37/182 ... yes 33/183 ... yes 31/184 ... yes 47/186 ... yes 3/187 ... yes 46/188 ... yes 46/189 ... yes 48/190 ... yes 42/191 ... yes 42/192 ... yes 42/193 ... yes 26/194 ... yes 31/195 ... yes 29/196 ... yes 32/197 ... yes 4/198 ... yes 29/199 ... yes 42/200 ... yes 33/201 ... yes 43/202 ... yes 41/203 ... yes 31/204 ... yes 38/205 ... yes 29/206 ... yes 45/207 ... yes 45/208 ... yes 38/210 ... yes 42/211 ... yes 37/212 ... yes 26/213 ... yes 29/214 ... yes 29/215 ... yes 51/216 ... yes 51/217 ... yes 51/218 ... yes 52/219 ... yes 52/220 ... yes 37/221 ... yes 4/222 ... yes 37/223 ... yes 26/224 ... yes 51/225 ... yes 51/226 ... yes 53/227 ... yes 32/228 ... yes 29/229 ... yes 51/230 ... yes 42/231 ... yes 42/232 ... yes 32/233 ... yes 33/234 ... yes 32/235 ... yes 42/236 ... yes 32/237 ... yes 51/238 ... yes 51/239 ... yes 47/240 ... yes 42/241 ... yes 38/242 ... yes 38/243 ... yes 41/244 ... yes 38/245 ... yes 59/246 ... yes 37/249 ... yes 37/250 ... yes 29/251 ... yes 48/252 ... yes 48/253 ... yes 38/254 ... yes 29/255 ... yes 51/256 ... yes 32/257 ... yes 57/258 ... yes 29/259 ... yes 29/261 ... yes 58/262 ... yes 58/263 ... yes 58/264 ... yes 29/265 ... yes 58/266 ... yes 32/267 ... yes 51/268 ... yes 55/269 ... yes 31/270 ... yes 31/271 ... yes 29/272 ... yes 58/273 ... yes 58/274 ... yes 29/275 ... yes 58/276 ... yes 38/277 ... yes 37/278 ... yes 51/279 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.4) Git version >= 2.9.5 ? ... yes (2.14.1) Git user has default SSH configuration? ... yes Active users: ... 22

Checking GitLab ... Finished

Possible fixes

The migration of the database was completed without error when I deleted (renamed) the file db/migrate/20180413022611_create_missing_namespace_for_internal_users.rb. I'm not sure that such a method is correct and will not see problems in the future.

label database

Edited Jun 29, 2018 by Georg
Assignee Loading
Time tracking Loading