error when upgrade to gitlab 9.0
i'v got an error when upgrading gitlab 9.0 from 8.13 Debian 8
hecking for an omnibus managed postgresql: OK Checking if we already upgraded: NOT OK Checking for a newer version of PostgreSQL to install: OK Upgrading PostgreSQL to 9.6.1 Checking if PostgreSQL bin files are symlinked to the expected location: OK Toggling deploy page:cp /opt/gitlab/embedded/service/gitlab-rails/public/deploy.html /opt/gitlab/embedded/service/gitlab-rails/public/index.html Toggling deploy page: OK Toggling services:ok: down: logrotate: 0s, normally up ok: down: sidekiq: 0s, normally up Toggling services: OK Stopping the database:ok: down: postgresql: 0s, normally up Stopping the database: OK Update the symlinks: OK Creating temporary data directory:Error creating new directory: /var/opt/gitlab/postgresql/data.9.6.1 STDOUT: STDERR: -su: 11: /etc/bash.bashrc: shopt: not found -su: 44: /etc/bash.bashrc: shopt: not found -su: 66: /etc/bash.bashrc: Syntax error: Bad fd number Creating temporary data directory: NOT OK == Fatal error == Please check the output == Reverting == ok: down: postgresql: 1s, normally up ok: run: postgresql: (pid 5940) 0s == Reverted == == Reverted to 9.2.18. Please check output for what went wrong == Toggling deploy page:rm -f /opt/gitlab/embedded/service/gitlab-rails/public/index.html Toggling deploy page: OK Toggling services:ok: run: logrotate: (pid 5945) 1s ok: run: sidekiq: (pid 5958) 0s Toggling services: OK Ensuring PostgreSQL is updated: NOT OK Error ensuring PostgreSQL is updated. Please check the logs dpkg: error processing package gitlab-ce (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: gitlab-ce E: Sub-process /usr/bin/dpkg returned an error code (1)
so i have to change shell of user: chsh -s /bin/bash gitlab-psql chsh -s /bin/bash git and it works