# Failed to install Cursor server: The "path" argument must be of type string. Received undefined

**URL:** <https://forum.cursor.com/t/failed-to-install-cursor-server-the-path-argument-must-be-of-type-string-received-undefined/155076>\
**Category:** Bug Reports\
**Tags:** devcontainers, ssh\
**Created:** [March 17, 2026, 5:16pm UTC](https://forum.cursor.com/t/failed-to-install-cursor-server-the-path-argument-must-be-of-type-string-received-undefined/155076 "2026-03-17T17:16:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [March 17, 2026, 5:45pm UTC](https://forum.cursor.com/t/failed-to-install-cursor-server-the-path-argument-must-be-of-type-string-received-undefined/155076/4 "2026-03-17T17:45:20Z")

</div>

Hey, this is a known bug in the Dev Containers extension when using SSH remote. The same error was reported in this thread [Dev Containers: can not attach to remote container](https://forum.cursor.com/t/dev-containers-can-not-attach-to-remote-container/147335) and here [Remote dev for container fail to open](https://forum.cursor.com/t/remote-dev-for-container-fail-to-open/154025). The issue is that the extension can’t figure out the home directory on the remote host when it tries to read `.gitconfig`.

A workaround that sometimes helps is to make sure the SSH remote host, not the container, has a `.gitconfig` and that `$HOME` is set correctly:

```bash
echo $HOME
ls -la ~/.gitconfig
# If the file doesn't exist:
git config --global user.name "Your Name"
git config --global user.email "your@email.com"

```

To be honest, for some users this workaround doesn’t help because the root issue is in the extension itself. The team is aware, but there’s no ETA for a fix yet. I passed along another signal, your report helps with prioritization.

Let me know if the workaround helped.

---

_[View the full topic](https://forum.cursor.com/t/failed-to-install-cursor-server-the-path-argument-must-be-of-type-string-received-undefined/155076)._
