Numerous Problems with Upgrade from 9.4 to 9.5

I am running GitLab CE built from source.

I noticed today that my install is lagging on updates. I successfully upgraded from 9.2 to 9.3 and then 9.3 to 9.4. However, I encountered major issues that I have never run into on the upgrade from 9.4 to 9.5.

I spent the entire day working on this. I will try to accurately list the items experienced in as much detail as possible.

Problems began right away in step 2 during the backup.

sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production

This resulted in 10 of the following error:

Ignoring repository error and continuing backing up project: (repository name omitted) - Too many open files - getaddrinfo

I have a backup from one of the previous versions so I didn't concern myself with working this error out.

The following versions have been in place since GitLab version 9.1 or so:

  1. Ruby: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
  2. Node: v8.6.0
  3. npm: 5.3.0
  4. yarn: v0.23.2
  5. go: go1.8.3 linux/amd64

In step 6, running:

sudo -u git -H git checkout 9-5-stable

Informs me that there are files that will be overwritten.

I changed it to the following and the install continued:

sudo -u git -H git checkout -f 9-5-stable

In step 12 major issues began with:

# Run database migrations
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

I received an error that redis refused a connection on port 6381. My redis is configured for the default port of 6379. I don't need redis for anything else so I configured the port to be 6381. The command then succeeded.

I again ran into issues with the following command:

# Update node dependencies and recompile assets
sudo -u git -H bundle exec rake yarn:install gitlab:assets:clean gitlab:assets:compile RAILS_ENV=production NODE_ENV=production

This initially resulted in the following error:

error "webpack#ajv" not installed error "webpack#ajv-keywords" not installed error Found 2 errors. Error: You have unmet dependencies. (yarn check command failed) Run yarn install to install missing modules.

I resolved this by reinstalling webpack and ajv both.

However, that resulted in:

error Lockfile does not contain pattern: "ajv@^5.2.3" warning "webpack#ajv@^5.1.5" could be deduped from "5.2.3" to "ajv@5.2.3" warning "webpack#ajv-keywords#ajv@>=5.0.0" could be deduped from "5.2.3" to "ajv@5.2.3" error Found 1 errors. Error: You have unmet dependencies. (yarn check command failed) Run yarn install to install missing modules.

I resolved this by using the suggested command:

sudo -u git -H yarn install

This succeeded but the following messages about deduping remain:

warning "webpack#ajv@^5.1.5" could be deduped from "5.2.3" to "ajv@5.2.3" warning "webpack#ajv-keywords#ajv@>=5.0.0" could be deduped from "5.2.3" to "ajv@5.2.3"

Problems with redis arose again with the final command to clean up cache:

# Clean up cache
sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production

However, redis was blocking a connection on 6380 this time. Once again, I reconfigured the redis port and the command succeeded.

I then finished with the commands to check statuses. Each of these returned green messages without errors. However, on the front end there is one final error.

Every page now returns a 500 error.

At this point my install is completely dead in the water. I have taken this about as far as I can figure out as someone who doesn't primarily work in these languages or technologies. This particular upgrade guide seems buggy, missing steps, and all around incomplete. Any help getting me back up and running without reverting would be greatly appreciated. Thanks.

Edited by Michael Strange