Gitlab Problems

Hello,

I have switched from Docker Gitlab to Gitlab directly on debian and use it in combination with Plesk now I have the connection to Gitlab with a subdomain managed but as soon as I make Gitlab reconfigure all folder permissions are changed again and then I get a permanent 502 error because my domain user does not come to the folders, I also gave my user test white root permissions and the git groups but even then not as soon as I set chmod 775 /var/opt/gitlab recursive I get limited access to gitlab.

These are my nginx settings pointing to a conf:

location ~ / {
# serve static files from defined root folder;.
# @gitlab is a named location for the upstream fallback, see below
# for manual installation
root /home/git/gitlab/public;
# for omnibus installation
# root /opt/gitlab/embedded/service/gitlab-rails/public;
try_files $uri $uri/index.html $uri.html @gitlab;
}

if a file, which is not found in the root folder is requested,

then the proxy pass the request to the upsteam (gitlab unicorn)

location @gitlab {
proxy_read_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
proxy_connect_timeout 300; # https://github.com/gitlabhq/gitlabhq/issues/694
proxy_redirect off;

proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header host $http_host;
proxy_set_header X-Real-IP $remote_addr;

proxy_pass http://gitlab;

}

This is my config
upstream gitlab {
# for manual installation
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket;
# for omnibus installation
server unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket;
}

Hope for a solution

Here is the right Nginx Error Log from ‘proxy_error_log.txt’

2023/03/03 16:56:29 [crit] 146124#0: *11805 connect() to unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket failed (13: Permission denied) while connecting to upstream, client: 2a02:3102:bd00:f60:dd23:ca0:9d92:f2fc, server: gitlab.surreal-visions.com, request: “GET / HTTP/2.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/”, host: “gitlab.surreal-visions.com
2023/03/03 16:56:29 [crit] 146124#0: *11805 connect() to unix:/home/git/gitlab/tmp/sockets/gitlab.socket failed (2: No such file or directory) while connecting to upstream, client: 2a02:3102:bd00:f60:dd23:ca0:9d92:f2fc, server: gitlab.surreal-visions.com, request: “GET / HTTP/2.0”, upstream: “http://unix:/home/git/gitlab/tmp/sockets/gitlab.socket:/”, host: “gitlab.surreal-visions.com
2023/03/03 16:56:29 [error] 146124#0: *11805 no live upstreams while connecting to upstream, client: 2a02:3102:bd00:f60:dd23:ca0:9d92:f2fc, server: gitlab.surreal-visions.com, request: “GET /favicon.ico HTTP/2.0”, upstream: “http://gitlab/favicon.ico”, host: “gitlab.surreal-visions.com”, referrer: “https://gitlab.surreal-visions.com/

Okay First Error Found i used the Path for gitlab installation not for the omnibus installation

Here is The Solution: