Container keep stopping after deploying
benzeal
PROOP

a year 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

a year ago

N/A


a year ago

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


a year ago

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


benzeal
PROOP

a year ago

i dont know, im a newbie

any help


a year ago

Does it run locally?


a year ago

I don't know much about python


benzeal
PROOP

a year ago

yes


benzeal
PROOP

a year ago

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


a year ago

What is it intended to do?


a year 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

a year ago

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


a year ago

A gunicorn api?


benzeal
PROOP

a year ago

yes


a year ago

I’m seeing gunicorn in the logs


a year ago

great. Flask? or another framework


benzeal
PROOP

a year ago

yes
it python flask


a year ago

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

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


a year ago

if you have any other config files, please delete them


benzeal
PROOP

a year ago

i should delete the railway.toml file too?


a year ago

if you have one, yes


a year ago

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


benzeal
PROOP

a year 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

a year 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


a year 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

a year ago

here is the downloaded deployed log

1363952528496001107


benzeal
PROOP

a year ago

@Adam


Loading...