Gitlab Clone, Push, Pull Error "fatal: unable to access '..': The requested URL returned error: 403"

Hello, first of all, excuse me for my bad english.
I have a Gitlab CE container, but recently it has started to refuse remote connections (Clone, Pull, Push), showing the following error: "fatal: unable to access ‘…’: The requested URL returned error: 403 ".
I have already tried updating the version of the gitlab image, but the error continues. It is important to note that there is a proxy in the network

Docker Inspect

"Config": {
            "Hostname": "167.134.218.117",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "22/tcp": {},
                "443/tcp": {},
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/opt/gitlab/embedded/bin:/opt/gitlab/bin:/assets:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "TERM=xterm"
            ],
            "Cmd": [
                "/assets/wrapper"
            ],
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/opt/gitlab/bin/gitlab-healthcheck --fail --max-time 10"
                ],
                "Interval": 60000000000,
                "Timeout": 30000000000,
                "Retries": 5
            },
            "ArgsEscaped": true,
            "Image": "gitlab/gitlab-ce:latest",
            "Volumes": {
                "/etc/gitlab": {},
                "/var/log/gitlab": {},
                "/var/opt/gitlab": {}
            },
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "85d5734cfc93670305643caaa3c43b8b2b5f4649b20b94c50f3863b1406c6dce",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "22/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "2221"
                    }
                ],
                "443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "4431"
                    }
                ],
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8081"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/85d5734cfc93",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "f6f3bbf2f26f284189e7d26c688464c8e261ae2539257b89c2e66e5a7e32c4bb",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "c07037f3d3cb9a089a72e36f3e3e86b29051cdd75a047e6a2ad7729456f85037",
                    "EndpointID": "f6f3bbf2f26f284189e7d26c688464c8e261ae2539257b89c2e66e5a7e32c4bb",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02",
                    "DriverOpts": null
                }
            }
        }
1 Like

Hello @ggcc2788 and welcome to the GitLab forum!

Not sure if project permissions are causing you a trouble. There was a case where user needed to add himself as a project member in order to resolve the issue.

From the project page click the settings gear and then click members. Add yourself as a member to the project. “Master” Role should always work, but based off of this document you can probably use the “Reporter” role as a minimum. The reporter role is the least privilege that still has access to “Pull project code.”

Hello dsumenkovic, Thanks for the help.
What I find strange, is that when cloning, It never requested the user and password, just returned the error “fatal: unable to access ‘’: The requested URL returned error: 403”. I thought it might have something to do with the proxy

2 Likes

remove or edit web credential of gitlab in your os ( if you are using windows, go to Control Panel\User Accounts\Credential Manager)