My nodeBB website is not working anymore
-
Also Digital Ocean works just fine, no reason to switch hosts as @CreeperFace suggests as this problem has nothing to do with your hosting provider.
-
@MJ
Check your redis logs or the syslog for such an entry:Nov 11 11:26:05 web02 redis[3992]: WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
Basically it tells you what to do to avoid the problem.
We had the problem twice in two days, applied that setting and the forum is running fine for nearly a week now -
@HolyPhoenix said:
Also Digital Ocean works just fine, no reason to switch hosts as @CreeperFace suggests as this problem has nothing to do with your hosting provider.
I actually suggested him that because it was not expensive (free at the moment) and works like a charm. No real reason to.
-
@CreeperFace said:
m that because it was not expe
I dug into the redis security and installed a firewall with UFW, denying all incoming connections except HTTP/HTTPS/SSH and allowing all outgoing)
I also put a password on redis and bound it to 127.0.0.1
Will this be sufficient security?
Thanks for all the help, btw! Appreciate it. -
I use logrotate to copy the database and then compress it on a daily basis.
It automatically keeps 7 days, so I cover the time from one provider backup to the next one. -
@wellenreiter You know, I never really got the hang of logrotate. Never liked the config style, but perhaps I'll look into it again.
-
This is the file I use:
/var/lib/redis/*.rdb { rotate 1 daily missingok copy maxsize 500k } /var/lib/redis/*.rdb.1 { rotate 7 daily missingok compress minsize 10k }
It first copies the rdb file to rdb.1 and then compresses it.
7 copies of the compressed file are kept -
If you are fine with just a copy you can use a rotate 7 in the first block and delete the 2nd one
-
There is no CopyZip in logrotate, so you have to do it in two steps