Container keep stopping after deploying
benzeal
PROOP

10 months ago

here is log
please help

Starting Container

[2025-04-21 15:16:56 +0000] [2] [INFO] Handling signal: term

[2025-04-21 15:16:56 +0000] [59] [INFO] Worker exiting (pid: 59)

[2025-04-21 15:16:57 +0000] [61] [INFO] Worker exiting (pid: 61)

[2025-04-21 15:16:58 +0000] [2] [INFO] Shutting down: Master

Cloudinary configured successfully.

[2025-04-21 15:16:51 +0000] [2] [INFO] Starting gunicorn 21.2.0

[2025-04-21 15:16:51 +0000] [2] [INFO] Listening at: http://0.0.0.0:3000 (2)

[2025-04-21 15:16:51 +0000] [2] [INFO] Using worker: gthread

[2025-04-21 15:16:51 +0000] [59] [INFO] Booting worker with pid: 59

[2025-04-21 15:16:51 +0000] [61] [INFO] Booting worker with pid: 61

--- Healthcheck endpoint '/health' accessed ---

--- blur_service.py script started ---

Initializing PaddleOCR globally (forcing CPU)…

PaddleOCR initialized globally (CPU).

Stopping Container

26 Replies

benzeal
PROOP

10 months ago

N/A


medim
MODERATOR

10 months ago

Your application seems to be sending a TERM signal on initialization?


medim
MODERATOR

10 months ago

[2025-04-21 15:16:56 +0000] [2] [INFO] Handling signal: term


benzeal
PROOP

10 months ago

i dont know, im a newbie

any help


medim
MODERATOR

10 months ago

Does it run locally?


medim
MODERATOR

10 months ago

I don't know much about python


benzeal
PROOP

10 months ago

yes


benzeal
PROOP

10 months ago

or is there docker setting i need to set up when using railway


adam
MODERATOR

10 months ago

What is it intended to do?


adam
MODERATOR

10 months ago

Railway should automatically create the required docker environment for your app, there’s a bit of configuration you may need but we’ll start from scratch here


benzeal
PROOP

10 months ago

it an ocr that i call to detect and blur some sensitive words


adam
MODERATOR

10 months ago

A gunicorn api?


benzeal
PROOP

10 months ago

yes


adam
MODERATOR

10 months ago

I’m seeing gunicorn in the logs


adam
MODERATOR

10 months ago

great. Flask? or another framework


benzeal
PROOP

10 months ago

yes
it python flask


adam
MODERATOR

10 months ago

Great. copy the railway.json from the template linked below, then see if your app runs

https://github.com/railwayapp-templates/flask


adam
MODERATOR

10 months ago

if you have any other config files, please delete them


benzeal
PROOP

10 months ago

i should delete the railway.toml file too?


adam
MODERATOR

10 months ago

if you have one, yes


adam
MODERATOR

10 months ago

we’re starting from scratch here with a known working setup


benzeal
PROOP

10 months ago

when i delected the railway toml file and created railway.json

Failed to parse JSON file railway.json: unexpected end of JSON input


benzeal
PROOP

10 months ago

when both was there

--- Healthcheck endpoint '/health' accessed ---

[2025-04-21 18:26:02 +0000] [2] [INFO] Handling signal: term

[2025-04-21 18:26:03 +0000] [59] [INFO] Worker exiting (pid: 59)

[2025-04-21 18:26:03 +0000] [61] [INFO] Worker exiting (pid: 61)

[2025-04-21 18:26:05 +0000] [2] [INFO] Shutting down: Master

Stopping Container


adam
MODERATOR

10 months ago

please send the entire log file, not just a snippet. You can download the logs by clicking command/ctrl + k on the deployment menu


benzeal
PROOP

10 months ago

here is the downloaded deployed log

1363952528496001107


benzeal
PROOP

10 months ago

@Adam


Loading...