Valkey start fails on linux server

Hello, I am new to the valkey and trying to install it on a linux server. This is stand alone host. I am following the documentation provided on percona website. Installation worked but starting valkey fails

installation steps : Install from Percona repository - Percona Packages for Valkey

Error: Feb 28 14:43:10 ech-10-157-146-73 valkey-server[54622]: 54622:C 28 Feb 2025 14:43:10.042 # Fatal error, can’t open config file '/etc/val>
Feb 28 14:43:10 ech-10-157-146-73 systemd[1]: valkey.service: Main process exited, code=exited, status=1/FAILURE
Feb 28 14:43:10 ech-10-157-146-73 systemd[1]: valkey.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd


– The unit valkey.service has entered the ‘failed’ state with result ‘exit-code’.
Feb 28 14:43:10 ech-10-157-146-73 systemd[1]: Failed to start Valkey persistent key-value database.
– Subject: Unit valkey.service has failed
– Defined-By: systemd


– Unit valkey.service has failed.

Installation created a file at /etc/valkey/valkey.conf and it has full permissions and untouched. No other steps mentioned in the doc
-rwxrwxrwx 1 root root 112720 Oct 3 06:22 valkey.conf

Hi @josephtryit,

I tested this, and we need the following additional command to make the default configs and paths to work:

chown -R valkey:valkey /var/log/valkey/ /var/lib/valkey/ /etc/valkey/

Let me know how it goes.

Thankyou. It works. Already did this for /var/log and /etc/valkey but missed on the lib.

1 Like