Build stuck on Taking snapshot of full filesystem...

8weightPRO

6 months ago

I have a service that takes about 50 min to build. I always gets stuck in the logs on

Taking snapshot of full filesystem...

Any idea what could be causing a 30+ min delay there?

Awaiting User Response

8 Replies

chandrikaEMPLOYEE

6 months ago

That is a significantly long build time — is there anything in your service deployment that might be taking the full filesystem snapshot? From googling around, found a tool called Kaniko that supposedly logs "Taking snapshot of full filesystem...". Might be worth digging into checking if you're using that and if you can change any configuration to bring down the full filesystem snapshot delay.


Status changed to Awaiting User Response railway[bot] 6 months ago


chandrikaEMPLOYEE

6 months ago

It looks like this might actually have to do with the new builder environment (beta) enabled on your application right now. That feature is still in beta so build times can be drastically different — we're working on improving it but you would turn that off and those times should hopefully get better

Attachments


8weightPRO

6 months ago

We don't have Kaniko anywhere in our stack


Status changed to Awaiting Railway Response railway[bot] 6 months ago


chandrikaEMPLOYEE

6 months ago

It looks like this might actually have to do with the new builder environment (beta) enabled on your application right now. That feature is still in beta so build times can be drastically different — we're working on improving it but you would turn that off and those times should hopefully get better

Our responses might have just crossed paths but could you please take a look at my above response?


Status changed to Awaiting User Response railway[bot] 6 months ago


8weightPRO

6 months ago

Ah yea I see it. Thanks Chandrika. So we need access to to the private network during build time. Hence why we turned it on

I'll see if there's another way around it, just trying to manage our egress a bit


Status changed to Awaiting Railway Response railway[bot] 6 months ago


chandrikaEMPLOYEE

6 months ago

Anytime!

What do you need the private network for during build? Without the beta builder that's not possible but there are workarounds! For example, if you need it to run migrations you can refer to the public URL during the build stage

[phases.migrate]

dependsOn = ['install']

cmds = ['DATABASE_URL=$DATABASE_PUBLIC_URL npm run migrations'] # replace with your own migrations command

...and then refer to the private URL within your application

DATABASE_URL=${{Postgres.DATABASE_URL}}

DATABASE_PUBLIC_URL=${{Postgres.DATABASE_PUBLIC_URL}}


Status changed to Awaiting User Response railway[bot] 6 months ago


lionardoPRO

5 months ago

I am facing the same issue my build is taking between 20-30 min.
I cannot find any "beta" feature turn off button.
Is there a way to turn this off?


Status changed to Awaiting Railway Response railway[bot] 5 months ago


5 months ago

Can you please share a link to a build that was slow and one that's faster to help us investigate?


Status changed to Awaiting User Response railway[bot] 5 months ago