Container builds successfully but produces zero deploy logs
rjk461
FREEOP
a month ago
**Project:** restaurant-rocket (production)
**Deployment ID:** 39faf3a0
**Issue:** Container builds successfully but produces zero deploy logs
---
## Problem
After 20+ deployment attempts, Railway deployments consistently show:
- ✅ Build completes successfully
- ❌ **Deploy logs completely empty** (no output)
- ❌ HTTP 502 errors
- ❌ Application not responding
**Critical:** Even a minimal `CMD ["node", "--version"]` produces no deploy logs.
---
## Evidence
### Test 1: Minimal Node Version Test
```dockerfile
FROM node:20
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
ENV NODE_ENV=production
CMD ["node", "--version"]
```
**Result:** Build succeeds, deploy logs empty, no output
### Test 2: Railway CLI Shell Test
```bash
railway shell
node dist/index.js
```
**Result:** ✅ App starts successfully, logs appear correctly, all services work
---
## Configuration
**Build:** Dockerfile (auto-detected)
**Region:** Southeast Asia (Singapore)
**Node:** 20
**Port:** Using `process.env.PORT || 5000`, binding to `0.0.0.0`
**Environment Variables:** All configured (DATABASE_URL, SESSION_SECRET, etc.)
**Start Command:**
```javascript
server.listen(process.env.PORT || 5000, "0.0.0.0", () => {
console.log(`Server running on port ${PORT}`);
});
```
---
## What We've Tried
1. ✅ Dockerfile deployment
2. ✅ Nixpacks auto-detection
3. ✅ Verified all environment variables
4. ✅ Dynamic port configuration
5. ✅ Bound to 0.0.0.0
6. ✅ Extensive startup logging
7. ✅ Minimal `node --version` test
8. ✅ Verified code works in CLI shell
9. ✅ Removed problematic dependencies
10. ✅ Reviewed Railway documentation
**Result:** Deploy logs remain empty for all tests.
---
## Analysis
| Test | CLI Shell | Deployment |
|------|-----------|------------|
| Build | N/A | ✅ Success |
| `node --version` | ✅ Would work | ❌ No logs |
| `node dist/index.js` | ✅ Works | ❌ No logs |
| Environment | ✅ Available | ✅ Available |
| Logging | ✅ Captured | ❌ Not captured |
**Conclusion:** This is not an application code, build, or configuration issue. The Railway deployment runtime is not capturing container stdout/stderr.
---
## Known Issue
Found similar reports on Railway Help Station:
- [Deploys Not Working](https://station.railway.com/questions/deploys-not-working-95b6ae92)
- [App Down No Logs](https://station.railway.com/questions/my-app-is-down-no-logs-for-past-15-minu-5b391a10)
Railway has acknowledged this as a known issue affecting multiple users.
---
## Request
Please investigate:
1. Why deploy logs are empty even for `node --version`
2. Is the container actually starting in production runtime?
3. Is the log aggregator connected to our project/region?
4. Are there resource limits killing containers before logs flush?
**Urgency:** High - Production application offline for multiple days.
**Full diagnostic:** `docs/RAILWAY-DEPLOYMENT-DIAGNOSTIC.md` in GitHub repo: https://github.com/rjk461/Restaurant-Rocket
---
## Contact
**Domain:** restaurantrocket.app (configured)
**Expected Resolution:** 24-48 hours given production impact
Thank you for your assistance.
4 Replies
Railway
BOT
a month ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
rjk461
FREEOP
a month ago
This did not help
brody
EMPLOYEE
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 1 month ago
abdulrehmanjr
PRO
a month ago
Have you tried building it on local machine? using docker
abdulrehmanjr
Have you tried building it on local machine? using docker
rjk461
FREEOP
a month ago
yes - it had worked there