Application deployment failing on remote AWS EC2 node (exit code 1) even after running setup script manually #3972
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @ArshilHapani! I'm Dosu and I’m helping the dokploy team. Based on researching the codebase and documentation, here's what I found for your issue: Key Finding: Root Access Requirement Dokploy currently requires root login for remote servers. The screenshot showing "Please run this script as root or with sudo" suggests you may be connecting as a non-root user. When deploying with a non-root user, deployments fail silently with no detailed error messages - which matches your "exit code 1" error. To answer your specific questions:
Recommended fixes:
If you can't use root directly, workarounds include:
To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
running this on remote server works |
Beta Was this translation helpful? Give feedback.


Hi @ArshilHapani! I'm Dosu and I’m helping the dokploy team.
Based on researching the codebase and documentation, here's what I found for your issue:
Key Finding: Root Access Requirement
Dokploy currently requires root login for remote servers. The screenshot showing "Please run this script as root or with sudo" suggests you may be connecting as a non-root user. When deploying with a non-root user, deployments fail silently with no detailed error messages - which matches your "exit code 1" error.
To answer your specific questions:
Is running the setup script manually sufficient? - Yes, but it must be run as root, and you must also ensure Dokploy connects as root via SSH. The setup itse…