[hybrid] Clients can't connect (register) on Ubuntu 12.04LTS system

Amrit Panesar apanesar at 4195tech.com
Fri Jul 12 04:44:00 EDT 2013


Haha indeed, my pleasure. In a perfect world the standard cached nameserver should work right out of the box, but that doesn't seem to be the case with Debian/Ubuntu boxes (and probably others).

I believe the bug sits somewhere in the system DNS resolving functions in that the default timeout is set higher than the registration timeout for the IRCD so attempting to find the hostname for an IP takes long enough for the connection to stale out.

But hopefully this gets cached and others will see it in the future :)

Thanks

-AP

Sent from my iPhone

On Jul 12, 2013, at 1:22 AM, David Smith <dfluff76+hybrid at gmail.com> wrote:

> FIXED!
> 
> Thank you Amrit!  Although I had a handful of hosts in my /etc/hosts file, I seemingly hadn't correctly set up resolv.conf (although I don't understand why 127.0.0.1 didn't work).  I'm sure I'd done this the first time around, but since I did a complete re-install of the box to try and get this working, I had literally installed ircd-hybrid as the first thing I did, and hadn't checked the basics (I case of making the machine run before it could walk, perhaps.. although my first attempt definitely did have DNS working, but we'll never know why that didn't work).
> 
> The give-away, now that it's working is that after the previously stalled "No Ident response" line, I now get
> 09:16 !copstick4 *** No Ident response
> 09:16 !copstick4 *** Found your hostname
> 09:16 -!- Welcome to the debian Internet Relay Chat Network Dave_
> 
> ...showing that hostname lookup was what was halting it.  (For the record Amrit, I couldn't find an option in the config to disable hostname lookups).
> 
> This is all working with a very basic stock config file, and without SSL compiled in... now that is working I will start piling on the more complex stuff when I get home from work tonight.
> 
> Finally, for any newbies googling this, the complete fix was just a case of adding:
>         dns-nameservers 10.9.2.99
> ...to the eth0 section of my /etc/network/interfaces file and rebooting, so that /etc/resolv.conf got the right nameserver written to it when networking came up.
> 
> Thanks everyone for your help and suggestions.  I'm almost embarrassed at what a basic error I had made.  I'll go back to building up a more complex config later on.
> 
> Cheers,
> --Dave
> 
> 
> 
> 
> 
> On 12 July 2013 08:37, Amrit Panesar <apanesar at 4195tech.com> wrote:
>> I've had a similar issue before and if my memory serves me correctly, there is an option to disable hostname lookups, my recommendation is to perhaps disable hostname lookups or ensure that your system-wide DNS settings are set correctly. Google DNS works well for me (8.8.8.8/8.8.4.4)
>> 
>> -AP
>> 
>> Sent from my iPhone
>> 
>> On Jul 12, 2013, at 12:23 AM, David Smith <dfluff76+hybrid at gmail.com> wrote:
>> 
>>> I have tried several machines, including connecting locally from the problem machine on 127.0.0.1.  All fail in the same way.  All machine are able to connect to other irc servers without problem, both on the local LAN and out on the internet.
>>> 
>>> --Dave
>>> 
>>> 
>>> On 12 July 2013 03:46, Jack L. <xxjack12xx at gmail.com> wrote:
>>>> Have you tried on another machine? Maybe it's a client side firewall?
>>>> 
>>>> On Thu, Jul 11, 2013 at 7:28 PM, rjvahc at googlemail.com
>>>> <rjvahc at googlemail.com> wrote:
>>>> > I know this problem, but there is no solution in few words. You must dig
>>>> > deep to get out what's the problem this day, reading logs, modifying
>>>> > configs in small steps and so on. I could try to help going into machine
>>>> > if it is clean with no sensible data, but no idea what it could be with
>>>> > the text you provided. By the way, sentences with "...Ident response"
>>>> > are kinda only thing an IRC server says when having problems, it's like
>>>> > "* Ident response" = "I got problems", with no details what problems it
>>>> > could be.
>>>> >
>>>> >
>>>> > В Чтв, 11/07/2013 в 21:43 +0100, David Smith пишет:
>>>> >> Hi,
>>>> >>
>>>> >> I'm having a headache of a time building a PC to replace my previous
>>>> >> server box, which has been running ircd-hybrid for many years.
>>>> >>
>>>> >>
>>>> >> The new box is a 64bit machine, with Ubuntu 12.04LTS 64-bit server
>>>> >> edition installed.
>>>> >>
>>>> >> I've installed ircd-hybrid, and moved my old config across, but when
>>>> >> that failed to work, I went back to basics, and used the provided
>>>> >> ircd.conf, with only the server IP and the "havent_read_conf" setting
>>>> >> changed (i.e. no server passwords or any other obvious gotchas).
>>>> >>
>>>> >> The problem is that whenever any client connects, I get the following:
>>>> >> 21:20 -!- Irssi: Connection to 10.9.2.1 established
>>>> >> 21:20 !hybrid7.debian.local *** Looking up your hostname...
>>>> >> 21:20 !hybrid7.debian.local *** Checking Ident
>>>> >> 21:20 !hybrid7.debian.local *** No Ident response
>>>> >>
>>>> >>
>>>> >> ....but then *nothing* else.  I can leave it for many minutes, (5...
>>>> >> 10...), after which the connection sometimes drops out, sometimes
>>>> >> doesn't, depending on the client.
>>>> >>
>>>> >>
>>>> >> I have tried through the 127.0.0.1 address, and through the eth0 LAN
>>>> >> address.  I have tried clients on other machines.  There is no
>>>> >> firewall in the way (nothing in "iptables -L").
>>>> >>
>>>> >>
>>>> >>
>>>> >> Don't be fooled by the "No Ident response" final line... I have tried
>>>> >> installing an ident server, so that it DID get an ident response, and
>>>> >> it halted at just the same point.
>>>> >>
>>>> >>
>>>> >>
>>>> >> The version installed here is the stock from Ubuntu12.04LTS,
>>>> >> 7.2.2.dfsg.2-6.3 but I have tried other versions from ealier/later
>>>> >> Ubuntu distros.  I think I've also tired an 8.x version (..I've tried
>>>> >> so many things, I've lost track..), and all of those that I have
>>>> >> managed to install/compile successfully have behaved the in the same
>>>> >> way.  My original attempt was a self-compiled .deb with SSL enabled,
>>>> >> but, again, that did not work, although the very same .deb did work on
>>>> >> another 12.04LTS 64-bit machine.  I've even formatted the box, and
>>>> >> done a fresh OS install followed by an apt-get install of hybrid-ircd,
>>>> >> and still get the same results!
>>>> >>
>>>> >>
>>>> >> I have only found a handful of posts describing this problem on
>>>> >> Google, and of those, one ended in the advice of "use another ircd",
>>>> >> and the other threads just went cold, or never got a first response.
>>>> >> I cannot use another ircd, since I'm joining this to other
>>>> >> hybrid-ircds on other boxes.
>>>> >>
>>>> >>
>>>> >> (eg http://ubuntuforums.org/showthread.php?t=1432177  and
>>>> >> http://bit.ly/18QqdHs  both sound like my problem, but with no
>>>> >> solutions).
>>>> >>
>>>> >>
>>>> >>
>>>> >> So.. have you guys come across anything like this?  Or, what can I do
>>>> >> to help diagnose the problem?
>>>> >>
>>>> >>
>>>> >> Many thanks,
>>>> >>
>>>> >> --Dave
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >
>>>> 
>>> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ircd-hybrid.org/pipermail/hybrid/attachments/20130712/57770635/attachment.html>


More information about the hybrid mailing list