calcom / docker

The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
MIT License
663 stars 345 forks source link

Docker compose up fails with no space on device error #206

Closed kvnam closed 1 year ago

kvnam commented 1 year ago

Hey,

I'm trying to set up the Calcom docker on an EC2 (t2.large - moved up from small due to the OOM error) but still no luck. Every time I try to run docker compose up it fails at

#0 105.0 error Could not write file "/calcom/yarn-error.log": "ENOSPC: no space left on device, open '/calcom/yarn-error.log'"

I followed all the steps given in the repo, and also updated the docker image to use image: calendso/calendso:latest. No luck. Any suggestions on how I can make this work?

When I try to run a docker compose pull I get the same error

WARNING: Some service image(s) must be built from source by running:
    docker compose build calcom
1 error occurred:
    * failed to register layer: Error processing tar file(exit status 1): write /calcom/apps/web/.next/cache/webpack/server-production/0.pack: no space left on device

Would appreciate some help in getting this set up and running. Thanks!

kvnam commented 1 year ago

If this should be moved to discussions instead please let me know, I'll move it there.

krumware commented 1 year ago

What is the size of your EBS volume attached to the instance?

https://forums.docker.com/t/docker-no-space-left-on-device/69205

kvnam commented 1 year ago

@krumware - 8GB. I am also continually running docker system prune -a -f as mentioned in the thread but no luck..

krumware commented 1 year ago

You're only getting maybe 1-2GB of free space outside of the OS with that size. Are you able to use a slightly larger disk?

kvnam commented 1 year ago

Sure, bumping it up to 16GB now. Will post back on build status after I try again, thanks!

krumware commented 1 year ago

Just noting, you may have done this, but unless this is launching a new instance with the larger disk, then you also need to expand the partition to take advantage of the new space

kvnam commented 1 year ago

Sure @krumware I'll do that as well 👍

kvnam commented 1 year ago

@krumware - That resolved it, thank you for helping! Closing the issue now.