7 months ago
Hi,
I’m not sure what changed, but my latest Strapi deployment keeps crashing after a few seconds. It was working fine before. The only recent changes I made were:
• Adding an API key
• Removing a domain name (the DNS changes didn’t propagate correctly, so I’ve been using the generated URL instead)
I tried rolling back to a previous deployment, but the error still persists. Interestingly, when I run the project locally, I can connect to the database—but only after restarting the service(Postgres) .
Here are the relevant logs and my project ID:
[2025-08-07 10:45:18.769] http: GET /admin (17 ms) 200
Stopping Container
npm error path /app
npm error command failed
npm error signal SIGTERM
npm error command sh -c strapi start
npm error A complete log of this run can be found in: /root/.npm/logs/2025-08-07T104514469Z-debug-0.log
Stopping Container
Project ID: 13568bb9-cd4a-4446-9229-236fc5d1376a
Would appreciate any guidance on what might be causing this. Thanks!
1 Replies
7 months ago
Are you sure you set all the env variables: "NODE_ENV=production
APP_KEYS=key1,key2,key3,key4
JWT_SECRET=your-long-random
ADMIN_JWT_SECRET=your-long-random
API_TOKEN_SALT=your-long-random
"; And then used them like this in the config/server.js: "
module.exports = ({ env }) => ({
host: '0.0.0.0',
port: env.int('PORT', 1337),
url: env('PUBLIC_URL'),
app: { keys: env.array('APP_KEYS') },
});";
