Unable to decrypt CI variables after gitlab migration
Yesterday I migrated an old 8.1.4 instance of gitlab which used the docker container from https://github.co/sameersbn/docker-gitlab/ by hand into an instance runnig on CentOS 7 via omnibus. I copied all salts and keys according to the docs and at first it seemed to work. After that I upgraded via yum to version 8.4.4 (latest).
Today I found that building one repo via gitlab ci gets stuck. After some researching it seemd that I missed a key/salt/whatever so that the CI variables could not be decrypted. Luckily that's not a big problem if I could re-enter them, but instead of the CI variables page I get a 500 error.
The log states:
Started GET "/namespace/project/variables" for 127.0.0.1 at 2016-02-19 16:53:56 +0100
Processing by Projects::VariablesController#show as HTML
Parameters: {"namespace_id"=>"namespace", "project_id"=>"project"}
Completed 500 Internal Server Error in 91ms (ActiveRecord: 8.1ms)
ActionView::Template::Error (bad decrypt):
30: .form-group
31: = variable_form.label :value, 'Value', class: 'control-label'
32: .col-sm-10
33: = variable_form.text_area :value, class: 'form-control', rows: 2, placeholder: ""
34:
35: = variable_form.link_to_remove "Remove this variable", class: 'btn btn-danger pull-right prepend-top-10'
36: %hr
app/views/projects/variables/show.html.haml:33:in `block (2 levels) in _app_views_projects_variables_show_html_haml___2325947659700820029_160633240'
app/views/projects/variables/show.html.haml:24:in `block in _app_views_projects_variables_show_html_haml___2325947659700820029_160633240'
app/views/projects/variables/show.html.haml:15:in `_app_views_projects_variables_show_html_haml___2325947659700820029_160633240'
So my question is:
- What can I do to erase all CI variables on that project.
- Do I have to manually remove them from the postrges database? If so, which entries should I remove.