Redis service not starting on Satellite Capsule server
Environment
- Red Hat Satellite 6
Issue
- Satellite Redis service fails to start on the capsule server
Nov 1 14:21:50 soshelp01 systemd[1]: Starting Redis persistent key-value database...
Nov 1 14:21:50 soshelp01 redis-server[2202001]: *** FATAL CONFIG FILE ERROR ***
Nov 1 14:21:50 soshelp01 redis-server[2202001]: Reading the configuration file, at line 96
Nov 1 14:21:50 soshelp01 redis-server[2202001]: >>> 'logfile /var/log/redis/redis.log'
Nov 1 14:21:50 soshelp01 redis-server[2202001]: Can't open the log file: Permission denied
Nov 1 14:21:50 soshelp01 systemd[1]: redis.service: Main process exited, code=exited, status=1/FAILURE
Nov 1 14:21:50 soshelp01 systemd[1]: redis.service: Failed with result 'exit-code'.
Nov 1 14:21:50 soshelp01 systemd[1]: Failed to start Redis persistent key-value database.
Resolution
-
Verify that permissions are set to 755 on
/var/logdirectory (output truncated)$ ls -l /var/log drwxr-x--- root root log <============ drwxr-x--- redis redis redis -rw-r----- redis redis redis.log -
Set the permissions to 755 on
/var/logdirectory if output verification on step 1 shows incorrect permissions$ chmod 755 /var/log -
Validate permissions are now correct
$ ls -ld /var/log drwxr-xr-x. 1 root root 1230 Sep 16 08:54 /var/log -
Restart and check the service to ensure its active status
$ satellite-maintain service restart $ satellite-maintain service status
Root Cause
The /var/log directory permissions are set incorrectly.
Diagnostic Steps
-
Check the
/var/log/redis/redis.logfor incorrectly set permissions:ls -l /var/log/redis/redis.log -rw-r-----. 1 redis redis 456000 Dec 3 16:53 redis.log -
Check service status
$ satellite-maintain service status
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments