Each time I start a new environment, after a few weeks of work I get /home/ubuntu/.rvm/gems/ruby-2.7.1/gems/rack-2.2.3/lib/rack/server.rb:433:in `close': No space left on device @ fptr_finalize_flush - /home/ubuntu/environment/corsego/tmp/pids/server.pid (Errno::ENOSPC)
So I have to regularly create a new working environment.
My stack that I install: t2.micro (1 GiB RAM + 1 vCPU)
, Ubuntu Server 18.04 LTS
How can I just clean up space/unused files?
You can run this script to resize your EBS volume.
I had the same issue. To solve this I delete some files/directories that I no longer needed in Cloud9, then I had the space and I was able to save.
I hope the resizing script commented by @Richard H Boyd solves anyone's problems, but I couldn't configure that script according to my environment parameters.
So I recommend resizing EBS volume manually.
After all of these steps, you can use the command below to control:
df -h
This is my output (Because I resized it as 20 GB):
/dev/xvda1 20G 9.5G 9.9G 50% /
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.