redis-server[2313]: Can't open the log file: Read-only file system
It looks like @tomp is right - you’re attempting to write to a readonly fs.
I had a no such problem installing nextcloud with redis-server last year inside a container.
I like to use redis a fair bit and for me it’s the most reliable when built from source - I wrote a script that does as such - I generally run this first-thing after spining up a new debian/ubuntu instance; hope it helps.
I can write and create files like i tried testing with creating the /var/log/redis/redis-server.log file, the folder had already been created by the installer but not the log file itself, chmod and chown works too on the manually created file but redis-server will not start.
Upon further investigation i realized that i missed something in the log.
Systemctl start redis-server log error is either reporting,
redis-server[297187]: Can’t open the log file: Read-only file system
OR
redis-server[297183]: Can’t open the log file: Permission denied
when testing different chown options in the virtual machine.
So i still do not understand why installing redis-server in a container via apt works fine but not in a virtual machine.
Isn’t the virtual machine supposed to be a slower bare metal qemu, what am i missing?
Ordered New Bare Metal Server and at voila no problem to install redis-server in a vm.
Turns out there is something wrong, with my 20.04 LTS Server that used to be a 18.04 LTS that i had upgraded a while back and during that upgrade i got disconnected and also the updater setup screen console had died.
Back then i thought luckily i can LARA in, a service provided by hetzner and work as if i was siting in front of the Servers Monitor which seemed to work fine.
I had followed a guide and was able to continue with the update but this better not happen on my next LTS upgrade.
My other containers have been working fine since then also.
I lack knowledge, time and will to figure out what exactly went wrong.
Just wanted to close this thread and leave this note here in case anyone else runs into this.
Thanks for the tips and suggestions.