My publish fails at "Creating Autoscale service"—how do I debug it?
My publish fails at "Creating Autoscale service"—how do I debug it?
- Open Publishing and find the failed deployment.
- Select the three-dot menu next to it to open the logs.
- Copy the log output, open a new Agent chat, paste it, and ask what’s wrong and how to fix it.
No run command configured error even though you set one, open your deployment settings, disconnect the run command, re-add it, then save and republish. See Troubleshooting deployments.My app shows an Internal Server Error after publishing successfully—what's wrong?
My app shows an Internal Server Error after publishing successfully—what's wrong?
- Open Publishing, view the logs, and copy the full error text.
- Open a new Agent chat, paste the logs, and ask what’s causing the error.
- Apply the fix and republish.
My deployment is stuck during build or migration—what should I do?
My deployment is stuck during build or migration—what should I do?
- Open the Shell pane and run
kill 1to restart the background process. (kill 1is safe in Replit—it restarts your project’s main process, it doesn’t delete anything.) - Open Publishing and select Publish to trigger a new deployment.
- If it fails again, open the failed deployment’s logs from the three-dot menu, copy the build log, and paste it into a new Agent chat for diagnosis.
My app is live but slow or returning timeouts—what should I check?
My app is live but slow or returning timeouts—what should I check?
- Check your deployment logs for recurring timeout or out-of-memory messages.
- Check your deployment resources for CPU or memory limits—see Monitoring a deployment.
- Open a new Agent chat, paste recent logs, and ask Agent to find bottlenecks.
My deployment history shows failed builds—how do I find what's wrong?
My deployment history shows failed builds—how do I find what's wrong?
ERROR or FAILED—that’s usually the root cause, and the lines after it are knock-on effects. Copy that section into a new Agent chat for diagnosis. Most build failures come from missing dependencies, an incorrect run command, or a failed database migration. See Monitoring a deployment.My app works in the editor preview but not when deployed—why?
My app works in the editor preview but not when deployed—why?
- Every key from your development Secrets pane is also set in your deployment secrets—they’re separate environments.
- Your
DATABASE_URLpoints to the production database, not development. - There are no hard-coded
localhostor127.0.0.1references; use relative paths or environment-based URLs instead.
My Autoscale deployment keeps restarting—what do SIGTERM or Exit code 1 mean?
My Autoscale deployment keeps restarting—what do SIGTERM or Exit code 1 mean?
SIGTERM in your logs means the process was gracefully stopped—this is normal. Exit code 1 means the process crashed on its own; check the lines just before it for the actual error.If restarts are frequent enough to affect users, look for unhandled promise rejections, out-of-memory errors, or missing environment variables that cause startup to fail.I updated my environment variables but my deployed app isn't picking them up—why?
I updated my environment variables but my deployed app isn't picking them up—why?
How do I trigger a redeploy without changing my code?
How do I trigger a redeploy without changing my code?
kill 1 to restart the background process without redeploying.Can I change my app's deployment region after it's been published?
Can I change my app's deployment region after it's been published?
.replit.app subdomain may change, so connect a custom domain first if you need a stable URL, and re-add any deployment secrets.How do I take my app offline or unpublish it?
How do I take my app offline or unpublish it?