Nicolás Bonder
Crashed after migration to new DB
I have a project with a Postgres DB and 2 services: one for frontend and one for backend. I migrated to the new DB as Railway requested, and now the backend repository is crashing.
The project is: https://railway.app/project/c28866fd-5fa3-41e6-8ebd-1ab29b18f9c9
94 replies
Front end service chased but without errors
I have a project with 3 services: front, back and DB. In the local version it is working but in railway it is crashing the front. I checked but in the deployment there is any mistake. In the console I can see a 503 error. I dont know why it is crashing and how to fix it. Service ID: 468a34f8-fecc-44bb-8b40-ab60cbc89cc6
9 replies
Error: Docker build failed while deploying
I am trying to deploy an app that has a frontend repository, a backend repository and a data base. The backend is working but I cant deploy the frontend. When I try to do it, I see this error message: ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 126
Error: Docker build failed
I dont have too much experience and I dont know how to fix it.
My package.json in the front is:
{
"name": "client",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^11.2.6",
"@testing-library/user-event": "^13.1.1",
"axios": "^1.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-redux": "^7.2.3",
"react-router-dom": "^5.3.4",
"react-scripts": "^5.0.1",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"sweetalert2": "^11.7.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
99 replies
Error 503
Hi! I am trying to deploy and app created with React and Sequelize with PostgreSQL. I could connect the local front-end with the back-end in Railway, but when I try to connect fron-end in Railway with back-end in Railway, we receive and error. The message is: "Failed to load resource: the server responded with a status of 503 ()" I dont know why and how to fix it. I hope someone can help me. Thanks.
79 replies