-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
During one of the runs the Docker container was stopped, the .env was updated but a missing env var caused the next install to fail to start. Then each run after wasn't getting an updated .env file and would attempt to stop the docker service but would his the same missing env issue when doing so.
Instance ps command:
ubuntu@ip-172-31-71-135:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Workflow failure log:
TASK [Stop and cleanup Docker] *************************************************
Tuesday 04 November 2025 22:33:28 +0000 (0:00:00.027) 0:00:06.528 ******
fatal: [98.92.74.231]: FAILED! => {"changed": true, "cmd": ["docker", "compose", "--project-directory", "/home/ubuntu/cascade-mcp", "down", "--remove-orphans", "--rmi", "all", "--volumes"], "delta": "0:00:00.105977", "end": "2025-11-04 22:33:29.187924", "msg": "non-zero return code", "rc": 1, "start": "2025-11-04 22:33:29.081947", "stderr": "time=\"2025-11-04T22:33:29Z\" level=warning msg=\"The \\\"PORT\\\" variable is not set. Defaulting to a blank string.\"\ntime=\"2025-11-04T22:33:29Z\" level=warning msg=\"The \\\"PORT\\\" variable is not set. Defaulting to a blank string.\"\ninvalid proto: ", "stderr_lines": ["time=\"2025-11-04T22:33:29Z\" level=warning msg=\"The \\\"PORT\\\" variable is not set. Defaulting to a blank string.\"", "time=\"2025-11-04T22:33:29Z\" level=warning msg=\"The \\\"PORT\\\" variable is not set. Defaulting to a blank string.\"", "invalid proto: "], "stdout": "", "stdout_lines": []}
The .env file should be rotated near the beginning of every Ansible run. Users should be confident that whatever the latest .env file is will be used in their latest deployment.
Metadata
Metadata
Assignees
Labels
No labels