Issues with first getting 500 error, and now 503 on cyberpanel admin

Hi,

My first post. Sorry if it is missing something . For information i am running Linode server, latest Ubuntu lts. 8gb ram and 4 cpu system (which is overkill for my small sites, but fun)

A few days ago i upgrades to the “bundle package” of cyberpanel (pro?). After this i got an error when trying to create new vhosts. I now have learned that this has something to do with cyberpanel trying to create Apache hosta, while pro was running litespeed.

I then tried upgrading to latest cyberpanel through apt-get, but then my cyberpanel showed 500 error on login, with no special info in loggs. Regular hosted sites works just fine.

After a few attempts of finding the issue, i decided to use the upgrade function on cyberpanel.no through the sh file. Now my 500 error is gone, just to be replaced by error 503 on cyberpanel admin.

For info, before this started i was running cyberpanel v2.4.

Below i have included all the things i have done and tried, but now i am stuck, and cry for help.

Summary for CyberPanel Support

Subject: CyberPanel Admin Panel - Persistent 500 and 503 Errors After Upgrade, Issues Creating New Websites


Problem Description

After performing an apt-get upgrade on our Ubuntu 22.04 server with CyberPanel 2.4.0 (build 0), the CyberPanel admin panel (accessible on port 8090) stopped working and initially returned a 500 Internal Server Error. The public websites hosted on the server continue to function normally.

Following the official CyberPanel upgrade instructions, including running the recommended upgrade scripts (preUpgrade.sh and others), the admin panel issue shifted from a 500 error to a 503 Service Unavailable error. Accessing ocalhost:8090 yields the 503, indicating that the lscpd daemon is running but failing to properly serve the admin panel.


Troubleshooting Steps Taken

  1. Logs and Status Checks:

No logs found under /usr/local/CyberCP/logs/.

OpenLiteSpeed logs were available at /usr/local/lsws/logs/error.log, which showed PHP warnings but no fatal errors directly linked to CyberPanel daemon.

systemctl status lscpd shows the daemon running, but with repeated warnings about KillMode=none in the systemd service file (potentially unsafe but not blocking).

journalctl -u lscpd -f shows normal start/stop but no obvious fatal error.

  1. Process and Port Verification:

lscpd and lswsgi processes are running and listening on port 8090.

curl -k -I ocalhost:8090 returns 503 Service Unavailable.

No local firewall (ufw) is active; external firewall (Linode) is open for the port.

  1. Configuration Verification:

Verified OpenLiteSpeed virtual host configs for proper PHP and symbolic link permissions.

PHP-FPM (lsphp) processes running normally.

  1. Upgrade Attempts:

Re-ran CyberPanel upgrade script from official sources with no new errors.

Attempted restart of lscpd multiple times; found leftover zombie processes sometimes not properly killed.

Verified no conflicting systemd service issues beyond warnings.

  1. Additional Observations:

Public websites continue to serve normally.

Attempting to create new websites via CyberPanel admin fails (likely related to admin panel being inaccessible).

Previous password changes and config adjustments were checked for potential impact but no direct conflicts found.

— Pre upgrade issue, but after switch to pro

Issues Creating New Websites

When trying to create new websites via CyberPanel admin UI (when accessible), the process fails or does not complete. Due to the admin panel being down, new website management is severely impacted.

Attempts to add virtual hosts manually in OpenLiteSpeed configs did not propagate correctly to CyberPanel management.

Permissions and ownership of home directories for websites verified correct.


Request for Support

We need assistance with:

Diagnosing the root cause of the 503 Service Unavailable error on CyberPanel admin panel post-upgrade.

Verifying systemd service configurations for lscpd to ensure clean start/stop and no zombie processes.

Confirming if any additional manual steps or fixes are needed after upgrade to 2.4.0 build 0.

Guidance on restoring admin panel functionality without impacting existing public sites.

Recommendations for safely creating new websites while admin panel is unstable or inaccessible.


Server Environment Summary

Parameter Value

OS Ubuntu 22.04 LTS
CyberPanel Version 2.4.0 (build 0)
OpenLiteSpeed Version Latest (via CyberPanel)
PHP Version lsphp 8.3
Server RAM 8GB
Swap 4.5GB
Firewall No local firewall; external firewall open for ports 80, 443, 8090
CyberPanel Admin Port 8090


JSON Summary (For Reference or Automated Parsing)

{
“server”: {
“os”: “Ubuntu 22.04 LTS”,
“cyberpanel_version”: “2.4.0 build 0”,
“openlitespeed”: “latest”,
“php_version”: “lsphp 8.3”,
“ram_gb”: 8,
“swap_gb”: 4.5,
“firewall”: {
“local”: “disabled”,
“external”: “Linode firewall, ports 80,443,8090 open”
}
},
“cyberpanel_admin”: {
“port”: 8090,
“status”: “503 Service Unavailable after upgrade”,
“processes”: {
“lscpd”: “running”,
“lswsgi”: “running”
},
“logs”: {
“cybercp_logs_found”: false,
“lsws_error_log”: “/usr/local/lsws/logs/error.log”,
“journalctl_lscpd”: “no critical errors, warnings on KillMode=none”
}
},
“public_sites”: {
“status”: “functioning normally”
},
“issues”: {
“initial_error”: “500 Internal Server Error on CyberPanel admin”,
“post_upgrade_error”: “503 Service Unavailable”,
“new_website_creation”: “Fails or cannot be managed due to admin panel issues”
},
“actions_taken”: [
“Checked all relevant logs”,
“Verified lscpd and lswsgi process status”,
“Restarted lscpd multiple times”,
“Checked port listening and firewall status”,
“Checked PHP-FPM (lsphp) processes”,
“Attempted official upgrade scripts”,
“Checked systemd service warnings”,
“Verified config file permissions”
],
“requests”: [
“Root cause analysis for 503 error”,
“Systemd service configuration review”,
“Fixes or manual steps post-upgrade”,
“Admin panel restoration without site downtime”,
“Guidance on new website creation during outage”
]
}