================================================================================
Error executing action `run` on resource 'bash[migrate gitlab-rails database]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20170511-11989-rxzicg" ----
STDOUT: rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
The single-table inheritance mechanism failed to locate the subclass: 'GitlabCiService'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Service.inheritance_column to use another column for that information./opt/gitlab/embedded/service/gitlab-rails/db/migrate/20140907220153_serialize_service_properties.rb:26:in `each'
/opt/gitlab/embedded/service/gitlab-rails/db/migrate/20140907220153_serialize_service_properties.rb:26:in `change'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
try
> sudo gitlab-rails dbconsole
gitlabhq_production=> DELETE FROM services WHERE type = 'GitlabCiService';
after run
> gitlab-ctl reconfigure
then it should fix the table.
No comments:
Post a Comment