・ For your own memo Rails tutorials on Cloud9 Share your stumbling blocks with beginners
macOS Catalina 10.15.7 MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports) Processor 1.4 GHz quad core Intel Core i5 Memory 8GB version CentOs version: 7 Ruby version: 2.7.2 (x86_64-linux) Rails version: 5.1.7
Where I stumbled while following the Rails tutorial
After completing the environment construction and trying to launch Rails on the local server, the following is displayed. If you look closely, it was mentioned in the tutorial, but when you click on the upper right, it started up safely in another browser. (Embarrassing ... lol)
When I tried to install heroku, the following message was displayed and the installation was not possible.
No space left on device
Therefore, when I checked the capacity with the following command, I confirmed that the capacity was maxed out in/dev/xvda1.
ubuntu:~/environment/hello_app (master) $ df -h
Filesystem Size Used Avail Use% Mounted on
udev 476M 0 476M 0% /dev
tmpfs 98M 9.3M 89M 10% /run
/dev/xvda1 9.7G 9.7G 0 100% /
I updated the volume and snapshot by referring to the following article, but the above capacity overrun was not resolved ..
https://qiita.com/itotoma/items/d266df563367a0a14268
After all, by initializing Cloud9 and rebuilding it, the above problem was solved. (Mystery remains a mystery)
However, it seems that it may not work at worst if the capacity is exceeded, so If you are studying rails tutorial on Cloud9, it is a good idea to increase the capacity as soon as possible.
It's easy, but here's how to do it.
$ sudo growpart /dev/xvda 1
$ lsblk
.
.
xvda 202:0 0 30G 0 disk
└─xvda1 202:1 0 30G 0 part /
$ sudo resize2fs /dev/xvda1
$ df -h
Filesystem Size Used Avail Use% Mounted on
.
.
/dev/xvda1 30G 8.2G 21G 27% /
I'm sorry for the boring article, but thank you for reading to the end! I'm working on the rails tutorial, so I'm not sure about it again. I would like to make an article.
Recommended Posts