QA: HTTPS git clone failing with `ERROR: relation "deploy_tokens" does not exist`
Summary
QA Jobs are failing again. It seems we can't clone over HTTPS today, with an error from a problematic relationship.
fatal: unable to access 'https://root:SECRET@gitlab.helm-charts.win/gitlab-qa-sandbox/qa-test-09-04-2018-15-55-15/project-with-code-c07c7561023de5ad.git/': The requested URL returned error: 500
Attempts to address
This affects production
deployment.
- Restarted
unicorn
&sidekiq
- Re-ran the
stable
job, ensuring themigrations
Job ran. - Restarted
unicorn
&sidekiq
again
Details
Started GET "/gitlab-qa-sandbox/qa-test-09-04-2018-15-55-15/project-with-code-c07c7561023de5ad.git/info/refs?service=git-upload-pack" for 10.40.0.218 at 2018-04-09 16:08:16 +0000
Processing by Projects::GitHttpController#info_refs as */*
Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"gitlab-qa-sandbox/qa-test-09-04-2018-15-55-15", "project_id"=>"project-with-code-c07c7561023de5ad.git"}
Completed 500 Internal Server Error in 26ms (ActiveRecord: 5.9ms | Elasticsearch: 0.0ms)
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "deploy_tokens" does not exist
LINE 5: WHERE a.attrelid = '"deploy_tokens"'::regclas...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"deploy_tokens"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
):
lib/gitlab/auth.rb:182:in `deploy_token_check'
lib/gitlab/auth.rb:31:in `find_for_git_client'
app/controllers/projects/git_http_client_controller.rb:100:in `handle_basic_authentication'
app/controllers/projects/git_http_client_controller.rb:36:in `authenticate_user'
ee/app/controllers/ee/projects/git_http_controller.rb:31:in `authenticate_user'
lib/gitlab/i18n.rb:50:in `with_locale'
lib/gitlab/i18n.rb:56:in `with_user_locale'
app/controllers/application_controller.rb:334:in `set_locale'
lib/gitlab/middleware/multipart.rb:95:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
ee/lib/gitlab/jira/middleware.rb:15:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/read_only/controller.rb:28:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'