Closed benjaminbellamy closed 4 months ago
A couple things as I just installed myself.
1) Ensure you have a database username and password for the right database set. My was MySQL and not Postgres. Additionally, a password was not set in the .cfg 2)
This fixed it for me and was able to re-run the interactive setup:
root@mkommar-Alienware-15-R3:/home/mkommar/modoboa-installer# cd /srv/modoboa/
root@mkommar-Alienware-15-R3:/srv/modoboa# ls
env
root@mkommar-Alienware-15-R3:/srv/modoboa# cd env/bin/
root@mkommar-Alienware-15-R3:/srv/modoboa/env/bin# ls
activate change_tz icalendar modoboa-cli pip3.12 priforgepng priplan9topng priweavepng python3.12 rqworker
activate.csh chardetect ics_diff normalizer prichunkpng prigreypng pripnglsch __pycache__ qr sqlformat
activate.fish django-admin jsonschema pip pricolpng pripalpng pripngtopam python rq tldextract
Activate.ps1 html2text modoboa-admin.py pip3 priditherpng pripamtopng prirowpng python3 rqinfo x-wr-timezone
root@mkommar-Alienware-15-R3:/srv/modoboa/env/bin# cd ..
root@mkommar-Alienware-15-R3:/srv/modoboa/env# cd ..
root@mkommar-Alienware-15-R3:/srv/modoboa# source env/bin/activate
(env) root@mkommar-Alienware-15-R3:/srv/modoboa# ls
env
(env) root@mkommar-Alienware-15-R3:/srv/modoboa# pip install --upgrade setuptools
Hope it helps.
@benjaminbellamy This version of Ubuntu is not yet supported by Modoboa installer
@benjaminbellamy I created a branch with a fix. Could you try it please?
@benjaminbellamy I created a branch with a fix. Could you try it please?
I'll try next week. Thank you @tonioo ! 🙏
@tonioo I just tried with the latest installer and still got an error on Ubuntu 24.04... I compared your patch to what I had when I cloned the repository, and everything was there but I had to revert the first patch (modoboa_installer/python.py line 102):
+ def setup_virtualenv(path, sudo_user=None, python_version=2):
- def setup_virtualenv(path, sudo_user=None):
after that the installer worked nicely.
Impacted versions
Steps to reproduce
Full trace
full-trace-with-debug-option.txt
Expected behavior
Install Modoboa.
Video/Screenshot link (optional)