[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ubuntu-motu
Subject:    stunnel4 starting before network on Xenial
From:       Mike Pastore <mike () oobak ! org>
Date:       2016-07-23 20:25:34
Message-ID: CAP_NaWbtBt5ZLWgkBqPWJWWAWb=r6V=Y1oTULkZvnC0K8D+ckw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi folks,

I'm using stunnel4 to secure Redis replication clients over the public
internet. I've noticed that when I reboot the master server, stunnel4 fails
to start with the following journal entries:

Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [!] bind: Cannot assign
requested address (99)
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [!] Error binding service
[redis] to 159.203.23.157:6379
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [ ] Closing service [redis]
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [ ] Service [redis] closed
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: failed

159.203.23.157 is my public IP address. Guessing that stunnel4 is starting
before the network and is therefore unable to bind to the address, I added
$network to Required-Start in /etc/init.d/stunnel4 and that seems to have
solved the problem.

Thoughts? Can we update the package with this fix? Or is there a better fix?

Thank you,

Mike Pastore
mike@oobak.org

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi folks,</div><div><br></div><div>I&#39;m using stunnel4 to \
secure Redis replication clients over the public internet. I&#39;ve noticed that when \
I reboot the master server, stunnel4 fails to start with the following journal \
entries:</div><div><br></div><div>Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [!] \
bind: Cannot assign requested address (99)</div><div>Jul 23 20:06:57 tor-master-001 \
stunnel4[1446]: [!] Error binding service [redis] to <a \
href="http://159.203.23.157:6379">159.203.23.157:6379</a></div><div>Jul 23 20:06:57 \
tor-master-001 stunnel4[1446]: [ ] Closing service [redis]</div><div>Jul 23 20:06:57 \
tor-master-001 stunnel4[1446]: [ ] Service [redis] closed</div><div>Jul 23 20:06:57 \
tor-master-001 stunnel4[1446]: failed</div><div><br></div><div>159.203.23.157 is my \
public IP address. Guessing that stunnel4 is starting before the network and is \
therefore unable to bind to the address, I added $network to  Required-Start in \
/etc/init.d/stunnel4 and that seems to have solved the problem.  \
<br></div><div><br></div><div>Thoughts? Can we update the package with this fix? Or \
is there a better fix?</div><div><br></div><div>Thank \
you,</div><div><br></div><div>Mike Pastore</div><div><a \
href="mailto:mike@oobak.org">mike@oobak.org</a></div></div>



-- 
Ubuntu-motu mailing list
Ubuntu-motu@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic