Unable to import repository in Docker instance

Problem to solve

I’ve tried importing from GitHub via integration and https, and from GitLab.com using https and keep getting the same “gitaly.UnaryServerInterceptor” error no matter what I’ve tried. I’m using personal access token with full repo access and read:org as described, and when I tried importing from GitLab.com I gave that PAT every permission. I’ve confirmed I can use the PATs to do a git clone locally. This is also happening with GitHub public repos

Full error:

{
    "component": "gitaly.UnaryServerInterceptor",
    "correlation_id": "01J4BH9P0GADVE77GVCK08E7KY",
    "error": "repository not found",
    "error_metadata": {
        "relative_path": "@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.git",
        "storage_name": "default"
    },
    "grpc.code": "NotFound",
    "grpc.meta.auth_version": "v2",
    "grpc.meta.client_name": "gitlab-web",
    "grpc.meta.deadline_type": "regular",
    "grpc.meta.method_operation": "accessor",
    "grpc.meta.method_scope": "repository",
    "grpc.meta.method_type": "unary",
    "grpc.method": "FindDefaultBranchName",
    "grpc.request.deadline": "2024-08-03T07:12:17.181",
    "grpc.request.fullMethod": "/gitaly.RefService/FindDefaultBranchName",
    "grpc.request.glProjectPath": "github-mirror/docker",
    "grpc.request.glRepository": "project-22",
    "grpc.request.payload_bytes": 129,
    "grpc.request.repoPath": "@hashed/78/5f/785f3ec7eb32f30b90cd0fcf3657d388b5ff4297f2f9716ff66e9b69c05ddd09.git",
    "grpc.request.repoStorage": "default",
    "grpc.response.payload_bytes": 0,
    "grpc.service": "gitaly.RefService",
    "grpc.start_time": "2024-08-03T07:12:07.871",
    "grpc.time_ms": 0.755,
    "level": "info",
    "msg": "finished unary call with code NotFound",
    "pid": 302,
    "remote_ip": "172.25.0.3",
    "span.kind": "server",
    "system": "grpc",
    "time": "2024-08-03T07:12:07.872Z",
    "user_id": "34",
    "username": "<my_username>"
}

Configuration

I haven’t made any changes in config files, only used the “GITLAB_OMNIBUS_CONFIG” env var in the compose file below

Docker compose:

version: '3.6'
services:
  gitlab:
    image: gitlab/gitlab-ee:latest
    container_name: gitlab
    restart: on-failure:1
    hostname: 'gitlab.mylocaldomain.net'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'https://gitlab.mylocaldomain.net'
        gitlab_rails['gitlab_shell_ssh_port'] = 2222
        
        ### Troubleshooting failed delete
        sidekiq['enable'] = false
        
        
        ### Reverse Proxy
        nginx['listen_port'] = 80
        nginx['listen_https'] = false
        nginx['redirect_http_to_https'] = false
        nginx['proxy_set_headers'] = {"X-Forwarded-Proto" => "https","X-Forwarded-Ssl" => "on"}
        gitlab_rails['registry_enabled'] = true
        registry['enable'] = false
        registry_nginx['enable'] = false
        registry_nginx['listen_port'] = 81
        registry_nginx['listen_https'] = false
        registry_nginx['proxy_set_headers'] = {"X-Forwarded-Proto" => "https","X-Forwarded-Ssl" => "on"}
        gitlab_rails['rack_attack_git_basic_auth'] = {
            'enabled' => false,
        }
    networks:
      - gui
    ports:
      - '8097:80'
      - '2222:22'
      ### Troubleshooting failed import
      - 8075:8075
      - 9999:9999
    volumes:
      - /hostbinding/gitlab/config:/etc/gitlab
      - /hostbinding/logs/gitlab:/var/log/gitlab
      - /hostbinding/gitlab/data:/var/opt/gitlab
    
    
networks:
  gui:
    name: gui
    external: true