docs: nginx will not install correctly via APT

Bug #1670045 reported by Chris Sharp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSRF
Fix Released
Medium
Unassigned

Bug Description

On Ubuntu 16.04, following the instructions in the README, installing nginx before changing Apache's listening ports fails with the following:

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.

systemctl status nginx.service:

Mar 04 15:13:09 xenial nginx[15773]: nginx: [emerg] listen() to [::]:80, backlog 511 fai
Mar 04 15:13:10 xenial nginx[15773]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511
Mar 04 15:13:10 xenial nginx[15773]: nginx: [emerg] listen() to [::]:80, backlog 511 fai
Mar 04 15:13:10 xenial nginx[15773]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511
Mar 04 15:13:10 xenial nginx[15773]: nginx: [emerg] listen() to [::]:80, backlog 511 fai
Mar 04 15:13:11 xenial nginx[15773]: nginx: [emerg] still could not bind()
Mar 04 15:13:11 xenial systemd[1]: nginx.service: Control process exited, code=exited st
Mar 04 15:13:11 xenial systemd[1]: Failed to start A high performance web server and a r
Mar 04 15:13:11 xenial systemd[1]: nginx.service: Unit entered failed state.
Mar 04 15:13:11 xenial systemd[1]: nginx.service: Failed with result 'exit-code'.
 ESCOC

This happens because ports 80 and 443 are already in use by Apache.

Branch on the way.

Revision history for this message
Chris Sharp (chrissharp123) wrote :
Revision history for this message
Ben Shum (bshum) wrote :

Fix pushed to openSRF master and backported to rel_2_5 for next release. Thanks Chris, works for me!

Changed in opensrf:
milestone: none → 2.5.0
status: New → Fix Committed
importance: Undecided → Medium
Galen Charlton (gmc)
Changed in opensrf:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.