Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create new users after upgrade #2358

Closed
asterismo opened this issue Nov 27, 2016 · 23 comments
Closed

Cannot create new users after upgrade #2358

asterismo opened this issue Nov 27, 2016 · 23 comments

Comments

@asterismo
Copy link

Hi, i updated next cloud a couple of times and now i cannot create new users using the admin webpage

I get this error in nginx log:

2016/11/27 20:24:45 [error] 1544#0: *4937 FastCGI sent in stderr: "PHP message: {"reqId":"g2Ph8j0eXyEt3XhF5+2A","remoteAddr":"127.0.0.1","app":"core","message":"Login failed: 'admin' (Remote IP: '127.0.0.1')","level":2,"time":"2016-11-27T20:24:45+00:00","method":"POST","url":"/index.php/login","user":"--"}" while reading response header from upstream, client: 127.0.0.1, server: nextcloud.mydomain.com, request: "POST /index.php/login HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "nextcloud.mydomain.com"

I hit the create button and nothing happens. Nothing is logged in nextcloud.log

any ideas? it seems a misconfiuguration of php?

@MorrisJobke
Copy link
Member

@asterismo Could you check the web developer tools in your webbrowser when you click the create user button. (Open them and then click the button)

There the console and the network tab are of interest. Best would be to send over a screenshot of those two tabs.

@schiessle
Copy link
Member

Additionally it would be good to know the Nextcloud version you are using. Thanks!

@asterismo
Copy link
Author

its 10.0.1 stable

@asterismo
Copy link
Author

No clue... still cannot.

@asterismo
Copy link
Author

What else can i provide to try to fix this?

@asterismo
Copy link
Author

TypeError: result.responseJSON is undefined

users.js:874
n.Callbacks/j()
jquery.min.js:2
n.Callbacks/k.fireWith()
jquery.min.js:2
x()
jquery.min.js:4
.send/b/<()
jquery.min.js:4

@asterismo
Copy link
Author

That happened when clicking the button on developer console

@asterismo
Copy link
Author

any other info that i can provide to help solve this problem?

@MorrisJobke
Copy link
Member

@asterismo Could I ask you for opening the developer console and click the button. Then check the network tab. There must happen a request when clicking the button. The content of that request would be really nice to have. Maybe took some screenshots of the content of the response and the headers that are send.

@asterismo
Copy link
Author

This is from the Net tab in developer console,

TypeError: result.responseJSON is undefined

users.js:874
n.Callbacks/j()
jquery.min.js:2
n.Callbacks/k.fireWith()
jquery.min.js:2
x()
jquery.min.js:4
.send/b/<()

This is from the Security tab in developer console,

TypeError: result.responseJSON is undefined

users.js:874
n.Callbacks/j()
jquery.min.js:2
n.Callbacks/k.fireWith()
jquery.min.js:2
x()
jquery.min.js:4
.send/b/<()

I'm running Debian 8 Jessie, nginx/1.6.2 and PHP 5.6.28-0+deb8u1 (cli)

@MorrisJobke
Copy link
Member

Sorry I meant the details about what request is sent to the server and what the response is (especially HTTP response code and actual response)

The errors you wrote are the symptoms of this wrong response

@asterismo
Copy link
Author

This is the log i get from access.log in nginx, error.log shows nothing.
https://pastebin.oalm.gub.uy/view/6b3f15e8

@asterismo
Copy link
Author

asterismo commented Dec 18, 2016

Inoticed a POST XHR line in the browser console with this error

POST
XHR
https://cloud.undernet.uy/index.php/settings/users/users [HTTP/1.1 403 Forbidden 194ms]
That happens when i click on the "create" button. Is some permission issue maybe...

@MorrisJobke
Copy link
Member

https://cloud.undernet.uy/index.php/settings/users/users [HTTP/1.1 403 Forbidden 194ms]
That happens when i click on the "create" button. Is some permission issue maybe...

This is indeed interesting. You are using an admin user? Or is this only a group admin?

@asterismo
Copy link
Author

I'm the admin user, and on this account i have created the other 2 accounts... its wierd

@MorrisJobke
Copy link
Member

@asterismo What apps are enabled?

@asterismo
Copy link
Author

cloud_apps

@asterismo
Copy link
Author

Should i try disabling all and then create new user?

@MorrisJobke
Copy link
Member

Should i try disabling all and then create new user?

Yes - maybe disable one app after another to see which one is the app that maybe causes this.

@asterismo
Copy link
Author

Well, it was the "Password Policy" module causing the problem. I disabled it and i could create accounts. Its wierd because it shows no error, it should prompt some message as a feedback. The module was activated but i had not defined any password policy whatsoever. I'm closing this issue. Thanks @MorrisJobke

@MorrisJobke
Copy link
Member

For me the error is shown (on 10.0.1):

bildschirmfoto 2016-12-21 um 06 36 57

By default this app only checks for the most common 1 million passwords (which is a sane default from our point of view)

@asterismo
Copy link
Author

Yeah, i have no feedback whatsoever... so thst is why i had no clue about the error...

@wudimenghuan
Copy link

I have this problem, too.
It's default install in 11 stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants