broken pipe with ircservices

The UnrealIRCd team does not officially provide support for any services packages that you may be using or want to use. This forum is provided so the community can help each other with services issues.

Moderator: Supporters

Locked
cheesegrits
Posts: 3
Joined: Sat Jun 10, 2006 9:37 pm

broken pipe with ircservices

Post by cheesegrits »

Apologies in advance if this is a dumb question, but I've read all the appropriate FAQs, googled and searched on this BB. But I'm a complete ircd/services noob, so it's very possible I'm making a stupid mistake.

I'm trying to get ircservices (5.0.57) connected to my unrealircd (3.2.4), both are vanilla, fresh out of the box, minimally configured from the sample config files, with just what look like the essential local changes to get things going.

They are both running on the same machine, although I'm using different hostnames. Appropriate aliases to the same server A record are in the DNS for both irc.my.domain and services.my.domain.

Here's what I'm getting in the ircservices.log when I fire up it up. Note that I've changed my domain name to my.domain to protect the innocent, and I'm just showing the few lines before and after the "broken pipe" message, everything else looks kosher:

Code: Select all

[Jun 10 16:10:30.661803 2006] debug: Sent: NICK HelpServ 1 1149973830 vb-admin my.domain services.my.domain 0 +Sqd my.domain :Help Server
[Jun 10 16:10:30.662068 2006] debug: Received: :irc.my.domain NOTICE AUTH :*** Found your hostname (cached)
[Jun 10 16:10:30.662627 2006] debug: Saving databases
[Jun 10 16:10:30.667889 2006] Read error from server: Broken pipe
[Jun 10 16:10:30.668143 2006] debug: Unloading module `misc/xml-import'
After unloading the rest of the modules, services and the associated httpd promptly die off. There is nothing in the unreal log.

My unrealircd.conf Link and Uline entries read:

Code: Select all

link            services.my.domain
{
        username        [email protected];
        hostname        127.0.0.1;
        bind-ip         *;
        port            7777;
        hub             *;
        password-connect        "some.password";
        password-receive        "some.password";
        class           servers;
        options {
        };
};

ulines {
        127.0.0.1;
};
My ircservices.conf has ...

Code: Select all

RemoteServer    127.0.0.1 7777 "some.password"
ServerName      "services.my.domain"
ServiceUser     "[email protected]"
Netstat confirms that the ircd is listening on 7777. It's running on seperate ports for clients and the services httpd.

The *.db services files are being written to, with the modification date updating each time I try and run services, and all file permissions look good.

Any ideas gratefully received!

-- hugh
cheesegrits
Posts: 3
Joined: Sat Jun 10, 2006 9:37 pm

Some progress!

Post by cheesegrits »

I didn't change anything, but decided to completely kill off and restart the ircd rather than just HUP'ing it after the config changes. My error has now changed to the much more useful:

Code: Select all

[Jun 10 17:25:21.610706 2006] debug: Received: ERROR :Link denied (No matching link configuration) [@127.0.0.1.34470]
[Jun 10 17:25:21.611340 2006] debug: Received: ERROR :Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
This at least gives me something to go on. I've obviously moofed the Link block on the ircd config. Looks OK to me (see previous post), but obviously that's not what unreal wants. I'll follow up as and when I find out what I got wrong. Although if anyone still wants to help ... have at it!

-- hugh
cheesegrits
Posts: 3
Joined: Sat Jun 10, 2006 9:37 pm

Post by cheesegrits »

Success!!

Code: Select all

[Jun 10 17:59:00.583420 2006] debug: Received: :bb.alaweb.com SMO o :(link) Link irc.my.domain -> my.domain [@127.0.0.1.7778] established
I found this rather nifty link block maker (http://www.anope.org/~heinz/ilm.php?p=lm) and used it to generate the following block for services.my.domain:

Code: Select all

link services.my.domain
{
 username [email protected];
 hostname 127.0.0.1;
 port *;
 bind-ip 127.0.0.1;
 password-connect "some.password";
 password-receive "some.password";
 class servers;
};

ulines {
 services.my.domain;
};
However, I had to change the username to * to get it to work. but that's something I can work out, now I can actually connect!

I just hope this little discussion with myself helps somebody else some day! Whoever you are ... I know how you feel. Oh, and to everyone who has posted similar problems on this forum, then followed up with "never mind I fixed it" without telling us how you fixed it: Gee, thanks!

-- hugh
Locked