Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: igor on October 17, 2020, 08:49:26 AM

Title: Re-create user fails
Post by: igor on October 17, 2020, 08:49:26 AM
Dear CWP community,

I have an instace of CWP7-Pro running with nearly 200 users. I have been working with a user-account 'wiki' with domain 'wiki.mydomain.info' and I had the user configured with SSH access. After running into difficulties with this user, I decided to delete the user. CWP confirmed useraccount, subdomain, database and backups were all deleted.

So I thought I could start from scratch by creating the user anew. However, CWP returns error:

Warning! User Account wiki not added !!!

I cannot find more details to this message. Your help would be greatly appreciated!?

Thank you in advance, kind regards,
Igor
Title: Re: Re-create user fails
Post by: igor on October 18, 2020, 07:33:21 AM
From: /usr/local/cwpsrv/logs/error_log I get:

Code: [Select]
2020/10/12 11:13:51 [info] 4827#0: *47560 client 127.0.0.1 closed keepalive connection
2020/10/12 11:13:51 [error] 4827#0: *47486 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/home/wiki/tmp/session/sess_1t14btcu8d6ncle4vsokmpuqjh, O_RDWR) failed: No such file or directory (2) in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  session_start(): Failed to read session data: files (path: /home/wiki/tmp/session) in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: sessionip in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: token in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: username in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: token in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined variable: modulemd5 in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  krsort() expects parameter 1 to be array, null given in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  array_slice() expects parameter 1 to be array, null given in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: view_band_graph in /usr/local/cwpsrv/var/services/user_files/modules/preferences/index.php on line 0
PHP message: PHP Warning:  A non-numeric value encountered in /usr/local/cwpsrv/var/services/twig/lib/Twig/Environment.php(373) : eval()'d code on line 647" while reading response header from upstream, client: 212.95.x.y, server: localhost, request: "POST /wiki/ HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/wiki.sock:", host: "panel.mydomain.info:2083", referrer: "https://panel.mydomain.info:2031/"
2020/10/12 11:13:51 [error] 4827#0: *47487 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: token in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined offset: 1 in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined offset: 2 in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: sessionip in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: sessionip in /usr/local/cwpsrv/var/services/users/index.php on line 0" while reading response header from upstream, client: 212.95.x.y, server: localhost, request: "GET /cwp_02b2a7a94df08ce4/wiki/ HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/wiki.sock:", host: "panel.mydomain.info:2083", referrer: "https://panel.mydomain.info:2031/"
2020/10/12 11:13:51 [notice] 4827#0: *47564 "^/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/10/12 11:13:51 [notice] 4827#0: *47564 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"
Title: Re: Re-create user fails
Post by: studio4host on October 19, 2020, 05:38:18 PM
make sure the user is deleted from /etc/passwd and that /home/USERNAME folder is also removed before the installation