Symptoms
- Using ISPmanager + CloudLinux PHP Selector to update PHP options doesn't change options.
- You see a similar error when trying to add PHP options with --base64 parameter. For example:
# /usr/bin/selectorctl --version=X.X --user=USERNAMEHERE --base64 --add-options=ZGlzcGxheV9lcnJvcnM6T24=
ERROR:Traceback (most recent call last):
File "/opt/alt/python37/lib/python3.7/site-packages/clselect/clselectctlphp.py", line 896, in main
config['quiet'])
File "/opt/alt/python37/lib/python3.7/site-packages/clselect/cluseroptselect.py", line 53, in insert_options
optset=optset, decoder=decoder, expect_separator=True)
File "/opt/alt/python37/lib/python3.7/site-packages/clselect/cluseroptselect.py", line 244, in _process_option_string
option_item, expect_separator))
File "/opt/alt/python37/lib/python3.7/site-packages/clselect/cluseroptselect.py", line 203, in _handle_option_item
if ':' in option_item:
TypeError: a bytes-like object is required, not 'str'
Root Cause
This is a known problem in lvemanager package which appeared after we migraded our codebase from Python 2.7 to Python 3.7.
Solution
Update lvemanager package to version 6.1.4-1 and above. Try these commands:
# yum update lvemanager
# yum update lvemanager lve-utils lve-stats cagefs alt-python27-cllib cloudlinux-linksafe --enablerepo=cloudlinux-rollout-1-bypass
Original release notes can be found in this blog post: https://blog.cloudlinux.com/beta-lve-manager-updated-2
Comments
0 comments
Please sign in to leave a comment.