{"id":1800,"date":"2021-05-23T22:24:53","date_gmt":"2021-05-23T19:24:53","guid":{"rendered":"https:\/\/amorev.ru\/?p=1800"},"modified":"2021-07-20T16:24:31","modified_gmt":"2021-07-20T13:24:31","slug":"gitlab-not-work-after-update","status":"publish","type":"post","link":"https:\/\/amorev.ru\/en\/gitlab-not-work-after-update\/","title":{"rendered":"GitLab stopped working after the update"},"content":{"rendered":"\n<p>The other day I updated the GitLab version for Wormsoft from 10 to 13.2. The update itself went not that smooth (first I had to update Ubuntu from 16.04 up to 18.04), but in the end it was finished.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>If during the update you faced the error \"version GLIBC_2.25 not found\", then update the Ubuntu up to ver 18.04 and the problem will be gone.<\/p><\/blockquote>\n\n\n\n<p>Right after the update the system didn't start to run. The error was \"502. Whoops, GitLab is taking too much time to respond.\"<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"567\" src=\"https:\/\/amorev.ru\/wp-content\/uploads\/2021\/05\/image.png\" alt=\"\" class=\"wp-image-1801\" srcset=\"https:\/\/amorev.ru\/wp-content\/uploads\/2021\/05\/image.png 745w, https:\/\/amorev.ru\/wp-content\/uploads\/2021\/05\/image-300x228.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/figure><\/div>\n\n\n\n<p>For the start I needed to understand how to watch logs - <code>gitlab-ctl tail<\/code> - and we see everything that is happening. In my case there was the following in the logs:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">connect() to unix:\/var\/opt\/gitlab\/gitlab-workhorse\/socket failed (2: No such file or directory) while connecting<\/pre>\n\n\n\n<p>Trying <code>ls \/var\/opt\/gitlab\/gitlab-workhorse\/socket<\/code> and getting this kind of error:<\/p>\n\n\n\n<p><code>cannot access '\/var\/opt\/gitlab\/gitlab-workhorse\/socket': Permission denied<\/code> \u0438\u043b\u0438 <code>no such file or directory<\/code> which is telling us about the absence of the file on it's place.  The reason was pretty trivial - socket moved to another folder and now we need to show the other path in nginx - <code>\/var\/opt\/gitlab\/gitlab-workhorse\/sockets\/socket<\/code> and voila! GitLab works perfectly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other day I updated the GitLab version for Wormsoft from 10 to 13.2. The update itself went not that smooth (first I had to &hellip; <\/p>\n","protected":false},"author":1,"featured_media":1801,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,47,166],"tags":[37,31,173],"class_list":["post-1800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-korotkie-zametki","category-main","tag-devops","tag-gitlab","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts\/1800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/comments?post=1800"}],"version-history":[{"count":0,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts\/1800\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/media\/1801"}],"wp:attachment":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/media?parent=1800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/categories?post=1800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/tags?post=1800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}