Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8921

Closed
Open
Created Mar 06, 2015 by Administrator@rootOwner

upgrade failed! upgrade to v7.8.2 from v7.7.2

Created by: vflong

gitlab-ctl reconfigure

Running handlers:
[2015-03-06T09:32:42+08:00] ERROR: Running exception handlers
Running handlers complete

[2015-03-06T09:32:42+08:00] ERROR: Exception handlers complete
[2015-03-06T09:32:42+08:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 13 resources updated in 42.227638035 seconds
[2015-03-06T09:32:42+08:00] ERROR: bash[migrate gitlab-rails database] (gitlab::database_migrations line 19) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20150306-23527-hbb0eg" ----
STDOUT: rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::Error: ERROR:  column "position" of relation "merge_requests" already exists
: ALTER TABLE "merge_requests" ADD COLUMN "position" integer DEFAULT 0
ActiveRecord::StatementInvalid: PG::Error: ERROR:  column "position" of relation "merge_requests" already exists
: ALTER TABLE "merge_requests" ADD COLUMN "position" integer DEFAULT 0

PG::Error: ERROR:  column "position" of relation "merge_requests" already exists

Tasks: TOP => db:migrate
(See full trace by running task with --trace)
== 20140125162722 AddAvatarToProjects: migrating ==============================
-- add_column(:projects, :avatar, :string)
   -> 0.0552s
== 20140125162722 AddAvatarToProjects: migrated (0.0553s) =====================

== 20140611135229 AddPositionToMergeRequest: migrating ========================
-- add_column(:merge_requests, :position, :integer, {:default=>0})
STDERR: 
---- End output of "bash"  "/tmp/chef-script20150306-23527-hbb0eg" ----
Ran "bash"  "/tmp/chef-script20150306-23527-hbb0eg" returned 1
[2015-03-06T09:32:42+08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Assignee
Assign to
Time tracking