a year ago
I have a very simple DockerFile that's starting my application. I also have set a start script (npm run start:prod). However, when it starts it shows logs with a lot of spaces and some other stuff that doesn't make sense:
The bars in Observability are also colored black instead of red and blue.
Errors in the console aren't showing fully (only the first line) and if I click Show More, it shows the second line and not the first of the error. Other lines are still missing. (not shown in image)
The container also "dies" but the bot still works.
I'm new to Docker so I honestly don't understand why whatever is happening is happening (or the existing DockerFile either really…) <:cryAqua:847179451162951692>. Please help
Project ID: 04769ebe-fd27-4d50-8fb1-05354c76d1c5
Here's my very basic DockerFile
FROM node:20.12.2
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install --omit=dev
COPY . .
RUN npm run build
CMD [ "npm", "run", "start:prod" ]and some package.json scripts
"build": "NODE_ENV=production tsc -p .",
"start:prod": "NODE_ENV=production node dist/index.js",0 Replies
a year ago
check your service settings, if you're on the v2 runtime please switch to the legacy runtime, the v2 runtime seems to have some issues with logs
kind of fixed stuff? I'm still so lost… It's also spamming logs for some reason. container still stopped but the bot still works


a year ago
where you running any replicas?
a year ago
docker errors?
a year ago
well railway does run everything in containers after all
yeah. but what are those errors after the container runs successfully? What is the spam of removing events without actually removing the deployment?
I simply can't remove this one deployment at all. I remove it and it just doesnt go away

a year ago
I have no clue, I would need to ask a team member
a year ago
!t
a year ago
This thread has been escalated to the Railway team.
Status changed to Awaiting Railway Response brody • over 1 year ago
a year ago
I can't provide an ETA on their reply unfortunately since there is no set time frame for support on the hobby plan
aha. someone else is also facing the same problem
https://discord.com/channels/713503345364697088/1249523974967132243
no worries. I am going to try deleting the service all together and creating a new one
a year ago
I would appreciate if you could leave that service alone if possible?
a year ago
I understand that may not be possible given neither of us know when railway would be available to assist
I have asked the project owner to wait a bit. They do need their bot. Will see
a year ago
did you say that the bot was online?
a year ago
i just found a deployment that i cant remove
the project owner managed to delete the service (finally. he had been trying for a while but wasn't able to)
a year ago
yep
removed the service and redid everything. Started with Legacy instead of V2 this time. Everything works great, no errors whatsoever.
a year ago
legacy will be deprecated soon so it would be best to switch to v2



