nestjs app will not start via Dockerfile + cmd

Project ID: 35c2c647-0f2a-44db-a175-d671a74cb289 Application tries to start and just loops:
+ echo Deploying Prisma migrations...

Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

Starting the application...

+ echo Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start
+ echo Deploying Prisma migrations...

Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

Starting the application...

+ echo Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start
Solution:
its possible that theres a memory spike that tries to use more than 512mb, you just dont see it on the graph since it doesnt report that fast
Jump to solution
19 Replies
Percy
Percy13mo ago
Project ID: 35c2c647-0f2a-44db-a175-d671a74cb289
Brody
Brody13mo ago
at first glance it looks like your app is silently crashing one reason may be an out of memory crash, what do your memory metrics look like
drüdrüdrü
drüdrüdrüOP13mo ago
Yeah, I've been trying to get this app up for days 😓 thanks for the quick response
drüdrüdrü
drüdrüdrüOP13mo ago
No description
Brody
Brody13mo ago
send the dockerfile?
drüdrüdrü
drüdrüdrüOP13mo ago
I've rewritten it so many times I'll pull it, one second
drüdrüdrü
drüdrüdrüOP13mo ago
This is the latest iteration
drüdrüdrü
drüdrüdrüOP13mo ago
Here is the script to start the app
drüdrüdrü
drüdrüdrüOP13mo ago
I was going to try with Nixpack.. but this seems like a whole other process.
Brody
Brody13mo ago
does this dockerfile work locally?
drüdrüdrü
drüdrüdrüOP13mo ago
Yes
Solution
Brody
Brody13mo ago
its possible that theres a memory spike that tries to use more than 512mb, you just dont see it on the graph since it doesnt report that fast
Brody
Brody13mo ago
can you try upgrading to the hobby plan?
drüdrüdrü
drüdrüdrüOP13mo ago
This is local docker stats. You might be right
No description
Brody
Brody13mo ago
yep looks like it needs much more than 512mb at the start
drüdrüdrü
drüdrüdrüOP13mo ago
Thanks. I'm spinning it up with hobby now to take a look That's frustrating that there's no feedback or anything 🙄 It's up
Brody
Brody13mo ago
well i guess you cant really expect stable results when an app is trying to use more memory than allowed
drüdrüdrü
drüdrüdrüOP13mo ago
Fair enough. Thanks for your help
Brody
Brody13mo ago
no problem 🙂
Want results from more Discord servers?
Add your server