Deployment AIO fixed live entered FATAL state#7893
Deployment AIO fixed live entered FATAL state#7893sriramveeraghanta merged 1 commit intomakeplane:previewfrom
Conversation
WalkthroughUpdated supervisor configuration for the live service to point to a new working directory and Node entrypoint, switching from /app/live and node live/server.js to /app/live/apps/live and node ./dist/server.js. No other program definitions were changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| directory=/app/live/apps/live | ||
| command=sh -c "node ./dist/server.js" |
There was a problem hiding this comment.
🧩 Analysis chain
LGTM! Path correction aligns with other services.
The updated directory and command fix the MODULE_NOT_FOUND error by correcting the path from /app/live/live/server.js (which doesn't exist) to /app/live/apps/live/dist/server.js. This now follows the same structural pattern as the web, space, and admin services.
Please verify that the build process for the live service produces the compiled output at /app/live/apps/live/dist/server.js:
🏁 Script executed:
#!/bin/bash
# Description: Verify the live service build output location exists in the Docker image.
# Expected: Find Dockerfile or build scripts that place the live server at the new path.
# Search for Dockerfiles that might set up the live service
fd -e Dockerfile -e dockerfile | xargs rg -l "live"
# Search for build configurations or scripts that reference the live service structure
rg -g '!node_modules' -g '!*.log' "live/apps/live|apps/live" --type-add 'config:*.{json,yml,yaml,conf}' -t config
# Look for package.json or build scripts in the live service directory
fd "package.json" | xargs rg -l "live" | head -5Length of output: 2212
🏁 Script executed:
#!/bin/bash
# Check output directory in tsconfig.json for apps/live
echo "=== tsconfig.json outDir ==="
rg -n '"outDir"' -n apps/live/tsconfig.json
# Check build script in package.json for apps/live
echo "=== package.json build script ==="
rg -C2 '"scripts"' -n apps/live/package.json
# Inspect build steps in Dockerfile.live and Dockerfile.dev
echo "=== apps/live/Dockerfile.live (lines 1-200) ==="
sed -n '1,200p' apps/live/Dockerfile.live
echo "=== apps/live/Dockerfile.dev (lines 1-200) ==="
sed -n '1,200p' apps/live/Dockerfile.devLength of output: 2955
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| directory=/app/live/apps/live | |
| command=sh -c "node ./dist/server.js" | |
| directory=/app/live/apps/live | |
| command=sh -c "node ./dist/start.js" |
🤖 Prompt for AI Agents
In deployments/aio/community/supervisor.conf around lines 99 to 100, the
supervisor command uses node ./dist/server.js but the project’s real runtime
entrypoint is start.js; update the command to run the correct entrypoint (e.g.,
node ./dist/start.js or the package start wrapper as required) so supervisor
launches the actual application entrypoint, and ensure the working directory
remains /app/live/apps/live.
Description
Resolved Docker AIO (All in one) Plane image issues with starting live process.
live process fails to start after few attempts:
Looked in
live.err.logand it clearly shows that there is an issue with starting server (modules not found):I resolved the issue by updating path and run command for live proces in
supervisor.conf.Type of Change
References
Summary by CodeRabbit