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
Percy12mo ago
Project ID: 35c2c647-0f2a-44db-a175-d671a74cb289
Brody
Brody12mo 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ü12mo ago
Yeah, I've been trying to get this app up for days 😓 thanks for the quick response
drüdrüdrü
drüdrüdrü12mo ago
No description
Brody
Brody12mo ago
send the dockerfile?
drüdrüdrü
drüdrüdrü12mo ago
I've rewritten it so many times I'll pull it, one second
drüdrüdrü
drüdrüdrü12mo ago
This is the latest iteration
drüdrüdrü
drüdrüdrü12mo ago
Here is the script to start the app
drüdrüdrü
drüdrüdrü12mo ago
I was going to try with Nixpack.. but this seems like a whole other process.
Brody
Brody12mo ago
does this dockerfile work locally?
drüdrüdrü
drüdrüdrü12mo ago
Yes
Solution
Brody
Brody12mo 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
Brody12mo ago
can you try upgrading to the hobby plan?
drüdrüdrü
drüdrüdrü12mo ago
This is local docker stats. You might be right
No description
Brody
Brody12mo ago
yep looks like it needs much more than 512mb at the start
drüdrüdrü
drüdrüdrü12mo 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
Brody12mo 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ü12mo ago
Fair enough. Thanks for your help
Brody
Brody12mo ago
no problem 🙂
Want results from more Discord servers?
Add your server