Skip to main content
calvinc97
Staff & Editor
Staff & Editor
November 11, 2024

Troubleshooting Tip: How to solve PermissionError: [Errno 13] Permission denied error from ssl_cyops_api_access.log

  • November 11, 2024
  • 0 replies
  • 739 views
Description

This article describes the issue when the following error is thrown in /var/log/cyops/cyops-api logs: 

 

PermissionError: [Errno 13] Permission denied

Scope FortiSOAR.
Solution

These errors are usually observed from the following path below:

  • /var/logs/cyops/cyops-api/ssl_cyops_api_access.log.
  • /var/logs/cyops/cyops-api/ssl_cyops_api_api.log.

 

Identify the path directory that is affected by PermissionError: [Errno 13] Permission denied, and set the permission back to the correct permissions.

 

Error Example: 

 

Nov 11 11:58:08 soar bash(22007]: PermissionError: [Errno 13] Permission denied: "/usr/local/lib/python3.9/site-packages/ConfigArgParse-1.7.dist-info' Nov 11 11:58:08 soar bash [22008]: PermissionError: [Errno 13] Permission denied: "/usr/local/lib/python3.9/site-packages/ConfigArgParse-1.7.dist-info 

 

Nov 11 11:59:11 soar bash(22007]: PermissionError: [Errno 13] Permission denied: "/usr/local/lib/python3.9/site-packages/ConfigArgParse-1.7.dist-info' Nov 11 11:58:08 soar bash [22008]: PermissionError: [Errno 13] Permission denied: "/usr/local/lib/python3.9/site-packages/ConfigArgParse-1.7.dist-info 

 

To resolve the issue:

 

  1. Login to the FortiSOAR VM and switch to the 'root' user: sudo su.
  2. Run the following commands below to modify the permissions.

chmod -R 755 /usr/local/lib/python3.9/site-packages

 

  1. Run the following commands to restart the FortiSOAR services.

csadm services --restart