500 Internal Server Error — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

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!

Comments

  • 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?
    https://imgur.com/jiKy62h
  • Type your comment> @hennaboy said:
    > Type your comment> @dakbooost said:
    > > Can be a problem that I gave all privileges to cyberpanel user in phpmyadmin?
    > > https://imgur.com/jiKy62h
    >
    > You call that changing things when you do not have to. I don't see any reason why you needed to give all privileges. In fact you should never just give all and should only give what you require.
    >
    I was triyng to fix " mysqldump: Got error: 1045: "Access denied for user 'cyberpanel'@'localhost' (using password: NO)" when trying to connect" "

    So It was for testing purposes...


    Btw I'm running cyberpanel on Ubuntu 20.04 x64. (Should be 100% compatible, right), because I have more experiences with ubuntu than with Centos, but if it is a problem I will switch to Centos...

    Thank you for your time so far!
  • 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)
  • 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']
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!