Issue
Imunify360 does not start and some packages cannot be reinstalled correctly due to missing python modules. In the logs at the same time, the following entries can be found (they may vary slightly depending on the situation):
Aug 10 10:17:56 srv wafdsock_ready_check: ModuleNotFoundError: No module named 'wafd_i360'
Aug 10 10:22:39 srv pam_imunify_daemon: ModuleNotFoundError: No module named 'psutil'
Aug 10 10:24:39 srv pamsock_ready_check: ModuleNotFoundError: No module named 'pam_i360'
[2022-08-09 20:07:48] Traceback (most recent call last):
[2022-08-09 20:07:48] File "/usr/bin/imunify360-agent", line 33, in <module>
[2022-08-09 20:07:48] sys.exit(load_entry_point('imunify360-firewall==6.4.5', 'console_scripts', 'imunify360-agent')())
[2022-08-09 20:07:48] File "/usr/bin/imunify360-agent", line 22, in importlib_load_entry_point
[2022-08-09 20:07:48] for entry_point in distribution(dist_name).entry_points
[2022-08-09 20:07:48] File "/opt/cppython/lib/python3.8/importlib/metadata.py", line 504, in distribution
[2022-08-09 20:07:48] return Distribution.from_name(distribution_name)
[2022-08-09 20:07:48] File "/opt/cppython/lib/python3.8/importlib/metadata.py", line 177, in from_name
[2022-08-09 20:07:48] raise PackageNotFoundError(name)
[2022-08-09 20:07:48] importlib.metadata.PackageNotFoundError: imunify360-firewall
Aug 10 10:20:39 srv.mbihosting.in pamsock_ready_check[23979]: Traceback (most recent call last):
Aug 10 10:20:39 srv.mbihosting.in pamsock_ready_check[23979]: File "/usr/sbin/pamsock_ready_check", line 9, in <module>
Aug 10 10:20:39 srv.mbihosting.in pamsock_ready_check[23979]: from pam_i360.internals import (CONFIG,
Aug 10 10:20:39 srv.mbihosting.in pamsock_ready_check[23979]: ModuleNotFoundError: No module named 'pam_i360'
Aug 10 10:20:39 srv.mbihosting.in systemd[1]: imunify360-pam.service: control process exited, code=exited status=1
Environment
- Imunify360
- alt-python38
- CentOS/AlmaLinux/CloudLinux
Solution
Reinstalling the alt-python38 group of packages can help if for some reason some of these packages were damaged or installed incorrectly, causing missing modules.
yum reinstall alt-python38*
In some cases, after reinstalling alt-python38* it is necessary to reinstall other packages related to Imunify360 if their previous installation did not work correctly due to missing python modules.
Comments
0 comments
Please sign in to leave a comment.