For the last couple of weeks, I often get “502 Bad Gateway” error when accessing my Discourse site and I strongly believe that this has to do with the lack of free space in my server:
# df -h Filesystem Size Used Avail Use% Mounted on udev 2.0G 4.0K 2.0G 1% /dev tmpfs 396M 400K 395M 1% /run /dev/vda1 79G 75G 884K 100% / none 4.0K 0 4.0K 0% /sys/fs/cgroup none 5.0M 0 5.0M 0% /run/lock none 2.0G 2.0M 2.0G 1% /run/shm none 100M 0 100M 0% /run/user none 79G 75G 884K 100% /var/lib/docker/aufs/mnt/7a7ed0d13f4233d33befdeb0b7e84dcb066e7a6c6f4faa64db80740dba514ae4 shm 512M 8.0K 512M 1% /var/lib/docker/containers/7a853459f1a1317a6410cc7a93245c0baec69da556de7079cdc2d2b7fb21af68/shm
It seems that sometimes multiple backups are generated daily:
On June 9th, there are 8 backup files!
What could be the reason for that?
Not a long time ago I deleted almost all of the backup files, but here we are again with the same issue over and over again.
Note that I have enabled backing up to S3 as well, if this has somehow to do with the problem.