Unable to create new users from within the admin page #125
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
KittenSquad/glewlwyd#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the issue
All attempts to create a new user from the admin page produce an error ("error while adding user").
To Reproduce
Expected behavior
New user should be created.
System (please complete the following information):
Hello @yrammos ,
This might be a bug due to a forgotten check in the UI. I found that you can select a read-only backend when you add a new user. This will be fixed soon.
If that's not the problem for your case, can you open the javascript console (press on the glewlwyd admin page), then retry to add a new user, then get the error again.
In the network tab, you should see a POST /api/user with an error, probably 400, maybe another one. Can you send the http response status and body content?
@babelouest sure enough, the POST request to
/api/userproduces a 500 Internal Server Error. The Apache logs do not indicate any problems (not that one would expect them to), and the Glewlwyd logs are empty.Request data
Request
Reponse
That's very weird, every error 500 sent by Gewlwyd should log at least one error message, usually more:
https://github.com/babelouest/glewlwyd/blob/master/src/webservice.c#L1506
Can you access the glewlwyd instance directly and try again to add the user, i.e. without the apache proxy in between, to make sure the problem doesn't come from the the apache proxy?
btw, what data source are you using to add the new user to? is it Database or LDAP?
Issue tracked down, I think. The log, to begin with, was set to "CONSOLE" in non-writable directory: two reasons why it wasn't produced.
The issue boils down to MySQL:
This means I should relax or remove the MySQL password policy plugin. Apologies for the false alarm, @babelouest!
I didn't know there were such a thing as
MySQL password policy plugin:)I'll close this bug when I'll push the fix related to readonly backends then, thanks.
Also, you can check the install documentation for the logs settings
The readonly bug has been fixed in
github.com/babelouest/glewlwyd@2001de95e8