[SOLVED] My forum stop working... could not do Rebuild App

Hi, my forum was running fine until just few days later when I tried to upgrade via /admin/upgrade/
Then it asks me to go to console and do the update.
I followed exactly that, go to /var/disource —> then do git pull ----> ./launcher rebuild app

But the console chucked out some error as below

root@discourse:/var/discourse# ./launcher rebuild app
x86_64 arch detected.

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

2.0.20220128-1817: Pulling from discourse/base
5eb5b503b376: Pull complete 
13f791631149: Extracting [==================================================>]  585.9MB/585.9MB
9cf83aefd7da: Download complete 
failed to register layer: Error processing tar file(exit status 1): write /usr/lib/locale/hu_HU.utf8/LC_COLLATE: no space left on device
2.0.20220128-1817: Pulling from discourse/base
5eb5b503b376: Pull complete 
13f791631149: Extracting [==================================================>]  585.9MB/585.9MB
9cf83aefd7da: Download complete 
failed to register layer: Error processing tar file(exit status 1): write /usr/lib/locale/hu_HU.utf8/LC_COLLATE: no space left on device
Unable to find image 'discourse/base:2.0.20220128-1817' locally
2.0.20220128-1817: Pulling from discourse/base
5eb5b503b376: Pulling fs layer
13f791631149: Pulling fs layer
9cf83aefd7da: Pulling fs layer
5eb5b503b376: Verifying Checksum
5eb5b503b376: Download complete
9cf83aefd7da: Verifying Checksum
9cf83aefd7da: Download complete
13f791631149: Verifying Checksum
13f791631149: Download complete
5eb5b503b376: Pull complete
docker: failed to register layer: Error processing tar file(exit status 1): write /usr/lib/locale/hu_HU.utf8/LC_COLLATE: no space left on device.
See 'docker run --help'.
Your Docker installation is not working correctly
==================== MEMORY INFORMATION ====================
RAM (MB): 1028

              total        used        free      shared  buff/cache   available
Mem:            981         513         150          63         317         259
Swap:          2047         746        1301

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        25G   23G  1.5G  94% /

I’ve tried to Start the container as well… but it has these error

root@grumpy:/var/discourse# ./launcher start app
x86_64 arch detected.

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

2.0.20220128-1817: Pulling from discourse/base
5eb5b503b376: Pull complete 
13f791631149: Extracting [==================================================>]  585.9MB/585.9MB
9cf83aefd7da: Download complete 
failed to register layer: Error processing tar file(exit status 1): write /usr/lib/locale/ig_NG/LC_COLLATE: no space left on device
2.0.20220128-1817: Pulling from discourse/base
5eb5b503b376: Pull complete 
13f791631149: Extracting [==================================================>]  585.9MB/585.9MB
9cf83aefd7da: Download complete 
failed to register layer: Error processing tar file(exit status 1): write /usr/lib/locale/ig_NG/LC_COLLATE: no space left on device
Unable to find image 'discourse/base:2.0.20220128-1817' locally
2.0.20220128-1817: Pulling from discourse/base
5eb5b503b376: Pulling fs layer
13f791631149: Pulling fs layer
9cf83aefd7da: Pulling fs layer
5eb5b503b376: Verifying Checksum
5eb5b503b376: Download complete
9cf83aefd7da: Verifying Checksum
9cf83aefd7da: Download complete
13f791631149: Verifying Checksum
13f791631149: Download complete
5eb5b503b376: Pull complete
docker: failed to register layer: Error processing tar file(exit status 1): write /usr/lib/locale/ig_NG/LC_ADDRESS: no space left on device.
See 'docker run --help'.
Your Docker installation is not working correctly

The error messages are reporting that there is no space left on the device for writing the files /usr/lib/locale/ig_NG/LC_COLLATE and /usr/lib/locale/ig_NG/LC_ADDRESS

I suspect the filenames are misleading and it has actually failed to download the image due to running out of space. Depending on how you have your server set up, you may be able to clear space somewhere or may need to look into increasing storage capacity.

If you’ve run out of space purely because of uploads on your Discourse forum, it may be worth looking into migrating uploads to S3 (whether that’s Amazon S3 or an alternative) storage. You will probably still need to upgrade the storage temporarily if you do want to go that route though.

2 Likes

As suggested, This is the problem that I world work on first.

 ./launcher cleanup

And deleting backups are good places to start.

3 Likes

Problem solved. I’ve cleaned up more space and now i can rebuild discourse

3 Likes