Project

General

Profile

Bug #5746

Restarting the Web GUI with CP active does not restart the CP nginx processes

Added by Jim Pingle over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
Captive Portal
Target version:
Start date:
01/08/2016
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.3
Affected Architecture:
All

Description

When using console option 11 to restart nginx it apparently does not stop the captive portal nginx process(es) so it fails to restart fully:

Enter an option: 11

Restarting webConfigurator...
Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to 0.0.0.0:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to [::]:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to 0.0.0.0:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to [::]:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to 0.0.0.0:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to [::]:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to 0.0.0.0:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to [::]:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to 0.0.0.0:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: bind() to [::]:8002 failed (48: Address already in use)

Message from syslogd@shona at Jan  8 09:49:37 ...
shona nginx: 2016/01/08 09:49:37 [emerg] 60086#0: still could not bind()
 done.

Associated revisions

Revision ac223911 (diff)
Added by Renato Botelho over 3 years ago

Stop all nginx processes before attempt to start new ones. Fixes #5746

History

#1 Updated by Renato Botelho over 3 years ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

#2 Updated by Jim Pingle over 3 years ago

  • Status changed from Feedback to Resolved

Fix works, thanks!

Also available in: Atom PDF