modoboa / modoboa-installer

An installer for Modoboa
MIT License
262 stars 138 forks source link

Installer breaks #482

Closed nfguide closed 1 year ago

nfguide commented 1 year ago

Impacted versions

Steps to reproduce

Fresh install on fresh machine sudo ./run.py --stop-after-configfile-check domain.xyz

sudo nano installer.cfg - mysql, local SSL (although issue happens with letsencrypt as well)

sudo ./run.py --interactive domain.xyz

Rerun with --debug switch

sudo ./run.py --debug --interactive domain.xyz

Full trace using --debug option or current behaviour

Traceback (most recent call last): File "/home/timv/modoboa-installer/./run.py", line 257, in main(sys.argv[1:]) File "/home/timv/modoboa-installer/./run.py", line 241, in main scripts.install(appname, config, args.upgrade, args.restore) File "/home/timv/modoboa-installer/modoboa_installer/scripts/init.py", line 29, in install getattr(script, appname.capitalize())(config, upgrade, archive_path).run() File "/home/timv/modoboa-installer/modoboa_installer/scripts/base.py", line 191, in run self.post_run() File "/home/timv/modoboa-installer/modoboa_installer/scripts/amavis.py", line 96, in post_run install("clamav", self.config, self.upgrade, self.archive_path) File "/home/timv/modoboa-installer/modoboa_installer/scripts/init.py", line 29, in install getattr(script, appname.capitalize())(config, upgrade, archive_path).run() File "/home/timv/modoboa-installer/modoboa_installer/scripts/base.py", line 194, in run self.restart_daemon() File "/home/timv/modoboa-installer/modoboa_installer/scripts/base.py", line 181, in restart_daemon system.enable_and_start_service(name) File "/home/timv/modoboa-installer/modoboa_installer/system.py", line 57, in enable_and_start_service code, output = utils.exec_cmd("service {} status".format(name)) File "/home/timv/modoboa-installer/modoboa_installer/utils.py", line 75, in exec_cmd process.wait() File "/usr/lib/python3.9/subprocess.py", line 1189, in wait return self._wait(timeout=timeout) File "/usr/lib/python3.9/subprocess.py", line 1919, in _wait (pid, sts) = self._try_wait(0) File "/usr/lib/python3.9/subprocess.py", line 1877, in _try_wait (pid, sts) = os.waitpid(self.pid, wait_flags)

Expected behavior

Installation to finish

Video/Screenshot link (optional)

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.