You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full trace using --debug option or current behaviour
Installing modoboa
Reading package lists...
Building dependency tree...
Reading state information...
postgresql is already the newest version (16+257build1.1).
postgresql-server-dev-all is already the newest version (257build1.1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Synchronizing state of postgresql.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; preset: enabled)
Active: active (exited) since Fri 2024-09-27 08:18:07 UTC; 2s ago
Main PID: 62128 (code=exited, status=0/SUCCESS)
CPU: 846us
Sep 27 08:18:07 mail.mydomain.com systemd[1]: Starting postgresql.service - PostgreSQL RDBMS...
Sep 27 08:18:07 mail.mydomain.com systemd[1]: Finished postgresql.service - PostgreSQL RDBMS.
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.10ubuntu1).
python3-dev is already the newest version (3.12.3-0ubuntu2).
libxml2-dev is already the newest version (2.9.14+dfsg-1.3ubuntu3).
libxslt1-dev is already the newest version (1.1.39-0exp1build1).
libjpeg-dev is already the newest version (8c-2ubuntu11).
librrd-dev is already the newest version (1.7.2-4.1ubuntu3).
rrdtool is already the newest version (1.7.2-4.1ubuntu3).
libffi-dev is already the newest version (3.4.6-1build1).
cron is already the newest version (3.0pl1-184ubuntu2).
libssl-dev is already the newest version (3.0.13-0ubuntu3.4).
redis-server is already the newest version (5:7.0.15-1build2).
supervisor is already the newest version (4.2.5-1).
pkg-config is already the newest version (1.8.1-2build1).
libcairo2-dev is already the newest version (1.18.0-3build1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
User modoboa already exists, skipping creation but please make sure the /srv/modoboa directory exists.
Reading package lists...
Building dependency tree...
Reading state information...
python3-venv is already the newest version (3.12.3-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Error: [Errno 13] Permission denied: '/srv/modoboa'
-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory
-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory
-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory
Failed to get version of modoboa. Output is: b'-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory\n'
This was the second install attempt with the --debug option to find what went wrong the first time but failed at the same point
Expected behavior
Working install script on vanilla Ubuntu VM
Video/Screenshot link (optional)
VM hardware
The text was updated successfully, but these errors were encountered:
That folder doesn't exist so is the script creating it with a command that doesn't work in ubuntu 24.04?
I tried creating the folder myself and when that failed the env and bin sub folders too, but that also failed
Ok creating the folder with no subfolders then changing the owner to modoboa:modoboa has allowed the script to complete successfully
Should I close this issue? there is an issue with the installer script but with the extra steps its resolvable
The debug output does show this message
"User modoboa already exists, skipping creation but please make sure the /srv/modoboa directory exists."
Perhaps the only action needed is to add in that the directory needs to be owned by the modoboa user not root
Impacted versions
VM on Proxmox
Python 3.12.3
Steps to reproduce
Run installer with default arguments
git clone https://github.com/modoboa/modoboa-installer
cd modoboa-installer
sudo ./run.py --interactive --debug mydomain.com
Full trace using --debug option or current behaviour
Installing modoboa
Reading package lists...
Building dependency tree...
Reading state information...
postgresql is already the newest version (16+257build1.1).
postgresql-server-dev-all is already the newest version (257build1.1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Synchronizing state of postgresql.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; preset: enabled)
Active: active (exited) since Fri 2024-09-27 08:18:07 UTC; 2s ago
Main PID: 62128 (code=exited, status=0/SUCCESS)
CPU: 846us
Sep 27 08:18:07 mail.mydomain.com systemd[1]: Starting postgresql.service - PostgreSQL RDBMS...
Sep 27 08:18:07 mail.mydomain.com systemd[1]: Finished postgresql.service - PostgreSQL RDBMS.
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.10ubuntu1).
python3-dev is already the newest version (3.12.3-0ubuntu2).
libxml2-dev is already the newest version (2.9.14+dfsg-1.3ubuntu3).
libxslt1-dev is already the newest version (1.1.39-0exp1build1).
libjpeg-dev is already the newest version (8c-2ubuntu11).
librrd-dev is already the newest version (1.7.2-4.1ubuntu3).
rrdtool is already the newest version (1.7.2-4.1ubuntu3).
libffi-dev is already the newest version (3.4.6-1build1).
cron is already the newest version (3.0pl1-184ubuntu2).
libssl-dev is already the newest version (3.0.13-0ubuntu3.4).
redis-server is already the newest version (5:7.0.15-1build2).
supervisor is already the newest version (4.2.5-1).
pkg-config is already the newest version (1.8.1-2build1).
libcairo2-dev is already the newest version (1.18.0-3build1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
User modoboa already exists, skipping creation but please make sure the /srv/modoboa directory exists.
Reading package lists...
Building dependency tree...
Reading state information...
python3-venv is already the newest version (3.12.3-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Error: [Errno 13] Permission denied: '/srv/modoboa'
-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory
-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory
-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory
Failed to get version of modoboa. Output is: b'-bash: line 1: /srv/modoboa/env/bin/pip: No such file or directory\n'
This was the second install attempt with the --debug option to find what went wrong the first time but failed at the same point
Expected behavior
Working install script on vanilla Ubuntu VM
Video/Screenshot link (optional)
VM hardware
The text was updated successfully, but these errors were encountered: