mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #1485] Installation Failure (Installer and manual) #1165
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#1165
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 @striderr on GitHub (May 3, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1485
Impacted versions
Steps to reproduce
Deployed Deb 9, Ubuntu 18 (LXC containers)
Used git installer on both server instances.
Installer had problems but completed
Used debug switch, saw a few issues.
Installer finished, website didn't work. Error log for the site threw an error "backports cvs not found", this isn't the exact wordage. I manually installed backports.cvs from pip which didn't fix the issue.
I tried the manual installation, documentation needs work, feels partly completed. Installation didn't work and here are the last few lines of the error message.
File "/usr/local/lib/python2.7/dist-packages/modoboa/urls.py", line 31, in
url("admin/", include("modoboa.admin.urls", namespace="admin")),
File "/usr/local/lib/python2.7/dist-packages/django/conf/urls/init.py", line 50, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/urls.py", line 10, in
from .views import (
File "/usr/local/lib/python2.7/dist-packages/modoboa/admin/views/export.py", line 22, in
from backports import csv
ImportError: No module named backports
['/usr/bin/python', u'manage.py', u'set_default_site', 'mail'] failed, check your configuration
Current behavior
Doesn't install, installer has errors.
Expected behavior
Installs with no errors and works out of the box.
Video/Screenshot link (optional)
@derfischi commented on GitHub (May 3, 2018):
I'm having the exact same issue. Error message is basically identical. I'm using python virtualenv. Installed packages are as follows:
@derfischi commented on GitHub (May 3, 2018):
Forgot to mention my OS.
$ lsb_release -d
Description: Debian GNU/Linux 9.4 (stretch)
@striderr commented on GitHub (May 3, 2018):
Took a break and tried the installer on Ubuntu 18.04
I've been up to long and I'm tired so excuse the formatting.
Ran the installer with debug several times and worked my way through some of the issues.
apt-get install libdbd-pg-perlI forgot how many times I ran the installer but I made a little progress each time.
Eventually the installer finished and looked good.
I ran into the following to fix errors from uwsgi.
source /srv/modoboa/env/bin/activatepip install django-filter==1.1.0pip install backports.csvTurned debug=true in settings.py
Got this error
ProgrammingError at /dashboard/
relation "core_localconfig" does not exist
LINE 1: ..."site_id", "core_localconfig"."api_versions" FROM "core_loca...
So I ran this as per solution I found https://groups.google.com/forum/#!msg/modoboa-users/0lsGvjYwlxA/p6MWbI5kBgAJ
Website now loads and I got a login prompt.
I put in admin:password as this is the default and the error I get is the username/password doesn't match.
I search how to reset the admin manually and came across this link https://github.com/modoboa/modoboa/issues/905
The python code doesn't work, well I get a response that PK=1 doesn't exist.
I'm still questioning why there isn't a backup solution that allows me to reset the admin password easily in case I break the system.
This is the point I'm at, I can't log into the system as I don't have a username that works and I don't know how to reset it. I don't know if the username/password are actually good but there is another issue preventing auth. Or if the username and password even exists as I don't know if this is stored in the database, under what table or what.
@striderr commented on GitHub (May 4, 2018):
As a follow up.
I've deployed Centos 7 using LXC containers.
After deployment, I configured the hostname, installed git and nano.
Downloaded the installer into the /opt/ directory.
Ran the installer with debug switch.
Installer completed with more information compared to the deb experience.
Website works and was able to login using admin:password.
It appears there is something broken with deb and ubuntu installation wizard that needs to be addressed. If anyone is dealing with this problem, I recommend using centos 7 as for me, the installer works out of the box.
@derfischi commented on GitHub (May 4, 2018):
When I install the following packages as stated above manual installation works if the --extensions switch is not specified:
pip install django-filter==1.1.0pip install backports.csvHowever, when using the --extensions switch or when trying to install extensions afterwards I get several errors depending on the extension that should be loaded.
e.g. for modoboa_admin:
or for modoboa_admin_relaydomains:
No
eventsand noparameters@striderr commented on GitHub (May 4, 2018):
I did some testing and ran into a few more issues.
admin login worked, created a domain and added a simple user.
Logged into the user account, all tabs except webmail worked.
First error after clicking webmail was IMAP connection error. I don't think dovecot was starting.
Second error was something about the IMAP reaching the EOF. I think this was related to uwsgi having a problem finding a socket that wasn't being created.
I wasn't able to logout, the server timed out. I wasn't able to login again.
Ran the installer over top.
This seemed to fixed things and now my test user can use webmail, things seem to be working and I can logout without causing a timeout.
Current error I'm getting in the admin panel is the DKIM path is highlighted red with an error message that openssl wasn't found, please make sure it's installed. It is installed on the base system, unsure if openssl needs to be installed in the virtualenv.
I haven't tried to send email yet, sync with imap or anything else.
@tonioo commented on GitHub (May 9, 2018):
Guys, this issue is a mess. You're talking about different errors.
@powerfischi Are you trying to upgrade an existing modoboa installation?
@striderr Was it a fresh install?
@striderr commented on GitHub (May 9, 2018):
Fresh installs.
I only used LXC containers using the ubuntu 18, debian 9 or centos 7 images.
On May 9, 2018, at 4:43 AM, Antoine Nguyen <notifications@github.commailto:notifications@github.com> wrote:
Guys, this issue is a mess. You're talking about different errors.
@powerfischihttps://github.com/powerfischi Are you trying to upgrade an existing modoboa installation?
@striderrhttps://github.com/striderr Was it a fresh install?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/modoboa/modoboa/issues/1485#issuecomment-387711962, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMlXVTnuY59AvL4Sa9c_YDjoOiXceDO8ks5twtZUgaJpZM4TwnPk.
@tonioo commented on GitHub (May 9, 2018):
@striderr With an up-to-date installer copy?
@xGruntx commented on GitHub (May 9, 2018):
@tonioo If git clone https://github.com/modoboa/modoboa-installer is up-to-date then yes .
from backports import csv ImportError: No module named backportssame on fresh 9.4 Debian ( VPS from DigitalO )@striderr commented on GitHub (May 9, 2018):
Yes I used the updated installer.
On May 9, 2018, at 10:14 AM, xGruntx <notifications@github.commailto:notifications@github.com> wrote:
@tonioohttps://github.com/tonioo If git clone https://github.com/modoboa/modoboa-installer is up-to-date then yes .
from backports import csv ImportError: No module named backports same on fresh 9.4 Debian ( VPS from DigitalO )
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/modoboa/modoboa/issues/1485#issuecomment-387810518, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMlXVbGePJVRHAu2QlP1zep40gzv7MKXks5twyQJgaJpZM4TwnPk.
@tonioo commented on GitHub (May 10, 2018):
@xGruntx This issue has been fixed with latest versions of the installer but requires to remove any previously downloaded binary package from pypi. To do that on a regular install:
@derfischi commented on GitHub (May 14, 2018):
@tonioo I'm trying a fresh install with a fresh virtualenv.
@tonioo commented on GitHub (May 17, 2018):
@powerfischi And your installer copy is up-to-date?
@derfischi commented on GitHub (May 17, 2018):
@tonioo I'm doing a manual installation because all mailserver components are already in place and configured.
@tonioo commented on GitHub (May 17, 2018):
@powerfischi Looking at your logs, you're using deprecated modoboa packages (ie. modoboa-admin-* packages). Why did you install them?
@derfischi commented on GitHub (May 17, 2018):
@tonioo Maybe because I did't know better... :) I will uninstall them an try again.
@tonioo commented on GitHub (May 24, 2018):
@powerfischi @striderr any news?
@striderr commented on GitHub (May 24, 2018):
I’ve stopped pursuing this for the time being.
@ikatheria commented on GitHub (Sep 17, 2021):
@tonioo --- why my installation is not completing within more than 24 hours .. downloading each and every version of everything and also getting this error "INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking"... using ubuntu 18.4