Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - maietta

Pages: [1]
1
CentOS-WebPanel GUI / Re: Constantly logged out
« on: May 17, 2020, 06:50:59 PM »
I'm trying to make the switch from cPanel to cwp7 and running into this sort of issue. I finally managed to get SSL working with the built-in Letsencrypt setup. No problems there, just took forever for DNS to propogate so that the SSLs could be issued.

But... after my hostname and services ssl's were updated, i started getting kicked out after login. I could log in just fine, but then any next request i was redirected bakc to login page. Tried different browsers, flushing cache, the normal routine. Nothing.

Poked around via SSH and found this.. /usr/local/cwpsrv/logs/error_log.

> tail -f /usr/local/cwpsrv/logs/error_log

[root@c1 logs]# tail -f error_log
2020/05/17 11:40:19 [notice] 845#0: *318 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", host: "127.0.0.1:2302                       "
2020/05/17 11:40:19 [info] 845#0: *318 client 127.0.0.1 closed keepalive connection
2020/05/17 11:40:19 [error] 846#0: *269 FastCGI sent in stderr: "PHP message: PHP Warning:  session_destroy(): Trying to destroy uninitialized session in /usr/local/cwpsrv/var/services/users/                       login/index.php on line 0
PHP message: PHP Notice:  Undefined variable: [obfuscated] in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined variable: [obfuscated] in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined variable: [obfuscated] in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined variable: [obfuscated] in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined variable: [obfuscated] in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 172.58.38.220, serv                       er: localhost, request: "GET /login/?acc=logon HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "149.28.210.107:2083", referrer: "https://149.28.210.1                       07:2083/"
2020/05/17 11:45:29 [notice] 845#0: *389 "^/v1/([^/]+)/?$" matches "/v1/loginfail/", client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", host: "127.0.0.1:2302"
2020/05/17 11:45:29 [notice] 845#0: *389 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", host: "127.0.0.1:2302"
2020/05/17 11:45:29 [info] 845#0: *389 client 127.0.0.1 closed keepalive connection
2020/05/17 11:45:29 [error] 845#0: *387 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 172.58.38.220, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "149.28.210.107:2083"
2020/05/17 11:45:40 [notice] 845#0: *407 "^/v1/([^/]+)/?$" matches "/v1/valid_user/", client: 127.0.0.1, server: localhost, request: "POST /v1/valid_user/ HTTP/1.1", host: "127.0.0.1:2302"
2020/05/17 11:45:40 [notice] 845#0: *407 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/valid_user/ HTTP/1.1", host: "127.0.0.1:2302"
2020/05/17 11:45:40 [info] 845#0: *407 client 127.0.0.1 closed keepalive connection




I believe my problem involves a broken reference to the old SSL in the Apache/Nginx default setup that didn't get updated on SSL swaps.

I will be attempting to fix this and if so, i'll post an update. This could be a bug in that SSL changes from fresh install to letsencrypt and changing hostname could trigger this problem.

Pages: [1]