container event container died
vagnerkuntz
HOBBYOP

a year ago

Every time I upload the application the container closes

----

[Nest] 15 - 11/07/2024, 4:04:15 AM LOG [NestFactory] Starting Nest application...

Nov 07 01:04:16

0a549644

simpletracktest

--

f880ae04

[Nest] 15 - 11/07/2024, 4:04:15 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +13ms

Nov 07 01:04:16

0a549644

simpletracktest

--

f880ae04

[Nest] 15 - 11/07/2024, 4:04:15 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms

Nov 07 01:04:16

0a549644

simpletracktest

--

f880ae04

[Nest] 15 - 11/07/2024, 4:04:15 AM LOG [InstanceLoader] AppModule dependencies initialized +0ms

Nov 07 01:04:16

0a549644

simpletracktest

--

f880ae04

[Nest] 15 - 11/07/2024, 4:04:15 AM LOG [NestApplication] Nest application successfully started +11ms

Nov 07 01:04:16

0a549644

simpletracktest

--

f880ae04

[Nest] 15 - 11/07/2024, 4:04:15 AM LOG [TcpService] Servidor TCP escutando em :::5432

Nov 07 01:04:18

aae0bced

simpletracktest

--

10c894fe

container event container died

Nov 07 01:04:21

aae0bced

simpletracktest

--

10c894fe

npm ERR! path /app

Nov 07 01:04:21

aae0bced

simpletracktest

--

10c894fe

npm ERR! command failed

Nov 07 01:04:21

aae0bced

simpletracktest

--

10c894fe

npm ERR! signal SIGTERM

Nov 07 01:04:21

aae0bced

simpletracktest

--

10c894fe

npm ERR! command sh -c node dist/main

Nov 07 01:04:21

aae0bced

simpletracktest

--

10c894fe

Nov 07 01:04:21

aae0bced

simpletracktest

--

10c894fe

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-11-07T04_02_30_420Z-debug-0.log

12 Replies

brody
EMPLOYEE

a year 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 over 1 year ago


brody
EMPLOYEE

a year ago

That would be the previous container exiting so that the new one can come online.

While that error message does not harm functionality, to avoid it you can update your start command to use node directly, e.g., node dist/index.js

Additionally, you have a TCP Proxy on the service pointed to the port commonly used for Postgres, instead of a domain, may I ask why?


vagnerkuntz
HOBBYOP

a year ago

it's just a random port, i even changed it to 5027 but still i can't make calls to the server


vagnerkuntz
HOBBYOP

a year ago

the idea is to have a simple api that receives tcp connections


brody
EMPLOYEE

a year ago

Please remove the TCP Proxy and add a domain to the service that points to the correct port, not a random port.

https://docs.railway.app/guides/public-networking#target-ports


vagnerkuntz
HOBBYOP

a year ago

but why remove the tcp proxy?

I will send a request via tcp, my equipment must connect via this address and port that I defined


brody
EMPLOYEE

a year ago

Are you sure you need TCP and not HTTPS?


vagnerkuntz
HOBBYOP

a year ago

yes I'm sure!


brody
EMPLOYEE

a year ago

Then you need to point the TCP proxy to the correct port.


vagnerkuntz
HOBBYOP

a year ago

I did this, but I still can't connect. Can you see what's happening? What's the error? Because I only get a bad request, as if it didn't accept a TCP connection?


brody
EMPLOYEE

a year ago

How do you know you've pointed it to the correct port?

Are you listening on 0.0.0.0 ?


vagnerkuntz
HOBBYOP

a year ago

Yes, I am listening on 0.0.0.0, and I set the port to 5027, then I went to the Railway panel and set the TCP proxy, and it generated this for me:

junction.proxy.rlwy.net:57845 -> :5027

In the client that should connect, I set the IP junction.proxy.rlwy.net and port: 57845,

But when I try to connect, I can't.


brody
EMPLOYEE

a year ago

Sorry, I don't really know what to tell you, you have something miss configured somewhere.


Loading...