mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #1276] ImportError: No module named instance.settings after fresh install. #1032
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#1032
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 @prisma01 on GitHub (Oct 15, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1276
Hello,
i have some trouble installing modoboa.
OS: Debian 9 (stretch), python 2.7, apache/mod_wsgi
Installer: Only modoboa enbled, everything else I do manually.
Installer.cfg: https://pastebin.com/6EeVjg5Q
Output: https://pastebin.com/FWbWynVa
So Installer => everything is fine
sudo -u modoboa -i
source env/bin/activate
But when /srv/modoboa/instance/instance/wsgi.py is called by apache or I call it directly:
python ./instance/instance/wsgi.py
I get the ImportError:
I get the same error when installing modoboa manually and deploy instance with modoboa-admin.py...
Some Django pages state that it has something to do with paths or double paths (instance/instance), but all workarounds show no effect.
@prisma01 commented on GitHub (Oct 17, 2017):
Hi, I found out more details.
the missing instance.settings is happening due to a missing path to the instance. There are two possible solutions:
a) use the daemon mode of modwsgi as discribed in the documentation Manual Install -> Webserver.
b) beef up wsgi.py a little
I had to choose b) as the daemons keep on crashing and i only got timeouts from clients.
This is how my wsgi.py looks like:
What also helped against bad Request (400) errors was to modify the ALLOWED_HOSTS in the settings.py: