Download logs fails with error 500 and apache does not start
Issue:
Trying to download logs from the UI fails with error 500
And apache logs showing permission error in /var/log/apache2/error.log (need to run sudo su command to access folder/file)
[Sun
Jan 08 06:25:58.075748 2023] [wsgi:error] [pid 27795:tid 140300522448640]
[client 127.0.0.1:33668] PermissionError: [Errno 13] Permission denied:
'/var/log/cpm/cpm_server.log'
In addition, During server restart apache might not start.
Solution:
connect to cpm over SSH using cpmuser and your key.
run the following command: sudo chown -R www-data:www-data /var/log/cpm
After this log download should work and the apache server will start correctly.