Issue
- The Imunify agent is not started:
# service imunify-antivirus status
Redirecting to /bin/systemctl status imunify-antivirus.service
● imunify-antivirus.service - ImunifyAV
Loaded: loaded (/usr/lib/systemd/system/imunify-antivirus.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2022-02-05 13:22:22 CEST; 31s ago
- running any Imunify agent command and /var/log/imunify360/error.log contains the following errors:
File "/opt/alt/python38/lib64/python3.8/site-packages/MySQLdb/__init__.py", line 18, in <module>
from . import _mysql
ImportError: cannot import name '_mysql' from partially initialized module 'MySQLdb' (most likely due to a circular import) (/opt/alt/python38/lib64/python3.8/site-packages/MySQLdb/__init__.py)
Environment
Any environment supported by ImunifyAV and Imunify360.
Solution
1. Check if you are getting an error using:
# file /opt/alt/python38/lib64/python3.8/site-packages/_mysql.so
2. The installed module is incompatible with Imunify. If its removal is possible, you can try the following:
# /opt/alt/python38/bin/python3 -m pip uninstall mysql
# /opt/alt/python38/bin/python3 -m pip uninstall mysqlclient
# service imunify-antivirus start
or
# service imunify360 start
Cause
The Imunify agent is not started due to MySQLdb package incompatibility.
Comments
0 comments
Please sign in to leave a comment.