Issue
The following error received on CloudLinux Manager > Current Usage Tab
(main part of the errors is underlined):
The received data is wrong. Contact support for resolution. Traceback (most recent call last):
File "/usr/share/l.v.e-manager/utils/cloudlinux-cli.py", line 16, in
cloudlinux_cli_admin.main()
File "/usr/share/l.v.e-manager/utils/libcloudlinux.py", line 140, in main
endpoint()
File "/usr/share/l.v.e-manager/utils/libcloudlinux.py", line 173, in cl_top
from lvestats.lib.info.cloudlinux_top import CloudLinuxTop #pylint: disable=E0401
File "/opt/alt/python37/lib/python3.7/site-packages/lvestats/lib/info/cloudlinux_top.py", line 21, in
from lvestats.lib import dbengine
File "/opt/alt/python37/lib/python3.7/site-packages/lvestats/lib/dbengine.py", line 20, in
from lvestats.utils.dbmigrator import alembic_migrate
File "/opt/alt/python37/lib/python3.7/site-packages/lvestats/utils/dbmigrator/__init__.py", line 9, in
from .dbmigrate_lib import alembic_migrate
File "/opt/alt/python37/lib/python3.7/site-packages/lvestats/utils/dbmigrator/dbmigrate_lib.py", line 13, in
from alembic.migration import MigrationContext
ModuleNotFoundError: No module named 'alembic.migration'
or this one:
Oct 11 20:30:16 server python3[3726071]: File "/opt/alt/python37/lib/python3.7/site-packages/alembic/util/__init__.py", line 6, in <modu>
Oct 11 20:30:16 server python3[3726071]: from .pyfiles import ( # noqa
Oct 11 20:30:16 server python3[3726071]: File "/opt/alt/python37/lib/python3.7/site-packages/alembic/util/pyfiles.py", line 5, in <modul>
Oct 11 20:30:16 server python3[3726071]: from mako.template import Template
Oct 11 20:30:16 server python3[3726071]: ImportError: cannot import name 'Template' from 'mako.template' (/opt/alt/python37/lib/python3.7/>
Environment
- CloudLinux 6/7/8
- CloudLinux Manager
Solution
1. Reinstall a related alt-python package:
# yum reinstall alt-python37-alembic alt-python37-mako
2. After packages reinstalled, please recreate the lveinfo database according to this article:
How to fix lveinfo database error
# service lvestats stop
# tar -zcvf /root/lveinfo_backup_$(date +%Y-%m-%d).tar.gz /var/lve/
# mv /var/lve/lvestats2.db{,.old}
# lve-create-db --recreate
# service lvestats start
2. Refresh the CloudLinux Manager Dashboard information.
Cause
If this helped - the packages were corrupted.
Useful links
How to fix lveinfo database error
Comments
0 comments
Please sign in to leave a comment.