500 internal server error after upgrade v2.3.5

v2.3.5
60e447f · 1 hour ago History ### 3.916 Commits on Jul 19, 2024

FileNotFoundError at /backup/
[Errno 2] No such file or directory: ‘/etc/lsb-release’
Request Method: GET
Request URL: https://domain.com:8443/backup/
Django Version: 3.1.3
Exception Type: FileNotFoundError
Exception Value:
[Errno 2] No such file or directory: ‘/etc/lsb-release’
Exception Location: /usr/local/CyberCP/plogical/processUtilities.py, line 185, in decideDistro
Python Executable: /usr/local/CyberCP/bin/python
Python Version: 3.6.8
Python Path:
[‘’,
‘/usr/local/CyberCP/bin’,
‘/usr/local/CyberCP’,
‘/usr/local/CyberCP/lib64/python36.zip’,
‘/usr/local/CyberCP/lib64/python3.6’,
‘/usr/local/CyberCP/lib64/python3.6/lib-dynload’,
‘/usr/lib64/python3.6’,
‘/usr/lib/python3.6’,
‘/usr/local/CyberCP/lib/python3.6/site-packages’,
‘/usr/local/CyberCP’,
‘/usr/local/CyberCP’,
‘/usr/local/CyberCP’]

I’m having a similar issue today. Almalinux 9 based on the same error: FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/lsb-release’

temporarily set a symlink:

ln -s /etc/os-release /etc/lsb-release

remove the symlink after upgrade

rm -f /etc/lsb-release

Problem solved. Thanks A lot Buddy :slight_smile: but after upgraded i removed symlink and panel still show me same error again. Is that bug?

Leave the symlink until they create a fix then.
We’re in the same boat lol

Actually you can’t because that will make Cyberpanel detect you as Ubuntu

I can’t press any buttons until the bug is fixed. My weekend was ruined for me

I opened a ticket so you can follow it for a fix:
[BUG] Crash on update - No such file or directory: ‘/etc/lsb-release’ · Issue #1288 · usmannasir/cyberpanel · GitHub

Try this:

wget -O /usr/local/CyberCP/plogical/processUtilities.py https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.3.5/plogical/processUtilities.py
sed -i -E "s/^(\s?+|\s+?)if open\('\/etc\/redhat-release', 'r'\)/\1distroPath = '\/etc\/redhat-release'\n\0/g" /usr/local/CyberCP/plogical/processUtilities.py
service lscpd restart

Found out the issue, but they should fix it in the near future.

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.