You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Support]: container startup failure during init-db.sh聽#1026
I'm running ZTNet in Nomad cluster and I cannot run any version after 0.8.0. Job definition are similar to docker-compose.yaml, only diff is that I have no volumes because it uses a remote database and manages a remote controller.
The container fails to start with these logs:
Creating .env file...
Applying migrations to the database...
npm notice run ztnet@0.1.0 npx
npm notice run 'prisma' migrate deploy
Error: Can't write to /usr/local/lib/node_modules/prisma/node_modules/@prisma/engines please make sure you install "prisma" with the right permissions.
An error occurred. Exiting...
If I take away user = "nextjs" so it should be root in container, it does not even run migration because it cannot create .env:
Creating .env file...
/app/init-db.sh: line 18: .env: Permission denied
An error occurred. Exiting...
Which is why I have that user designation since 0.7.0.
Since 0.8.1 the Prisma engine is missing from the image, so it gets downloaded at startup, which only works as root.
Im not that into clusters, but try to run as root and remove the cap_drop = ["all"]. Does that makes any diffrence?
Since 0.8.1 the Prisma engine is missing from the image, so it gets downloaded at startup, which only works as root. Im not that into clusters, but try to run as root and remove the cap_drop = ["all"]. Does that makes any diffrence?
Activity
sinamics commentedon Sep 24, 2026
Since 0.8.1 the Prisma engine is missing from the image, so it gets downloaded at startup, which only works as root.
Im not that into clusters, but try to run as root and remove the
cap_drop = ["all"]. Does that makes any diffrence?alemonmk commentedon Sep 24, 2026
Thanks, it runs after giving
dac_overrideback.