Unable to access panel

I am unable to access Cyberpanel. The browser just sits there waiting. The only resolution seems to be to reboot the server (which I have to do every time I need to manage the server).

I have looked in the error log, but nothing relating to panel seems to be there. The panel is currently at 1.8.3

Can someone point me to a way of troubleshooting?

Probably your MySQL went down due to high load, since you provided no information we can only make guess.

Probably your MySQL went down due to high load, since you provided no information we can only make guess.
OK. Very happy to provide more information. What can I give you? None of the websites being hosted are affected (most are WP).

what about lscpd?

systemctl status lscpd

or

cat /usr/local/lscp/logs/error.log

what about lscpd?

systemctl status lscpd

or

cat /usr/local/lscp/logs/error.log

Browser:
500
Internal Server Error

An internal server error has occured.

service status:

  Loaded: loaded (/etc/systemd/system/lscpd.service; enabled; vendor preset: disabled)
  Active: active (running) since Wed 2019-06-05 11:32:44 CEST; 3h 40min ago
 Process: 2693 ExecStart=/usr/local/lscp/bin/lscpdctrl start (code=exited, status=0/SUCCESS)
  CGroup: /system.slice/lscpd.service
          ├─2763 lscpd (lscpd - main)
          ├─2767 lscpd (lscpd - #01)
          └─2794 lscpd (lscgid)```


error.log:
2019-06-05 11:32:41.769014 [NOTICE] Loading LiteSpeed/0.1.8 Open ...
2019-06-05 11:32:41.769050 [NOTICE] Using [BoringSSL]
2019-06-05 11:32:41.780277 [NOTICE] [LscpdCommSocket] server socket: uds://usr/local/lscpd/admin/comm.sock and fd 11 uid 1000 gid 1000
2019-06-05 11:32:41.782073 [NOTICE] [AutoRestarter] new child process with pid=2767 is forked!
2019-06-05 11:32:41.785251 [NOTICE] [child: 2767] Successfully change current user to lscpd
2019-06-05 11:32:41.785307 [NOTICE] Child: 2767] Core dump is disabled.
2019-06-05 11:32:41.786458 [NOTICE] [Child: 2767] Setup swapping space...
2019-06-05 11:32:41.786566 [NOTICE] [Child: 2767] LiteSpeed/0.1.8 Open starts successfully!
2019-06-05 11:32:42.087213 [ERROR] Failed to open the real time report!
2019-06-05 11:32:42.087238 [INFO] checkStatusFile() called with uid 5010 randoffset -1.
2019-06-05 11:32:42.087626 [INFO] checkStatusFile() return 1.
2019-06-05 11:32:43.000242 [NOTICE] [PID: 2763]: forked cgid: 2794
2019-06-05 11:32:43.089115 [ERROR] Failed to open the real time report!
2019-06-05 11:32:44.090769 [ERROR] Failed to open the real time report!
2019-06-05 11:32:45.092806 [ERROR] Failed to open the real time report!
2019-06-05 11:32:46.094676 [ERROR] Failed to open the real time report!
2019-06-05 11:32:47.096791 [ERROR] Failed to open the real time report!

2019-06-05 11:32:43.089115 [ERROR] Failed to open the real time report!

This is the problem, can you check if lscpd is in following groups lscpd,lsadm,nobody ?

And provide output of ls -la /tmp/lshttpd/

# groups lscpd
lscpd : lscpd nobody lsadm
ls -la /tmp/lshttpd/
total 212 drwxr-xr-x 4 nobody nobody 4096 Jun 5 12:42 . drwxrwxrwt 28 root root 188416 Jun 6 08:02 .. drwxr-xr-x 2 root nobody 4096 Dec 27 03:49 bak_core srwxr-xr-x 1 nobody nobody 0 Jun 5 11:40 harrisa.sock srwxr-xr-x 1 nobody nobody 0 Jun 5 11:45 kuwasil6768.sock -rw-r--r-- 1 root root 5 Jun 5 11:32 lshttpd.pid -rw-r--r-- 1 nobody nobody 1448 Jun 6 08:03 .rtreport -rw-r--r-- 1 root nobody 941 Jun 5 11:32 .status drwx------ 18 nobody nobody 4096 May 10 09:02 swap srwxr-xr-x 1 nobody nobody 0 Jun 5 12:42 thegree.sock

Permissions seems right, try to restart lscpd systemctl restart lscpd

No change. It restarted successfully, but the panel is still responding with 500 Internal Server Error

Try to turn on debug logging in /usr/local/CyberCP/CyberCP/settings.py and then restart LSCPD.

I enabled the debug log and restarted lscpd and this time panel is working after restart. Not sure where the other log files are, but the server log shows this for the last 2 days:

2019-06-05 11:32:53.803140 [INFO] Invalid rewrite directive: php_value post_max_size 511M 2019-06-05 11:32:53.803144 [INFO] Invalid rewrite directive: php_value memory_limit 512M 2019-06-05 11:32:53.803148 [INFO] Invalid rewrite directive: php_value mbstring.func_overload 0 2019-06-05 11:32:53.803152 [INFO] Invalid rewrite directive: php_value default_charset 'UTF-8' 2019-06-05 11:32:53.803156 [INFO] Invalid rewrite directive: php_value output_buffering 0 2019-06-05 11:32:53.803159 [INFO] Rewrite directive: <IfModule mod_env.c> bypassed. 2019-06-05 11:32:53.803163 [INFO] Invalid rewrite directive: SetEnv htaccessWorking true 2019-06-05 11:32:53.803167 [INFO] Rewrite directive: </IfModule> bypassed. 2019-06-05 11:32:53.803171 [INFO] Rewrite directive: </IfModule> bypassed. 2019-06-05 11:32:53.803175 [INFO] Rewrite directive: <IfModule mod_rewrite.c> bypassed. 2019-06-05 11:32:53.803246 [INFO] Rewrite directive: </IfModule> bypassed. 2019-06-05 11:32:53.803251 [INFO] Rewrite directive: <IfModule mod_mime.c> bypassed. 2019-06-05 11:32:53.803255 [INFO] Invalid rewrite directive: AddType image/svg+xml svg svgz 2019-06-05 11:32:53.803264 [INFO] Invalid rewrite directive: AddEncoding gzip svgz 2019-06-05 11:32:53.803268 [INFO] Rewrite directive: </IfModule> bypassed. 2019-06-05 11:32:53.803272 [INFO] Rewrite directive: <IfModule mod_dir.c> bypassed. 2019-06-05 11:32:53.803276 [INFO] Invalid rewrite directive: DirectoryIndex index.php index.html 2019-06-05 11:32:53.803280 [INFO] Rewrite directive: </IfModule> bypassed. 2019-06-05 11:32:53.803284 [INFO] Invalid rewrite directive: AddDefaultCharset utf-8 2019-06-05 11:32:53.803288 [INFO] Invalid rewrite directive: Options -Indexes 2019-06-05 11:32:53.803292 [INFO] Rewrite directive: <IfModule pagespeed_module> bypassed. 2019-06-05 11:32:53.803296 [INFO] Invalid rewrite directive: ModPagespeed Off 2019-06-05 11:32:53.803299 [INFO] Rewrite directive: </IfModule> bypassed. 2019-06-05 11:32:53.803303 [INFO] Invalid rewrite directive: ErrorDocument 403 // 2019-06-05 11:32:53.803307 [INFO] Invalid rewrite directive: ErrorDocument 404 // 2019-06-05 11:32:53.803312 [INFO] RewriteFile [.htaccess] parsed, return 0. 2019-06-05 11:32:53.804343 [INFO] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/hostchestnut.com/vhost.conf 2019-06-05 11:32:53.998922 [INFO] [PlainConf] [virtualHostConfig:] RCS checkin config file /usr/local/lsws/conf/vhosts/hostchestnut.com/vhost.conf0 OK. 2019-06-05 11:32:54.002258 [INFO] [config:server:vhosts:vhost:hostchestnut.com] config context /.filemanager. 2019-06-05 11:32:54.006943 [INFO] RewriteFile [/home/hostchestnut.com/public_html/.htaccess] parsed, return 0. 2019-06-05 11:32:54.007359 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/ccl.conf 2019-06-05 11:32:54.207918 [INFO] [PlainConf] [virtualHostTemplate:] RCS checkin config file /usr/local/lsws/conf/templates/ccl.conf0 OK. 2019-06-05 11:32:54.208016 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess] 2019-06-05 11:32:54.208056 [ERROR] Path for vhost template config is invalid: /usr/local/lsws/conf/templates/phpsuexec.conf 2019-06-05 11:32:54.208072 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/rails.conf 2019-06-05 11:32:54.396602 [INFO] [PlainConf] [virtualHostTemplate:] RCS checkin config file /usr/local/lsws/conf/templates/rails.conf0 OK. 2019-06-05 11:32:54.396699 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess] 2019-06-05 11:32:54.396731 [NOTICE] [ZConfManager] No VHosts added, do not send! 2019-06-05 11:32:54.397222 [NOTICE] [AutoRestarter] new child process with pid=4078 is forked! 2019-06-05 11:32:54.413326 [NOTICE] [child: 4078] Successfully change current user to nobody 2019-06-05 11:32:54.413379 [NOTICE] Child: 4078] Core dump is enabled. 2019-06-05 11:32:54.413443 [NOTICE] [Child: 4078] Setup swapping space... 2019-06-05 11:32:54.418652 [NOTICE] [Child: 4078] LiteSpeed/1.4.46 Open starts successfully! 2019-06-06 02:03:54.046774 [ERROR] HttpFetch[0]::failed to create file /usr/local/lsws//autoupdate/release: Permission denied. 2019-06-06 02:33:54.051362 [ERROR] HttpFetch[1]::failed to create file /usr/local/lsws//autoupdate/release: Permission denied. 2019-06-06 11:16:07.423803 [ERROR] [54.36.148.33:45924] [modcompress] AddHooks failed: not enough memory or enable hooks failed. 2019-06-06 11:16:07.425832 [ERROR] [54.36.148.33:45924] [modcompress] AddHooks failed: not enough memory or enable hooks failed. 2019-06-06 11:21:08.365014 [INFO] [54.36.148.33:45924] Connection idle time too long: 301 while in state: 10 watching for event: 0, close! 2019-06-06 11:21:08.365092 [INFO] [54.36.148.33:45924] Content len: 0, Request line: GET /robots.txt HTTP/1.1

Try to turn on debug logging in `/usr/local/CyberCP/CyberCP/settings.py` and then restart LSCPD.

Are there any other logs you would like to see?

You may need to create ticket now.

Is it possible to reinstall?

You can install CyberPanel only on fresh virtual machine, means you will have to re-image the OS.

OK. I think I’ll go that route as I did have a ticket open and they were not able to fix, although a little concerned this happened at all.
So, I’m thinking I’ll backup each website and load them back onto a fresh image. Are there other tips that may help out here as in any configs worth backing up for cyberpanel or should I just keep it as clean as possible?

thanks for your help on this

It seems Shaheer was handling your ticket. He is our new guy, currently off to vacations. However Your CyberPanel loads on my end, not sure what is the problem now?

You’re right, it’s loading now. That’s weird. Well, if it ain’t broke I won’t fix it :slight_smile: Any more problems I’ll do the migration.

i had a problem, set up new vps, ssh and install cyberpanel, everything run well. i am able to login to web panel. but then after i reboot the vps i can’t access the web panel anymore, not even ssh to the vps, not even ping the vps. please advise. thank you.

@inyomansudiana

Provide these details → Bug Report Template — CyberPanel - WebHosting Control Panel for OpenLiteSpeed