dev did not run migrations
I hit https://sentry.gitlap.com/gitlab/devgitlaborg/issues/106975/ this morning:
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrating =
-- add_column(:application_settings, :circuitbreaker_failure_count_threshold, :integer, {:default=>160})
-> 0.0844s
-- add_column(:application_settings, :circuitbreaker_failure_wait_time, :integer, {:default=>30})
-> 0.0199s
-- add_column(:application_settings, :circuitbreaker_failure_reset_time, :integer, {:default=>1800})
-> 0.0228s
-- add_column(:application_settings, :circuitbreaker_storage_timeout, :integer, {:default=>30})
-> 0.0234s
== 20171012101043 AddCircuitBreakerPropertiesToApplicationSettings: migrated (0.1507s)
rake aborted!
Errno::EACCES: Permission denied @ rb_sysopen - /opt/gitlab/embedded/service/gitlab-rails/db/schema.rb
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => db:schema:dump
(See full trace by running task with --trace)
root@dev:/var/log/gitlab/gitlab-rails# ls -al /opt/gitlab/embedded/service/gitlab-rails/db/schema.rb
-rw-r--r-- 1 root root 87699 Oct 21 02:36 /opt/gitlab/embedded/service/gitlab-rails/db/schema.rb
Somehow the owner became root:root
instead of git:root
.
Edited by Stan Hu