Error opening fileopen /ca/daproxy/log/daproxy.log: permission denied

Document ID : KB000127955
Last Modified Date : 26/02/2019
Show Technical Document Details
Issue:
Fault Tolerance environment the service daproxy status command shows the message error

[root@nfapc02 ~]# service daproxy status
Redirecting to /bin/systemctl status daproxy.service
● daproxy.service - DAProxy Service
Loaded: loaded (/etc/systemd/system/daproxy.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2019-02-11 15:18:03 -03; 19h ago
Main PID: 1367 (traefik)
CGroup: /system.slice/daproxy.service
└─1367 /ca/daproxy/bin/traefik --configfile=/ca/daproxy/conf/daproxy.cfg --traefiklogsfile=/ca/daproxy/log/daproxy.log

Feb 11 15:18:03 nfapc02 systemd[1]: Started DAProxy Service.
Feb 11 15:18:03 nfapc02 systemd[1]: Starting DAProxy Service...
Feb 11 15:18:05 nfapc02 traefik[1367]: time="2019-02-11T15:18:05-03:00" level=error msg="Error opening fileopen /ca/daproxy/log/daproxy.log: permission denied"
 
Environment:
PM 3.5
Cause:
Corrupted log file or someone other than root or consul that they will have issues accessing that file.
Resolution:
Remove the log file

1) service daproxy stop

2) mv /ca/daproxy/log/daproxy.log /ca/daproxy/log/daproxy.log_OLD

3) service daproxy start
 
Additional Information:
Note: You can check what is the user running the traefik process running:
ps -ef | grep traefik