Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • omnibus-gitlab omnibus-gitlab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 992
    • Issues 992
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 58
    • Merge requests 58
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Issues
  • #1267
Closed
Open
Created Apr 28, 2016 by Viktor Kulikov@bezdoom

Some issues via upgrade from 8.6.7 o .8.7.0

Hi guys

I had try upgrade my gitlab to 8.7 but i got this response

root@vps03-de /home/vkulikov # apt-get upgrade gitlab-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-image-generic-lts-wily
The following packages will be upgraded:
  gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/271 MB of archives.
After this operation, 3,363 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 97237 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_8.7.0-ce.0_amd64.deb ...
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
rake aborted!
Errno::ENOMEM: Cannot allocate memory - whoami
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/popen.rb:23:in `popen'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/task_helpers.rake:78:in `run'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/task_helpers.rake:99:in `warn_user_is_not_gitlab'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:8:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:create
(See full trace by running task with --trace)
gitlab preinstall: 
gitlab preinstall: Backup failed! If you want to skip this backup, run the following command and
gitlab preinstall: try again:
gitlab preinstall: 
gitlab preinstall:   sudo touch /etc/gitlab/skip-auto-migrations
gitlab preinstall: 
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_8.7.0-ce.0_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://gitlab.notagency.ru
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab: 
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab: 
Errors were encountered while processing:
 /var/cache/apt/archives/gitlab-ce_8.7.0-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I do not want to continue to upgrade without a backup database. How do I solve the problem?

Assignee
Assign to
Time tracking