Redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?)

I have been using Nextcloud for quite some time but recently started to really take control and make sure everything is working as it should as I am planning to share it with family members. While reviewing my configurations, I noticed that my redis server is showing this error/warning upon start up but doesn’t keep it from working correctly (at least I think so).

redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory

Is this something to worry about?

Here’s the full output of systemctl status redis:

    redis-server.service - Advanced key-value store
       Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
       Active: active (running) since Sun 2020-11-22 12:50:03 UTC; 11h ago
         Docs: http://redis.io/documentation,
               man:redis-server(1)
     Main PID: 1085 (redis-server)
        Tasks: 4 (limit: 2317)
       CGroup: /system.slice/redis-server.service
               └─1085 /usr/bin/redis-server 127.0.0.1:0

    Nov 22 12:50:02 ubuntucloud systemd[1]: Starting Advanced key-value store...
    Nov 22 12:50:03 ubuntucloud systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or direct
    Nov 22 12:50:03 ubuntucloud systemd[1]: Started Advanced key-value store.

This is a system/OS specific question and has generally nothing to do with Nextcloud. If your system claims that the file is missing, make sure that it is created in advance, manually or automatically. There is always a reason why a message is shown :wink:

Just check if the file is available and contains (in your case, if you have not restartet redis-server) pid 1085. It’s not essential but ‘nice to have’.