Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #29907

Closed
Open
Opened Mar 23, 2017 by nhanct@nhanct

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab-foss#29907