Issue
After installing or reinstalling, the imunify360 service does not start, and /var/log/messages or journalctl has an error like this:
imunify-service: File "/opt/alt/python38/lib/python3.8/site-packages/im360/plugins/store.py", line 3, in <module>
imunify-service: from defence360agent.malwarelib.config import MalwareEvent, QUARANTINED
imunify-service: ImportError: cannot import name 'QUARANTINED' from 'defence360agent.malwarelib.config' (/opt/alt/python38/lib/python3.8/site-packages/defence360agent/malwarelib/config.py)
Environment
- Imunify360
- CloudLinux/AlmaLinux/CentOS
Solution
Before installation or reinstallation of Imunify360, make sure that the following directories do not exist on the server:
/opt/alt/python38/lib/python3.8/site-packages/defence360agent
/opt/alt/python38/lib/python3.8/site-packages/im360
If the directories are there and Imunify360 is not installed (or was removed), the directories must be deleted (in the example they are just moved) and Imunify360 installed again.
1. Uninstall Imunify360:
wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh
bash i360deploy.sh --uninstall
2. Remove directories:
mkdir ~/im360backupdir
mv /opt/alt/python38/lib/python3.8/site-packages/defence360agent ~/im360backupdir/
mv /opt/alt/python38/lib/python3.8/site-packages/im360 ~/im360backupdir/
3. Install Imunify360 again and check the main service after that.
wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh
bash i360deploy.sh
systemctl status imunify360
Comments
0 comments
Please sign in to leave a comment.