Server error after power outage

I’ve just had the same issue. Noticed that redis.conf had been touched/updated on the same day & was owned by root.
I used

chown -R redis:redis /var/log/redis
chmod -R u+rwX,g+rwX,u+rx /var/log/redis

chmod +r /etc/redis/redis.conf

via ubuntu - Failed to start Advanced key-value store.redis-server.service: Control process exited, code=exited status=1 - Stack Overflow
(There are some other options, some more “nuclear” here: ubuntu - Failed to start Advanced key-value store.redis-server.service: Control process exited, code=exited status=1 - Stack Overflow)

& redis was able to start.

I doubt that it’ll help you, but I’m putting this here for the next person to hit this issue.

1 Like

EVERY time I shut off power to my NextcloudPi on my RockPro64 without first doing a shutdown command of some sort, it has /var/log/redis owned by root. If I do a normal shutdown via the web interface (and give it time to process the shutdown) before turning off the power, this does not happen. I can reliably expect this to happen if I shut off the power without doing the shutdown, and since I treat this as an appliance like the router, this happens very often.

The solution, like @Linecutterx mentions, is to ssh into the device and run:
sudo chown -R redis:redis /var/log/redis and reboot the device with sudo /sbin/shutdown -r now.

Now, if I can only have this happen at boot time (the chown command) then I won’t have to go through this each time. This issue did not happen at first (about three years ago), so I don’t know its genesis. I first noticed it a few months after starting using the image. I am running this from a 128GB SD card with an external USB 2TB drive for the data and database.

Thank you, Linecutterx, that was indeed the solution. I finally found it in an old post here several weeks ago, apparently not long before you posted, but was called away and forgot to post the solution. I appreciate it!

1 Like

i dont know if any help, but twice now after 2 unexpected power outages the :4443 ip address which started at 192.168.1.186 , has now incremented up thru 187 and now 190, on its own for some reason. after cant connect to server messages i did a networks scan and found the pi server on different ip and changed my apps and shortcuts. all back up and running