CyberPanel Community

ClosedServer Error (500) - No Access To 8090 Panel

25 replies
jo
josephgodwinke #2

Hello @stay, Happy to have you

  1. Run command touch /usr/local/CyberCP/debug, this will start generating more debug logs
  2. Run CyberP upgrade
  3. Post the contents of your /home/cyberpanel/error-logs.txt , /usr/local/lsws/logs/access.log and /usr/local/lsws/logs/error.log
  4. Post the contents of the service status:
$ sudo service lscpd status
jo
josephgodwinke #4

Try upgrade the installation by running this command:

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

Giving me this error

jo
josephgodwinke #6

Seems like upgrade bash file cannot find your cyberpanel password. To change cyberpanel password, use this:

mysql -u root -p

Login to mysql root using the root password you will see here - /etc/cyberpanel/mysqlPassword

once logged in, you can use this command to change cyberpanel password

ALTER USER 'cyberpanel'@'localhost' IDENTIFIED BY 'NEW_USER_PASSWORD';

The output will show something like this

Query OK, 0 rows affected (0.00 sec)

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

Ak
Abhishant kumar #7

Screenshot 2022-10-24 225338

After running the password change command i didn’t get any output

jo
josephgodwinke #8

Run the command with semi-colon at the end:

ALTER USER 'cyberpanel'@'localhost' IDENTIFIED BY 'NEW_USER_PASSWORD';
Ak
Abhishant kumar #9

After changing root password and running the update command. Still getting this same error. You can use anydesk for access the server and find the error.

I think after few more messages, then I’m not allowed to reply any more and I’m facing this issue from morning but still not able to find the issue.

I have a request you to find any way to resolve the issue.

jo
josephgodwinke #10

Before that real quick run this command and post contents here: nano /usr/local/lsws/logs/error.log

jo
josephgodwinke #12

Try start the Cyberpanel service

service lscpd restart && service lscpd status
jo
josephgodwinke #14

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

Post the result here

jo
josephgodwinke #16

Use the same password you used above to change MySQL cyberpanel password

Run this command nano /usr/local/CyberCP/CyberCP/settings.py

CTRL+W paste this DATABASES =

Change the password under this line:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'cyberpanel',
        'USER': 'cyberpanel',
        'PASSWORD': 'changethispassword',
        'HOST': 'localhost',
        'PORT':''
    },


Finally run systemctl restart lscpd

jo
josephgodwinke #18

I updated the post. Start over

jo
josephgodwinke #20

Run nano /usr/local/CyberCP/CyberCP/settings.py

Ak
Abhishant kumar #21

Done, I also runned this command systemctl restart lscpd.

Now Cyberpanel is opening. Thanks for your support. I have also question about Inodes

I want know about this directory “/var/lib/lsphp/session/lsphp80” Is this important or not because it is consuming 7122374 Inodes

jo
josephgodwinke #22

Retry the upgrade to confirm everything is ok.

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh) && reboot
Ak
Abhishant kumar #23

Thanks for your valuable time & support. Now its started working. But, sir i have a question about Inodes.

I checked which file consuming more Inodes by this command

{ find / -xdev -printf ‘%h\n’ | sort | uniq -c | sort -k 1 -n; } 2>/dev/null

Then i see that directory “/var/lib/lsphp/session/lsphp80” consuming 7122374 Inodes. I want to know that does this is important or not. Do we can delete this to free the Inodes.

jo
josephgodwinke #24

Kindly check the fix here

Ak
Abhishant kumar #25

I’m already use this method and this did’nt work for me. Because, I’m same who message there. I started that topic “How to increase Inodes limit”

Please answer - This directory “/var/lib/lsphp/session/lsphp80” consuming 7122374 Inodes. I want to know that does this is important or not. Do we can delete this to free the Inodes.

jo
josephgodwinke #27

Sign in to reply