Troubleshooting
Diagnose common dev container issues affecting OpenSana profiles, MCP connectivity, and AI CLIs.
Container Fails to Start
If the container fails on startup with a mount error, make sure this exists on your host:
mkdir -p ~/.config/opensanaEnvironment Variables Missing in the Container
Host environment variables must be exported before the container starts.
If they are missing:
- update your shell profile
- open a new terminal or reload the shell
- rebuild or reopen the container
MCP Cannot Reach OpenSana
In strict mode, the firewall may be blocking the required domain.
Check that the OpenSana deployment host is included in the firewall allowlist and rebuild or re-run the firewall script if needed.
Claude Code Cannot Reach Bedrock
Verify:
AWS_BEARER_TOKEN_BEDROCKis setAWS_REGIONis correct- the selected network mode matches your expectation
- the container was rebuilt after any firewall or environment change
Intermittent Retry Failures
If AI requests start failing with retries and no clear HTTP status, the most likely cause is stale firewall allowlist data in strict mode.
Usually the fix is:
sudo /usr/local/bin/init-firewall.shor a full container restart.
When To Switch to Open Mode
If you want to confirm whether the firewall is the problem, temporarily switch to:
export DEVCONTAINER_NETWORK_MODE=openIf the issue disappears in open mode, the firewall configuration is the likely cause.