Bug 1381580 - znc fails to connect to IRC servers after reboot
Summary: znc fails to connect to IRC servers after reboot
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: znc
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Bebout
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-04 13:20 UTC by Jeff Layton
Modified: 2017-12-12 10:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:04:40 UTC
Type: Bug


Attachments (Terms of Use)

Description Jeff Layton 2016-10-04 13:20:43 UTC
I have a znc server running on an ARM-based machine. Whenever I reboot that machine I always get messages like this from "*status":

    <*status> Disconnected from IRC (Can't resolve server hostname). Reconnecting...

...but it never succeeds in reconnecting. If I then log into the machine and do a systemctl restart znc, it comes back to life. The host does use dynamically configured addresses, so maybe znc is coming up before the network interfaces are fully set up?

Let me know if you need other info to help diagnose this.

Comment 1 Randy Barlow 2016-11-10 05:53:18 UTC
I am also seeing this problem on Fedora 25. I believe the problem is that the unit file has:

After=network.target

instead of:

After=network-online.target

I think that simple change will likely solve the problem.


https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

Comment 2 Randy Barlow 2016-11-10 05:56:49 UTC
You may also need a Requires=network-online.target line.

Comment 3 Jeff Layton 2016-11-10 11:28:24 UTC
Alas, no...that doesn't seem to help in my case. I added this to the znc.service file Unit section:

    Wants=network-online.target
    After=network-online.target

...per the systemd.special manpage, but it still had the same behavior after a reboot.

Comment 4 Randy Barlow 2016-11-10 21:39:43 UTC
Hello Jeff,

It might be that you need Requires= as well.

Comment 5 Eli Young 2016-12-16 22:10:43 UTC
As I posted in Bug 1405580:

I'm not sure that this is necessarily the problem. I'm running znc-1.6.3-6.el7.x86_64 and have two networks configured, both with hostnames. If I restart the service, one network connects immediately and the other (which incidentally is Freenode) does the same thing you describe.

Comment 6 Milan Zink 2017-04-24 13:22:51 UTC
Hi,

we are experiencing the same issue (znc-1.6.3). Users are able to "workaround" it with adding a secondary server, it can even be the IP address of the same server. 

ZNC fails to connect to server.example.com, but it can connect to X.Y.W.Z (IP of server.example.com)

--
Milan

Comment 7 Fedora End Of Life 2017-11-16 19:54:07 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Elliott Sales de Andrade 2017-11-16 20:32:08 UTC
This *may* be working now in the latest package in Fedora 26. I'm not sure if 25 is fixed.

Comment 9 Jeff Layton 2017-11-16 21:38:16 UTC
Yes, I just patched and rebooted and it came right back. Seems to be ok now.

Comment 10 Fedora End Of Life 2017-12-12 10:04:40 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.