ansible-redis icon indicating copy to clipboard operation
ansible-redis copied to clipboard

Ansible: "Redis started at boot" step, fails due to: Systemd fatal error /etc/redis/6379.conf not found

Open 825i opened this issue 4 years ago • 0 comments

I am getting via journalctl -xfeu redis_6379:

May 10 11:22:12 linux redis-server[34057]: 34057:C 10 May 2021 11:22:12.368 # Fatal error, can't open config file '/etc/redis/6379.conf': No such file or directory
May 10 11:22:12 linux systemd[1]: redis_6379.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- An ExecStart= process belonging to unit redis_6379.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.

It looks like the script is trying to start the service via systemd, but systemd is looking for the redis.conf file which was specified in the systemd template, but this has not been created yet due to redis having never been run yet. This is a bit of a catch 22.

So it would seem that a config file must be created before this step in the play can be run.

825i avatar May 10 '21 12:05 825i