mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #2530] Can't connect via new-admin login page #1626
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1626
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?
Originally created by @SimonVanacco on GitHub (Jun 1, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2530
Impacted versions
Steps to reproduce
Current behavior
The login form on the new admin login page is not working on my install. This is not a fresh install i upgraded today.
The form submit process sends a POST to /token and then loops between two requests : one GET to /account/me that fails, and one POST to /token/refresh.
I don't see where the issue lies as the first POST to /token returns correct JSON object with refresh and access tokens.
Workaround
Logging-in from the old interface and then going to the new one works.
@tonioo commented on GitHub (Jun 1, 2022):
@SimonVanacco Do you see anything interesting in the console tab?
@SimonVanacco commented on GitHub (Jun 3, 2022):
Yes @tonioo i have a JSON.Parse exception right after the downloading of the config.json file, don't know if it's linked but i don't see any errors with my config.json :/
@tonioo commented on GitHub (Jun 3, 2022):
@SimonVanacco Indeed it looks fine, unless there is special characters in your hostname?
@SimonVanacco commented on GitHub (Jun 8, 2022):
@tonioo, No, it's a perfectly normal hostname. If i find the time in the next few days i'll fiddle with the JS a bit to find what could cause this.
@ksaadDE commented on GitHub (Jun 27, 2022):
Any update?
@jahlives commented on GitHub (Aug 2, 2022):
not sure if our issue is related to the same but I updated modoboa today to latest (2.0.1). admin GUI shows me that the version ins updated. I did the steps described in manual for upgrading and I restarted the whole server just to be sure. Modoboa is installed in a venv. After rebooting the admin GUI shows me a button to use Modoboa v2 on top ("Want to check the new admin interface? Go to Modoboa v2"). This leads to URL page "new-admin". But this one cannot be found and yields to a 404 page does not exist error. We use a nginx server in front of the modoboa-uwsgi. Any idea why the new admin interface cannot be used?
@tonioo commented on GitHub (Aug 3, 2022):
@jahlives Have you updated your nginx configuration to make the /new-admin subpath work?
@jahlives commented on GitHub (Aug 8, 2022):
@tonioo I did not change the nginx config as I thought that /new-admin should be handled by the / location
according to uwsgi logs the request is passed to uwsgi as I would expect it by / location
@stale[bot] commented on GitHub (Oct 8, 2022):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@jahlives commented on GitHub (Oct 31, 2022):
sorry to open again but we still have this issue with the current updated version (we did an update today)
@ossimantylahti commented on GitHub (Feb 17, 2023):
I can confirm that the issue exists in a fresh Modoboa install to a new server.
OS Type: Ubuntu
OS Version: 22.04 LTS
Database Type: Postgre
Modoboa: 2.0.4
installer used: Yes
Webserver: Nginx
@ossimantylahti commented on GitHub (Feb 17, 2023):
Here is how to fix this (tested on 2.0.4)
Modify file
/srv/modoboa/instance/instance/settings.pyFind a section that says
Remove the # mark from the 2nd line and modify address to have dash instead of underscore, so it would read:
NEW_ADMIN_URL = 'new-admin'Reboot the server for the change to take effect.