Nginx won't start on Omnibus Install - (possibly complexity on my end)

Summary
Nginx fails to start during omnibus install, due to Port 80 already being in use

Steps to reproduce
Installing on Ubuntu 24.04.1
following guide on Install Mattermost Omnibus - Mattermost documentation

Initial Failure due to i386/amd64 architecture, fixed by modifying mattermost.list, pgdb.list and nginx.list to include arch=amd64

This allows install to complete, until last stages.

Expected behavior
Install as per instructions

Observed behavior
Failed with;
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Unable to start service nginx: Job for nginx.service failed because the control process exited with error code.\nSee "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.\n”}

systemctl status nginx.service shows;
nginx[44341]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx[44341]: nginx: [emerg] still could not bind()

This is expected, as this ubuntu is already hosting a web server on port 80.

How can I repeat the final stages of setup, while providing a seperate port number?
also, I operate my own CA on the network; is there an easy way to “untangle” the sue of LetsEncrypt and certbot so that I can use my own manually issued certs?

There might be an mmomni option to change that, or just find the nginx.conf file and set a different port in it.

1 Like