SOLVED:
I had to manually kill a stray unicorn process that wasn’t getting reaped by gitlab-ctl
I’ve updated my GitLab instance to 10.6.3 but the admin panel still reports 10.6.0. This is using the Omnibus install. I just want to make sure the app server isn’t running an old copy of the code somehow.
If I pull up a rails console, the version reported there matches the version reported by dpkg.
Thanks!
user@repositories:~$ dpkg -l | grep gitlab
ii gitlab-ce 10.6.3-ce.0
Would you mind to share more details about the solution?
I have the same problem, the version mismatch:
And the website says:
Unfortunately, some JS scripts are not loading because requires a different version, my workaround at the moment is forcing the version but I would like to have everything updated.
Sure!
What I did was run “gitlab-ctl stop” to stop all processes. Then run “ps aux | grep unicorn” to look for the web processes that were still running.
In the case below, you can see “unicorn master” has PID 1507. So I just killed that process, first by trying “sudo kill 1507” but then had to use “sudo kill -9 1507” because the process wasn’t quitting. Then I made sure all the worker processes quit with the master process and then ran “gitlab-ctl start.”
Hope that helps!
user@repositories:~$ ps aux | grep unicorn
root 1222 0.0 0.0 4212 384 ? Ss Feb14 0:00 runsv unicorn
root 1236 0.0 0.0 4356 528 ? S Feb14 0:00 svlogd -tt /var/log/gitlab/unicorn
git 1483 0.2 0.0 18036 1624 ? Ss Apr04 1:26 /bin/bash /opt/gitlab/embedded/bin/gitlab-unicorn-wrapper
git 1507 0.1 4.7 750400 488244 ? Sl Apr04 0:49 unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git 6937 5.4 5.6 1234404 582180 ? Sl 07:38 1:13 unicorn worker[4] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git 7092 4.7 5.8 985008 603372 ? Sl 07:39 1:02 unicorn worker[0] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git 10036 5.1 5.4 1111112 561592 ? Sl 07:52 0:26 unicorn worker[1] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git 10681 4.9 5.3 1082464 544644 ? Sl 07:55 0:17 unicorn worker[3] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
user 12145 0.0 0.0 11752 908 pts/0 S+ 08:01 0:00 grep --color=auto unicorn
git 32718 5.8 6.2 1196404 637608 ? Sl 07:12 2:52 unicorn worker[2] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
Thank you so much @ejfinneran, it helped! it worked as expected.
Now it shows the correct version and the correct JS versions are loaded, really appreciate your help.
1 Like