Docker Error even though bot still running
materwelondhruv
PROOP

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

brody
EMPLOYEE

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


materwelondhruv
PROOP

a year ago

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

1249739862765207600
1249739863109009400


brody
EMPLOYEE

a year ago

where you running any replicas?


materwelondhruv
PROOP

a year ago

nope. Just the main from github, deployed once.


materwelondhruv
PROOP

a year ago

1249740593844719600


materwelondhruv
PROOP

a year ago

it says it's removing it but doesnt remove it.


materwelondhruv
PROOP

a year ago

even more

1249740671670157300


materwelondhruv
PROOP

a year ago

oh. it did remove it finally.


materwelondhruv
PROOP

a year ago

What are the docker errors though


materwelondhruv
PROOP

a year ago

nope. it didnt remove it


materwelondhruv
PROOP

a year ago

went active again


brody
EMPLOYEE

a year ago

docker errors?


materwelondhruv
PROOP

a year ago

1249740884862566400


materwelondhruv
PROOP

a year ago

the first image here. container event died


materwelondhruv
PROOP

a year ago

wait what. it changed from Stopping Container to container event died

1249741092157395000


brody
EMPLOYEE

a year ago

well railway does run everything in containers after all


materwelondhruv
PROOP

a year ago

yeah. but what are those errors after the container runs successfully? What is the spam of removing events without actually removing the deployment?


materwelondhruv
PROOP

a year ago

I simply can't remove this one deployment at all. I remove it and it just doesnt go away

1249744155207270400


materwelondhruv
PROOP

a year ago

it logs that it removed it, but doesnt actually do it


brody
EMPLOYEE

a year ago

I have no clue, I would need to ask a team member


materwelondhruv
PROOP

a year ago


materwelondhruv
PROOP

a year ago

i appreciate the help


brody
EMPLOYEE

a year ago

!t


brody
EMPLOYEE

a year ago

This thread has been escalated to the Railway team.

Status changed to Awaiting Railway Response brody over 1 year ago


brody
EMPLOYEE

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


materwelondhruv
PROOP

a year ago

aha. someone else is also facing the same problem
https://discord.com/channels/713503345364697088/1249523974967132243


materwelondhruv
PROOP

a year ago

no worries. I am going to try deleting the service all together and creating a new one


materwelondhruv
PROOP

a year ago

MAYBE that works.


brody
EMPLOYEE

a year ago

I would appreciate if you could leave that service alone if possible?


materwelondhruv
PROOP

a year ago

oo


brody
EMPLOYEE

a year ago

I understand that may not be possible given neither of us know when railway would be available to assist


materwelondhruv
PROOP

a year ago

I have asked the project owner to wait a bit. They do need their bot. Will see


brody
EMPLOYEE

a year ago

did you say that the bot was online?


materwelondhruv
PROOP

a year ago

Yep.


brody
EMPLOYEE

a year ago

i just found a deployment that i cant remove


materwelondhruv
PROOP

a year ago

so there's a problem with Railway it seems


materwelondhruv
PROOP

a year ago

the project owner managed to delete the service (finally. he had been trying for a while but wasn't able to)


materwelondhruv
PROOP

a year ago

I will try to deploy again


brody
EMPLOYEE

a year ago

yep


materwelondhruv
PROOP

a year ago

removed the service and redid everything. Started with Legacy instead of V2 this time. Everything works great, no errors whatsoever.


brody
EMPLOYEE

a year ago

legacy will be deprecated soon so it would be best to switch to v2


Loading...