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?
Comments
systemctl status lscpd
or
cat /usr/local/lscp/logs/error.log
Browser:
500
Internal Server Error
An internal server error has occured.
service status:
```lscpd.service - LSCPD Daemon
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/
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
systemctl restart lscpd
/usr/local/CyberCP/CyberCP/settings.py
and then restart LSCPD.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: 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: bypassed. 2019-06-05 11:32:53.803171 [INFO] Rewrite directive: bypassed. 2019-06-05 11:32:53.803175 [INFO] Rewrite directive: bypassed. 2019-06-05 11:32:53.803246 [INFO] Rewrite directive: bypassed. 2019-06-05 11:32:53.803251 [INFO] Rewrite directive: 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: bypassed. 2019-06-05 11:32:53.803272 [INFO] Rewrite directive: 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: 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: bypassed. 2019-06-05 11:32:53.803296 [INFO] Invalid rewrite directive: ModPagespeed Off 2019-06-05 11:32:53.803299 [INFO] Rewrite directive: 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
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
Provide these details -> https://forums.cyberpanel.net/discussion/953/bug-report-template#latest
Virtualization Type: OpenVZ
System: Centos 7 64bit Minimal
Fresh install on Centos 7 64bit Minimal
# sestatus
status disabled
# yum update -y
grep: /etc/selinux/targeted/rpmbooleans.custom: No such file or directory
ValueError: SELinux policy is not managed or store cannot be accessed.
warning: %postun(bind-32:9.9.4-73.el7_6.x86_64) scriptlet failed, exit status 1
Non-fatal POSTUN scriptlet failure in rpm package 32:bind-9.9.4-73.el7_6.x86_64
Cleanup : 32:bind-libs-9.9.4-73.el7_6.x86_64 10/12
Cleanup : 32:bind-license-9.9.4-73.el7_6.noarch 11/12
Cleanup : glib2-2.56.1-2.el7.x86_64 12/12
ValueError: SELinux policy is not managed or store cannot be accessed.
/var/tmp/rpm-tmp.qFjlje: line 12: /etc/selinux/targeted/rpmbooleans.custom: No such file or directory
ValueError: SELinux policy is not managed or store cannot be accessed.
/var/tmp/rpm-tmp.qFjlje: line 30: /etc/selinux/targeted/rpmbooleans.custom: No such file or directory
ValueError: SELinux policy is not managed or store cannot be accessed.
warning: %posttrans(bind-32:9.9.4-74.el7_6.1.x86_64) scriptlet failed, exit status 1
Non-fatal POSTTRANS scriptlet failure in rpm package 32:bind-9.9.4-74.el7_6.1.x86_64
# cd ~
# wget -O installer.sh https://cyberpanel.net/install.sh
Resolving cyberpanel.net (cyberpanel.net)... 2606:4700:30::681b:a395, 2606:4700:30::681b:a295, 104.27.163.149, ...
Connecting to cyberpanel.net (cyberpanel.net)|2606:4700:30::681b:a395|:443... failed: Network is unreachable.
Connecting to cyberpanel.net (cyberpanel.net)|2606:4700:30::681b:a295|:443... failed: Network is unreachable.
Connecting to cyberpanel.net (cyberpanel.net)|104.27.163.149|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 494 [application/x-sh]
Saving to: 'installer.sh'
# chmod 755 installer.sh
# sh installer.sh
OLS or Enterprise?
OLS
Installing from official server or mirror server?
Official
Replace JS/CSS files to JS Delivr?
no
Install Memcached extension for PHP?
no
Install LiteSpeed Memcached?
yes
Install Memcached?
This option was not shown
Install Redis extension for PHP?
yes
Install Redis?
yes
###################################################################
CyberPanel Successfully Installed
Current Disk usage : 3/20GB (19%)
Current RAM usage : 206/1024MB (20.12%)
Installation time : 0 hrs 19 min 34 sec
Visit: https://156.67.221.99:8090
Panel username: admin
Panel password: xxxxxxxxxx
Please change your default admin password
If you need to reset your panel password, please run:
adminPass YOUR_NEW_PASSWORD
If you change mysql password, please modify file in
/etc/cyberpanel/mysqlPassword with new password as well
Website : https://www.cyberpanel.net
Forums : https://forums.cyberpanel.net
Wikipage: https://docs.cyberpanel.net
Enjoy your accelerated Internet by
CyberPanel & OpenLiteSpeed
###################################################################
Some warning or error I can find in in terminal after process finished.
- - -
Cannot uninstall requirement pyOpenSSL, not installed
You are using pip version 8.1.2, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Cannot uninstall requirement certbot, not installed
You are using pip version 8.1.2, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[Tue Jun 18 03:59:35 UTC 2019] It is recommended to install socat first.
[Tue Jun 18 03:59:35 UTC 2019] We use socat for standalone server if you use standalone mode.
[Tue Jun 18 03:59:35 UTC 2019] If you don't use standalone mode, just ignore this warning.
System check identified some issues:
WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default'
HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'rootdb'
HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python2.7 -I. -I/usr/include/python2.7 -c -o main.o main.c
In file included from /usr/include/inttypes.h:25:0,
from ./lsapidef.h:37,
from ./lsapilib.h:41,
from main.c:34:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
main.c: In function 'main':
main.c:169:9: warning: implicit declaration of function 'preload_module' [-Wimplicit-function-declaration]
preload_module(moduleName, appName, progName);
^
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python2.7 -I. -I/usr/include/python2.7 -c -o wsgi.o wsgi.c
In file included from /usr/include/limits.h:26:0,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from wsgi.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python2.7 -I. -I/usr/include/python2.7 -c -o wsgiinput.o wsgiinput.c
In file included from /usr/include/limits.h:26:0,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from wsgiinput.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python2.7 -I. -I/usr/include/python2.7 -c -o wsgiwrapper.o wsgiwrapper.c
In file included from /usr/include/limits.h:26:0,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from wsgiwrapper.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python2.7 -I. -I/usr/include/python2.7 -c -o lsapilib.o lsapilib.c
In file included from /usr/include/ctype.h:26:0,
from lsapilib.c:35:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O0 -g3 -I. -I/usr/include/python2.7 -I. -I/usr/include/python2.7 -c -o lsapi-glue.o lsapi-glue.c
In file included from /usr/include/limits.h:26:0,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from lsapi-glue.c:33:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -pthread -Wl,-z,relro -L/usr/lib64 -Xlinker -export-dynamic -o lswsgi main.o wsgi.o wsgiinput.o wsgiwrapper.o lsapilib.o lsapi-glue.o -L/usr/lib64/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm
###################################################################
CyberPanel Successfully Installed
Visit: https://156.67.221.99:8090
Username: admin
Password: 1234567
###################################################################
I can access the web panel without any issue after cyberpanel installation finished. But after rebooting the VPS, then it stuck, can't even ping the VPS.
Thank you
I have restarted the server several times but
Failed to start LSCPD Deamonn just can't find any solution