Gitlab Omnibus CE upgrade 7.8.2 -> current fail
Summary
sudo apt-get install gitlab-ce
to update fails
Steps to reproduce
Have working 7.8.2 installation on Ubuntu 14.04 LTS run sudo apt-get install gitlab-ce
Example Project
Am using older version- striving to address that.
What is the current bug behavior?
Upgrade fails, nginx loads only 500 and 502 pages
What is the expected correct behavior?
Login screen to latest gitlab release
Relevant logs and/or screenshots
Recipe: gitlab::database_migrations
* bash[migrate gitlab-rails database] action run
[execute] rake aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:22:in `load'
/opt/gitlab/embedded/bin/bundle:22:in `<main>'
Tasks: TOP => gitlab:db:configure
(See full trace by running task with --trace)
================================================================================
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-script20170801-6794-10z4dz3" ----
STDOUT: rake aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:22:in `load'
/opt/gitlab/embedded/bin/bundle:22:in `<main>'
Tasks: TOP => gitlab:db:configure
(See full trace by running task with --trace)
STDERR:
---- End output of "bash" "/tmp/chef-script20170801-6794-10z4dz3" ----
Ran "bash" "/tmp/chef-script20170801-6794-10z4dz3" returned 1
Server is running locally. /var/opt/gitlab/postgresql/.s.PGSQL.5432
exists
Output of checks
Sorry, those of us not fluent in GitLab vocabulary need a more detailed request to execute. Which checks?
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 14.04 Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Redis Version: 3.2.5 Git Version: 2.13.0 Sidekiq Version:5.0.0 Go Version: unknown rake aborted! NoMethodError: undefined method `container_registry_enabled=' for # Did you mean? container_registry_url container_registry_variables /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/info.rake:40:in `block (3 levels) in ' /opt/gitlab/embedded/bin/bundle:22:in `load' /opt/gitlab/embedded/bin/bundle:22:in `' Tasks: TOP => gitlab:env:info (See full trace by running task with --trace)
Results of GitLab application Check
Expand for output related to the GitLab application check
System information System: Ubuntu 14.04 Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Redis Version: 3.2.5 Git Version: 2.13.0 Sidekiq Version:5.0.0 Go Version: unknown rake aborted! NoMethodError: undefined method `container_registry_enabled=' for # Did you mean? container_registry_url container_registry_variables /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/info.rake:40:in `block (3 levels) in ' /opt/gitlab/embedded/bin/bundle:22:in `load' /opt/gitlab/embedded/bin/bundle:22:in `' Tasks: TOP => gitlab:env:info (See full trace by running task with --trace) :/var/opt/gitlab/postgresql/data# sudo gitlab-rake gitlab:check SANITIZE=true Checking GitLab Shell ...GitLab Shell version >= 5.3.1 ? ... OK (5.3.1) 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: ... 4/1 ... rake aborted! ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "routes" does not exist LINE 5: WHERE a.attrelid = '"routes"'::regclass ^ : 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 = '"routes"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum /opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/routable.rb:125:in
uncached_full_path' /opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/routable.rb:104:in
full_path' /opt/gitlab/embedded/service/gitlab-rails/app/models/project.rb:479:inrepository' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:188:in
block in check_repos_hooks_directory_is_link' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:186:incheck_repos_hooks_directory_is_link' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:56:in
block (3 levels) in <top (required)>' /opt/gitlab/embedded/bin/bundle:22:inload' /opt/gitlab/embedded/bin/bundle:22:in
' PG::UndefinedTable: ERROR: relation "routes" does not exist LINE 5: WHERE a.attrelid = '"routes"'::regclass ^ /opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/routable.rb:125:inuncached_full_path' /opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/routable.rb:104:in
full_path' /opt/gitlab/embedded/service/gitlab-rails/app/models/project.rb:479:inrepository' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:188:in
block in check_repos_hooks_directory_is_link' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:186:incheck_repos_hooks_directory_is_link' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:56:in
block (3 levels) in <top (required)>' /opt/gitlab/embedded/bin/bundle:22:inload' /opt/gitlab/embedded/bin/bundle:22:in
' Tasks: TOP => gitlab:check => gitlab:gitlab_shell:check (See full trace by running task with --trace)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)