Creating user does not work

If I try to create a new user on the admin panel it does nothing. After refreshing the page it cannot load the correctly anymore just a white page. The request is getting rejected with a 500 server error.
After restarting the server I can use it again but still no chance to create a user.

In the Nextcloud log is nothing interesting.

The Nginx log show the following message:
2016/12/13 21:20:29 [error] 859#859: *610 FastCGI sent in stderr: “PHP message: PHP Fatal error: Couldn’t find implementation for method 03ƒmr::__tostring in Unknown on line 0” while reading response header from upstream, client: CLIENT, server: SERVER , request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “SERVER”

I am running Nextcloud 11.0 on an nginx server with PHP7 and an MySQL DB - Debian

Would really appreciate your help.
Kind regards
Patrick

Hello,

clean install no extras yet.

OS: Ubuntu 16.04.1 LTS

Database
Type: mysql
Version: 10.0.28
Size: 1.9 MB

PHP
Version: 7.0.8
Memory Limit: 512.0 MB
Max Execution Time: 3600
Upload max size: 511.0 MB

Version Nextcloud 11.0.0 (stable)

Security & setup warnings
All checks passed.

Cannot create a normal user. I can however create a new group but when i fill in a username and password and click create something stops working. no matter if its a excisting group or new group or no group everytime I have to restart apache2 to get it working again.

the admin user seems to work data and client
Am I allowed to add a user manually by command line sql?

here is the apache error.log

[Mon Dec 26 14:41:17.524339 2016] [:error] [pid 17451] [client ::1:35524] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 2913177664 bytes) in Unknown on line 0
[Mon Dec 26 14:41:17.524906 2016] [:error] [pid 17451] [client ::1:35524] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 2913177664 bytes) in Unknown on line 0
zend_mm_heap corrupted
[Mon Dec 26 14:41:17.558050 2016] [:error] [pid 17458] [client ::1:35526] PHP Fatal error:  Couldn't find implementation for method \xc8\xcb#::__tostring in Unknown on line 0
[Mon Dec 26 14:41:44.506924 2016] [:error] [pid 17468] [client ::1:35530] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.523070 2016] [:error] [pid 17449] [client ::1:35528] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.541405 2016] [:error] [pid 17469] [client ::1:35532] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.562571 2016] [:error] [pid 17448] [client ::1:35534] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.581543 2016] [:error] [pid 17459] [client ::1:35536] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.600098 2016] [:error] [pid 17458] [client ::1:35538] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.618435 2016] [:error] [pid 17467] [client ::1:35540] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.636658 2016] [:error] [pid 17450] [client ::1:35542] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54
zend_mm_heap corrupted
[Mon Dec 26 14:41:44.655539 2016] [:error] [pid 17452] [client ::1:35544] PHP Fatal error:  require_once(): 3G^\x80\x10\xb4\xa1\xad(\xb4\xa1\xad\xa5\xb5\x02\x80\x06 in /var/www/nextcloud/lib/base.php on line 54

last bit of the logging from nextcloud admin logging page

Debug	Invalidating remembered session tokens older than 2016-12-11T13:48:25+00:00	2016-12-26T14:48:25+0100
Debug	Invalidating session tokens older than 2016-12-25T13:48:25+00:00	2016-12-26T14:48:25+0100
Debug	0 orphaned share(s) deleted	2016-12-26T14:40:34+0100
Error	OC\HintException: Memcache \OC\Memcache\APCu not available for local cache at /var/www/nextcloud/lib/private/Memcache/Factory.php#96	2016-12-26T14:22:08+0100
Error	OC\HintException: Memcache \OC\Memcache\APCu not available for local cache at /var/www/nextcloud/lib/private/Memcache/Factory.php#96	2016-12-26T14:21:38+0100
Error	OC\HintException: Memcache \OC\Memcache\APCu not available for local cache at /var/www/nextcloud/lib/private/Memcache/Factory.php#96	2016-12-26T14:21:08+0100
Warning	Login failed: 'blank' (Remote IP: '::1')	2016-12-26T13:33:37+0100
Error	stream_wrapper_register(): class 'OC\Files\Stream\OC' is undefined at /var/www/nextcloud/lib/base.php#570	2016-12-26T13:11:22+0100

Solved the above issue where you cannot create a new user.

The problem is with the password in the Admin additional settings at the bottom you can set the password strength

Password policy

Minimal length 8
x Forbid common passwords
x Enforce upper and lower case characters
x Enforce numeric characters
x Enforce special characters

if all is selected and you try and create a user with a weak password which not meet the requirement something breaks and every reload shows a blank page. reloading apache service solves the issue and using a password which do meet the requirements creates the user without any problem.

Seems to me I should be alerted that the password is not correct instead.
BUG?

Everthing is working perfectly now.

2 Likes

The same issue with freshly installed Nextcloud 12

Has this already been reported on github?

(same issue, same reproducability with fresh install on Debian, PHP7.0/Nginx)

I am reporting it now as I got the issue again.
I currently just use the occ to create users like:
sudo -u www-data php occ user:add --display-name=“Layla Smith”
–group=“users” --group=“db-admins” layla

After that it asks you for a password.

REFERENCE URL: https://github.com/nextcloud/server/issues/5746

An error occured during the request. Unable to proceed.
same error
creating user or group

can’t creat any at all