Dev Containers: can not attach to remote container

Describe the Bug

I need to reload window multiple times each time to reconnect to the remote container.

2025-12-25 10:19:04.098 [info] No remote exec server found for authority: dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d@ssh-remote+7b22686f73744e616d65223a2234303930227d; using local
2025-12-25 10:19:12.749 [info] Resolving dev container authority 'dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d' (attempt #1) container '{"settingType":"container","containerId":"3d6e9811f6be"}'
2025-12-25 10:19:12.749 [info] Using exec server from resolve options. execServerRemoteAuthority: ssh-remote+7b22686f73744e616d65223a2234303930227d
2025-12-25 10:19:12.760 [info] Starting Dev Containers dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d
2025-12-25 10:19:12.762 [info] [docker info]: Running command: docker
2025-12-25 10:19:12.771 [info] Copying devcontainer CLI from /Users/lizhengjia/.cursor/extensions/anysphere.remote-containers-1.0.29/dist/@devcontainers to /tmp/devcontainer-cli-c1b4d31a-6c8f-4cbe-bf9e-536353ab3ecc
2025-12-25 10:19:12.804 [info] [docker info]: Command completed with exit code 0
2025-12-25 10:19:12.804 [info] docker version: Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 140
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 
 runc version: cb82e29c75d387992bf59eb6eadf5d96cb6d4747
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-49-generic
 Operating System: Ubuntu 22.04.1 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.61GiB
 Name: server-4090
 ID: 7d3cd6a6-baf5-4322-9694-270c920e1391
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  10.108.0.3:15080
  127.0.0.0/8
 Registry Mirrors:
  https://docker.1ms.run/
  https://hub.rat.dev/
  https://docker.1panel.live/
 Live Restore Enabled: false
2025-12-25 10:19:12.805 [info] Inspecting docker container 3d6e9811f6be (fallback name: product_i2v)
2025-12-25 10:19:12.805 [info] [docker inspect]: Running command: docker
2025-12-25 10:19:12.824 [info] Devcontainer CLI written to /tmp/devcontainer-cli-c1b4d31a-6c8f-4cbe-bf9e-536353ab3ecc
2025-12-25 10:19:12.830 [info] Copying forwarder.js to /tmp/devcontainer-cli-c1b4d31a-6c8f-4cbe-bf9e-536353ab3ecc
2025-12-25 10:19:12.841 [info] Copying devcontainerShutdownMonitor.js to /tmp/devcontainer-cli-c1b4d31a-6c8f-4cbe-bf9e-536353ab3ecc
2025-12-25 10:19:12.846 [info] [docker inspect]: Command completed with exit code 0
2025-12-25 10:19:12.848 [info] Getting config for image product_i2v:25-01-24 from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json
2025-12-25 10:19:12.850 [info] No container configuration file found for image vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json')
2025-12-25 10:19:12.850 [info] Getting config for container product_i2v from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json
2025-12-25 10:19:12.851 [info] No container configuration file found for container product_i2v Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json')
2025-12-25 10:19:12.851 [info] Returning config: {}
2025-12-25 10:19:12.851 [info] Found attached container configuration: {}
2025-12-25 10:19:12.851 [info] Installing remote server in container...
2025-12-25 10:19:12.851 [error] Failed to read .gitconfig: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
2025-12-25 10:19:12.851 [error] Error resolving dev container authority The "path" argument must be of type string. Received undefined
2025-12-25 10:22:35.453 [info] Reloading window
2025-12-25 10:22:36.575 [info] No remote exec server found for authority: dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d@ssh-remote+7b22686f73744e616d65223a2234303930227d; using local
2025-12-25 10:22:36.927 [info] Resolving dev container authority 'dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d' (attempt #1) container '{"settingType":"container","containerId":"3d6e9811f6be"}'
2025-12-25 10:22:36.927 [info] Using exec server from resolve options. execServerRemoteAuthority: ssh-remote+7b22686f73744e616d65223a2234303930227d
2025-12-25 10:22:36.939 [info] Starting Dev Containers dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d
2025-12-25 10:22:36.943 [info] [docker info]: Running command: docker
2025-12-25 10:22:36.953 [info] Copying devcontainer CLI from /Users/lizhengjia/.cursor/extensions/anysphere.remote-containers-1.0.29/dist/@devcontainers to /tmp/devcontainer-cli-239804c9-4ae3-4a39-8438-e70bed7a4095
2025-12-25 10:22:36.998 [info] [docker info]: Command completed with exit code 0
2025-12-25 10:22:36.998 [info] docker version: Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 140
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: nvidia runc io.containerd.runc.v2
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 
 runc version: cb82e29c75d387992bf59eb6eadf5d96cb6d4747
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-49-generic
 Operating System: Ubuntu 22.04.1 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.61GiB
 Name: server-4090
 ID: 7d3cd6a6-baf5-4322-9694-270c920e1391
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  10.108.0.3:15080
  127.0.0.0/8
 Registry Mirrors:
  https://docker.1ms.run/
  https://hub.rat.dev/
  https://docker.1panel.live/
 Live Restore Enabled: false
2025-12-25 10:22:36.998 [info] Inspecting docker container 3d6e9811f6be (fallback name: product_i2v)
2025-12-25 10:22:36.998 [info] [docker inspect]: Running command: docker
2025-12-25 10:22:37.009 [info] Devcontainer CLI written to /tmp/devcontainer-cli-239804c9-4ae3-4a39-8438-e70bed7a4095
2025-12-25 10:22:37.014 [info] Copying forwarder.js to /tmp/devcontainer-cli-239804c9-4ae3-4a39-8438-e70bed7a4095
2025-12-25 10:22:37.024 [info] Copying devcontainerShutdownMonitor.js to /tmp/devcontainer-cli-239804c9-4ae3-4a39-8438-e70bed7a4095
2025-12-25 10:22:37.028 [info] [docker inspect]: Command completed with exit code 0
2025-12-25 10:22:37.031 [info] Getting config for image product_i2v:25-01-24 from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json
2025-12-25 10:22:37.033 [info] No container configuration file found for image vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json')
2025-12-25 10:22:37.033 [info] Getting config for container product_i2v from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json
2025-12-25 10:22:37.034 [info] No container configuration file found for container product_i2v Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json')
2025-12-25 10:22:37.034 [info] Returning config: {}
2025-12-25 10:22:37.034 [info] Found attached container configuration: {}
2025-12-25 10:22:37.034 [info] Installing remote server in container...
2025-12-25 10:22:37.034 [error] Failed to read .gitconfig: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
2025-12-25 10:22:37.034 [error] Error resolving dev container authority The "path" argument must be of type string. Received undefined
2025-12-25 10:23:04.927 [info] No remote exec server found for authority: dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d@ssh-remote+7b22686f73744e616d65223a2234303930227d; using local
2025-12-25 10:23:05.296 [info] Resolving dev container authority 'dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d' (attempt #1) container '{"settingType":"container","containerId":"3d6e9811f6be"}'
2025-12-25 10:23:05.296 [info] Using exec server from resolve options. execServerRemoteAuthority: ssh-remote+7b22686f73744e616d65223a2234303930227d
2025-12-25 10:23:05.309 [info] Starting Dev Containers dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d
2025-12-25 10:23:05.310 [info] [docker info]: Running command: docker
2025-12-25 10:23:05.320 [info] Copying devcontainer CLI from /Users/lizhengjia/.cursor/extensions/anysphere.remote-containers-1.0.29/dist/@devcontainers to /tmp/devcontainer-cli-3f114d75-3804-45d8-85af-2dfff3698853
2025-12-25 10:23:05.353 [info] [docker info]: Command completed with exit code 0
2025-12-25 10:23:05.353 [info] docker version: Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 140
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 
 runc version: cb82e29c75d387992bf59eb6eadf5d96cb6d4747
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-49-generic
 Operating System: Ubuntu 22.04.1 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.61GiB
 Name: server-4090
 ID: 7d3cd6a6-baf5-4322-9694-270c920e1391
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  10.108.0.3:15080
  127.0.0.0/8
 Registry Mirrors:
  https://docker.1ms.run/
  https://hub.rat.dev/
  https://docker.1panel.live/
 Live Restore Enabled: false
2025-12-25 10:23:05.354 [info] Inspecting docker container 3d6e9811f6be (fallback name: product_i2v)
2025-12-25 10:23:05.355 [info] [docker inspect]: Running command: docker
2025-12-25 10:23:05.376 [info] Devcontainer CLI written to /tmp/devcontainer-cli-3f114d75-3804-45d8-85af-2dfff3698853
2025-12-25 10:23:05.382 [info] Copying forwarder.js to /tmp/devcontainer-cli-3f114d75-3804-45d8-85af-2dfff3698853
2025-12-25 10:23:05.398 [info] [docker inspect]: Command completed with exit code 0
2025-12-25 10:23:05.398 [info] Copying devcontainerShutdownMonitor.js to /tmp/devcontainer-cli-3f114d75-3804-45d8-85af-2dfff3698853
2025-12-25 10:23:05.399 [info] Getting config for image product_i2v:25-01-24 from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json
2025-12-25 10:23:05.401 [info] No container configuration file found for image vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json')
2025-12-25 10:23:05.402 [info] Getting config for container product_i2v from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json
2025-12-25 10:23:05.402 [info] No container configuration file found for container product_i2v Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json')
2025-12-25 10:23:05.402 [info] Returning config: {}
2025-12-25 10:23:05.402 [info] Found attached container configuration: {}
2025-12-25 10:23:05.402 [info] Installing remote server in container...
2025-12-25 10:23:05.402 [error] Failed to read .gitconfig: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
2025-12-25 10:23:05.403 [error] Error resolving dev container authority The "path" argument must be of type string. Received undefined

Key error message

2025-12-25 10:23:05.402 [error] Failed to read .gitconfig: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
2025-12-25 10:23:05.403 [error] Error resolving dev container authority The "path" argument must be of type string. Received undefined

The VSCode never had this connection problem. I think it is caused by the Dev Containers extension developed by cursor team.

Steps to Reproduce

Every time the machine is disconnected from the network, it needs to be reconnected.

Expected Behavior

Only need to reload window once to connect successfully.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43
VSCode Version: 1.105.1
Commit: 32cfbe848b35d9eb320980195985450f244b3030
Date: 2025-12-19T06:06:44.644Z (5 days ago)
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

This is a known issue with the Dev Containers extension when connecting via Remote SSH. The team is already working on a fix.

The error happens when the extension tries to read .gitconfig, but the path is undefined on the remote host.

Possible workaround:

  1. Make sure ~/.gitconfig exists on the remote SSH server (not inside the container):
ls -la ~/.gitconfig
  1. If it doesn’t exist, create a minimal config:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
  1. Then try reconnecting to the container.

Let me know whether the workaround helps or if the issue persists. I’ll pass any additional info to the team.

Sorry for the late reply. I just tried your temporary solution (create .gitconfig in remote server, not remote container), but I still get the same problem.

2025-12-30 11:15:47.937 [info] No remote exec server found for authority: dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d@ssh-remote+7b22686f73744e616d65223a2234303930227d; using local
2025-12-30 11:15:48.301 [info] Resolving dev container authority 'dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d' (attempt #1) container '{"settingType":"container","containerId":"3d6e9811f6be"}'
2025-12-30 11:15:48.301 [info] Using exec server from resolve options. execServerRemoteAuthority: ssh-remote+7b22686f73744e616d65223a2234303930227d
2025-12-30 11:15:48.314 [info] Starting Dev Containers dev-container+7b2273657474696e6754797065223a22636f6e7461696e6572222c22636f6e7461696e65724964223a22336436653938313166366265227d
2025-12-30 11:15:48.314 [info] [docker info]: Running command: docker
2025-12-30 11:15:48.325 [info] Copying devcontainer CLI from /Users/lizhengjia/.cursor/extensions/anysphere.remote-containers-1.0.29/dist/@devcontainers to /tmp/devcontainer-cli-cd123d51-8549-43b1-a791-0a41ee0b6aad
2025-12-30 11:15:48.366 [info] [docker info]: Command completed with exit code 0
2025-12-30 11:15:48.366 [info] docker version: Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 140
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: nvidia
 Init Binary: docker-init
 containerd version: 
 runc version: cb82e29c75d387992bf59eb6eadf5d96cb6d4747
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-49-generic
 Operating System: Ubuntu 22.04.1 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 62.61GiB
 Name: server-4090
 ID: 7d3cd6a6-baf5-4322-9694-270c920e1391
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  10.108.0.3:15080
  127.0.0.0/8
 Registry Mirrors:
  https://docker.1ms.run/
  https://hub.rat.dev/
  https://docker.1panel.live/
 Live Restore Enabled: false
2025-12-30 11:15:48.366 [info] Inspecting docker container 3d6e9811f6be (fallback name: product_i2v)
2025-12-30 11:15:48.366 [info] [docker inspect]: Running command: docker
2025-12-30 11:15:48.377 [info] Devcontainer CLI written to /tmp/devcontainer-cli-cd123d51-8549-43b1-a791-0a41ee0b6aad
2025-12-30 11:15:48.382 [info] Copying forwarder.js to /tmp/devcontainer-cli-cd123d51-8549-43b1-a791-0a41ee0b6aad
2025-12-30 11:15:48.389 [info] Copying devcontainerShutdownMonitor.js to /tmp/devcontainer-cli-cd123d51-8549-43b1-a791-0a41ee0b6aad
2025-12-30 11:15:48.394 [info] [docker inspect]: Command completed with exit code 0
2025-12-30 11:15:48.396 [info] Getting config for image product_i2v:25-01-24 from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json
2025-12-30 11:15:48.398 [info] No container configuration file found for image vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%253A25-01-24.json Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/imageConfigs/product_i2v%3A25-01-24.json')
2025-12-30 11:15:48.400 [info] Getting config for container product_i2v from vscode-userdata:/Users/lizhengjia/Library/Application%20Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json
2025-12-30 11:15:48.401 [info] No container configuration file found for container product_i2v Unable to read file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/Users/lizhengjia/Library/Application Support/Cursor/User/globalStorage/anysphere.remote-containers/nameConfigs/product_i2v.json')
2025-12-30 11:15:48.401 [info] Returning config: {}
2025-12-30 11:15:48.401 [info] Found attached container configuration: {}
2025-12-30 11:15:48.401 [info] Installing remote server in container...
2025-12-30 11:15:48.401 [error] Failed to read .gitconfig: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
2025-12-30 11:15:48.402 [error] Error resolving dev container authority The "path" argument must be of type string. Received undefined

1 Like

In addition, I found some strange content in the ~/.gitconfig inside the container, I deleted the content, but the problem still exists.

image

1 Like

Hey @378610 I am Tarun from the extension team.

Can you check the version of the remote extension and dev container extension.
Try updating them to latest and lmk if the error persists.

I tried reproducing the error, but the best i got was 2025-12-30 17:21:56.338 [error] Failed to read /home/ubuntu/.gitconfig: EntryNotFound (FileSystemError): /home/ubuntu/.gitconfig

This is what i followed - connect to remote host > spin up a container (i did docker run -d --name my-test-container ubuntu:latest sleep infinity) > attach to a running container > close window > attach again

@Tarun_Kumar_S

Hi, the version of (remote ssh / dev containers) in my docker is already latest.

But the issue still exists.

To be honest, I don’t know how I can get you to reproduce this problem. Maybe this problem is related to my machine or system version. But I can provide any logs you need to help troubleshoot this problem.

Seems like it Izj.

If you find anything interesting happening in between, feel free to hit us up.

Maybe if you can share the image that your are using, i can prob give one last shot, not sure if its gonna reveal anything tho.