mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #2709] No preferences available. #1684
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#1684
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 @bernd-wechner on GitHub (Dec 12, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2709
Impacted versions
Steps to reproduce
Surf to:
https://my-modoboa-site/user/#preferences/
Current behavior
I see this:
Expected behavior
Not that.
Basically landed here after an install because experienced this: https://github.com/modoboa/modoboa/issues/1411 and there it suggested looking at Preferences. But they don't load either.
For what it's worth I used this installer.cfg (redacted):
And for what it's worth:
and
and
All looks good on the OpenDKIM front (bar the fact that it's not working and I can't see Preferences at all which may be related).
@Spitfireap commented on GitHub (Dec 19, 2022):
Hi,
Can you try going there https://mail.domain.tld/new-admin/parameters/core and check if there are available parameters ?
Can you also type this as modoboa user
(modoboa venv) $ python /data/www/hermes/instance/manage.py migrate.If it doesn't work, could you try switching
DEBUGtoTruein/data/www/hermes/instance/instance/settings.pyand restart uwsgi service. Then reload parameter page and check API response of the server.@bernd-wechner commented on GitHub (Dec 20, 2022):
I'll give that a try as soon as I can. Thanks.
@bernd-wechner commented on GitHub (Dec 20, 2022):
The URL bombs:
Page not found (404)
Using the URLconf defined in
hermes.urls, Django tried these URL patterns, in this order:The current path,
new-admin/parameters/core, didn’t match any of these.You’re seeing this error because you have
DEBUG = Truein your Django settings file. Change that toFalse, and Django will display a standard 404 page.@bernd-wechner commented on GitHub (Dec 20, 2022):
The other URL bombs with:
Page not found (404)
Using the URLconf defined in
hermes.urls, Django tried these URL patterns, in this order:The current path,
instance/instance/settings.py, didn’t match any of these.You’re seeing this error because you have
DEBUG = Truein your Django settings file. Change that toFalse, and Django will display a standard 404 page.@bernd-wechner commented on GitHub (Dec 20, 2022):
All migrations are applied:
@tonioo commented on GitHub (Dec 20, 2022):
@bernd-wechner You can't access settings.py file like this.
What extensions did you install? Since you're connected with a SuperAdmin with no mailbox, it's probably normal that you don't have any preference available...
@bernd-wechner commented on GitHub (Dec 21, 2022):
I presume the extensions installed are as documented in the
installer.cfgI shared above, namely:If you're after the contents to
settings.pythat should of course never be served via a URL, but a redacted version for critique is:@Spitfireap commented on GitHub (Dec 28, 2022):
Okay, It looks like extensions fail to install (perhaps because you disable NGINX?). As @tonioo said, when logged as SuperAdmin you shouldn't have any parameters, this is normal. You might be looking for configuration (click on
Modoboaon the navbar...).As for the extensions, you can check their documentation, there are guides to deploy them manually :).
@bernd-wechner commented on GitHub (Dec 29, 2022):
Hmm, extensions don't seem to have failed to install at all. In the install script these extensions were listed:
And I just followed the manual instructions here:
https://modoboa.readthedocs.io/en/latest/installation.html#extensions
and tried installing each one individually, and each and every one reported as
Requirement already satisfied:on the extension and a load of dependencies (other packages they depend on). From which I conclude the installation was fine.So I did a migration (and nothing to migrate - no surprise) and did the
check --deployfor good measure and it only hsows a few Django standards:But if Preferences are not expected when logged in as Admin, and it's the configuration I was after, then yes, I do see that here:
https://mymail.domain/core/#parameters/
Which is great. Truth be told, I was looking for preferences only because it totally misread (doh! noob mistake) the discourse at: https://github.com/modoboa/modoboa/issues/1411.
This then can close as explained ... and a noob misunderstanding. And I shall explore https://github.com/modoboa/modoboa/issues/1411 separately.
@bernd-wechner commented on GitHub (Dec 29, 2022):
Mind you, new-admin does not work at all, and I would love to know why that is. Separate issue though.
@bernd-wechner commented on GitHub (Dec 29, 2022):
FYI, got new-admin working too. Found this: https://github.com/modoboa/modoboa/discussions/2574
@Spitfireap commented on GitHub (Jan 4, 2023):
Hi, is this issue solved ? @bernd-wechner
@bernd-wechner commented on GitHub (Jan 4, 2023):
Yes, all good, we can close this one as "clarified" Parameters are available, Preferences not, for an admin.