500 Internal Server Error

Hi there,

I got 500 Internal Server Error from Cyberpanel :8090.
Website and WebAdmin :7080 is working fine.

I tried systemctl start lsws - and its running just fine
systemctl start gunicorn.socket - here Im getting error : “Failed to start gunicorn.socket: Unit gunicorn.socket not found.”

Any idea?

Thank you in advance!

Okay, that’s why my bad.

I believe that’s because of Wordfence plugin. I ran a scan and fix and also got an issue with the file(don’t remember wich now and not able to find it in wordfence log) being exposed to the public so I click on hide (stupid move from me)
So maybe some permission problem?

I also tried to deactivate wordfence but no change…

Hiding the file was not the problem. it was " .user.ini " file from backup…

I transferred from Cloudways which is nginx + apache (you probably know).

When I moved everything was working perfectly.
Even the speed increased greatly (I love litespeed!)

Can be a problem that I gave all privileges to cyberpanel user in phpmyadmin?
Imgur

I’ve upgraded cyberpanel to the latest 2.0.2 on ubuntu 18.04 since then cyberpanel admin cannot be accessed 500 error.
I run this command: systemctl status lscpd

result:
job for lscpd service failed because the control process exited with error code.
Failed to start LSCPD Deamon

I’ve restarted the server many times I just don’t know what to do.
Any help much appreciated.

@hmdadou

Was it Alibabcloud?

I fixed my issue by running an upgrading script for Cyberpanel…

With upgrading script, you can upgrade but also fix various errors…

Hope this can also help to somebody…

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

1 Like

Type your comment> @dakbooost said:

I fixed my issue by running an upgrading script for Cyberpanel…

With upgrading script, you can upgrade but also fix various errors…

Hope this can also help to somebody…

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

Finally fixed my issue thank you!

So i have this issue also i know the upgrade will fix but wondering what is the cause of this?

Exception:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python3.6/site-packages/pip/commands/install.py”, line 311, in run
delete=build_delete) as build_dir:
File “/usr/lib/python3.6/site-packages/pip/utils/build.py”, line 22, in init
name = os.path.realpath(tempfile.mkdtemp(prefix=“pip-build-”))
File “/usr/lib64/python3.6/tempfile.py”, line 360, in mkdtemp
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
File “/usr/lib64/python3.6/tempfile.py”, line 130, in _sanitize_params
dir = gettempdir()
File “/usr/lib64/python3.6/tempfile.py”, line 298, in gettempdir
tempdir = _get_default_tempdir()
File “/usr/lib64/python3.6/tempfile.py”, line 233, in _get_default_tempdir
dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in [’/tmp’, ‘/var/tmp’, ‘/usr/tmp’, ‘/root/cyberpanel_upgrade_tmp’]

Helpful. Thanks

1 Like

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