Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install script failed on installing Modoboa step on Ubuntu 24.04 VM #573

Open
duindain opened this issue Oct 1, 2024 · 2 comments
Open

Comments

@duindain
Copy link

duindain commented Oct 1, 2024

Impacted versions

  • Distribution: Ubuntu 24.04
  • Codename: Noble
  • Arch: 64 Bits
  • Database: PostgreSQL

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
image

@tonioo
Copy link
Member

tonioo commented Oct 1, 2024

For some reason, the /srv/modoboa folder is not accessible...
Error: [Errno 13] Permission denied: '/srv/modoboa'

@duindain
Copy link
Author

duindain commented Oct 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants