erpnext 502 error not fixed
Anonymous
FREEOP

18 days ago

  • Service: erpnext (ID: dd152d4e-ebfc-42b3-b01f-b1ce75e49193)
  • Problem: Container won't start — start command keeps reverting to non-existent /usr/local/bin/entrypoint.sh
  • Latest failed deployment: 55f88e4a-a7a4-4fd7-8a26-2fdc7ab637b3
  • Error: "The executable /usr/local/bin/entrypoint.sh could not be found"
$20 Bounty

1 Replies

Status changed to Open Railway 18 days ago


hussain-nagavadria
FREE

18 days ago

What base image are you using? (frappe/erpnext:v14, custom Dockerfile, etc.)

Your current Railway service configuration (any custom start command set?)

Your Dockerfile (if using one)

1: Set correct start command

Railway → Service Settings → Deploy → Custom Start Command:

bench start

bench start --web-port=$PORT

2: Debug what's actually in your container

ls -la /usr/local/bin/ && ls -la /home/frappe/frappe-bench/

3: Check for conflicting configs

Railway Variables tab → remove any CMD or ENTRYPOINT overrides

railway.toml → check for startCommand conflicts

Make sure nothing is setting /usr/local/bin/entrypoint.sh manually

If using custom Dockerfile

The official frappe/erpnext images use:

NTRYPOINT ["docker-entrypoint.sh"]

CMD ["bench", "start"]

NOT /usr/local/bin/entrypoint.sh

Why it keeps reverting:

Railway caches the deployment config from your first successful build. If that had the wrong path, it sticks. Solution: Delete service → Create fresh → Set correct command BEFORE first deploy


Welcome!

Sign in to your Railway account to join the conversation.

Loading...