You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open directory in VSCode from within WSL2 - code .
Select "Reopen in Container" from the popup for the dev container
Expected Behavior
Workspace should be opened in Docker container for development
Observed Behavior
VSCode shows error "Cannot reconnected. Please reload the window." and shows "Disconnected from Dev Container".
development_nautobot_1 container shows "Exited" status, but all other containers are running.
11:38 $ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8a2908da6f59 nautobot/nautobot-py "nautobot-server rqw…" 54 seconds ago Up 53 seconds development_worker_1
562271b77719 nautobot/nautobot-py "/tmp/nautobot/docke…" 54 seconds ago Exited (2) 48 seconds ago development_nautobot_1
96597bc37bc2 postgres:10 "docker-entrypoint.s…" 55 seconds ago Up 54 seconds 5432/tcp development_postgres_1
d67dd930db96 redis:5-alpine "docker-entrypoint.s…" 55 seconds ago Up 54 seconds 6379/tcp development_redis_1
11:39 $ docker logs development_nautobot_1
Operations to perform:
Apply all migrations: admin, auth, circuits, contenttypes, dcim, extras, ipam, sessions, taggit, tenancy, users, virtualization
Running migrations:
No migrations to apply.
↩️ Skip creating the superuser
sleep: 1: sleep: Syntax error: end of file unexpected (expecting "do")
Changing these lines to command: "sleep infinity" resolves the issue.
Alternatively, removing the reference to "../development/docker-compose.debug.yml" from devcontainer.json also fixes the issue, but doesn't provide the desired behavior for debugging:
Thanks for the analysis! I think there's some more breakage in our vscode integration, caused by some of the late changes prior to 1.0.0b1, beyond just this - I'll try to look into it soon.
Environment
Steps to Reproduce
code .
Expected Behavior
Workspace should be opened in Docker container for development
Observed Behavior
VSCode shows error "Cannot reconnected. Please reload the window." and shows "Disconnected from Dev Container".
development_nautobot_1 container shows "Exited" status, but all other containers are running.
Possible Workaround / Fixes
This issue appears to be caused by this line:
nautobot/development/docker-compose.debug.yml
Lines 5 to 6 in 3f907c8
Changing these lines to
command: "sleep infinity"
resolves the issue.Alternatively, removing the reference to "../development/docker-compose.debug.yml" from devcontainer.json also fixes the issue, but doesn't provide the desired behavior for debugging:
nautobot/.devcontainer/devcontainer.json
Line 2 in 3f907c8
The text was updated successfully, but these errors were encountered: