ENOSPC: no space left on device - in cloudflare workers when i try to deploy my next.js app
Hi everyone. I'm trying to deploy my next.js app to cf workers but i'm getting this error when it builds the app
can anyone help me resolve this error? do i have to pay for a service to get storage?
thanks
37 Replies
Hey, could you share the build ID? It's the UUID in the URL
sure give me min
this one? - b4fd1c8c-a5ec-4b15-b0c3-ddb363bde496
Yep thanks, let me send this to the team
Thank you so much
We are on a paid plan since yesterday because we thought we were exceeding the worker limit
It still gives us the same error
Yeah paid plan is for Worker size, this is space during the build - I've passed it onto the team and should hear from them soon
oh okay - thank you
Out of interest, how big is this Next project?
I analyzed the bundle the client size is 3.27 mb it says
When i do deploy locally in my terminal it works - but it does give me this red number
So not a super large project either, huh, thanks!
yeah
if you dont mind, can you tell me why these numbers are in red?
Because it's over 1 MiB
oh okay
Any update?
Team is US they're only just going to be starting to come online about now. Will be a a little bit longer before I have an update
Oh okay got it
The limit here is not currently easily changeable, I'm gonna track this as an escalation to drive this to a solution.
Oh.. does this mean it will take time?
we wanted to deploy our site to production
Yeah unfortunately, for now if you are able to reduce the size of your repo/application at all. If you have any large dependencies unused or like a large image or something, anything you can do to just reduce some disk usage
oh okay. can you tell me how small should the bundle size be?
It's not the resulting bundle, it's just the total disk space so everything in your repo and things installed/built
oh okay. i will try to see what i can do. thank you for the help
Apologies for the issue, I'll make sure we can get this resolved
Thank you if you can update me here again that'll be great
if this was resolved
Will do!
ty 🙂
Wait which account is this on? I don't see any Workers in your account (one linked to the forums)
we are a 3 member team using the dashboard as super admins
xxxx
this is the main account which invited us to join - [email protected]
So the Workers live on that main account?
Yea that account purchased the paid plan also
Ah yep I see, perfect - thank you!
(pls remove the emails - they're considered PII and generally we don't want you to get spammed by bots)
okay yeah removed it
btw just guessing - we are using a mono repo but because we were facing some errors when we used cloudflare, temporarily made it use local modules - but we still have the current repo inside of a mon repo - do you think this could be the size issue?
because we do additional 2 repos and they have their own assets etc
Possibly, I don't remember the specifics for how we handle monorepos
oh okay
i will try to move it outside and try to do a build again
understood. thanks for updating. ATM we are trying moving our repo out of the mone repo and testing it. if it works we will use it as it is (solo) temporarily
we do have reusable components that we are sharing but for now we have to move it inside our solo repo
but really hoping the longer-term change comes soon 🙂
tested it with solo repo, still got the same error