Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: Pim Peters on August 21, 2013, 05:24:18 PM

Title: Can't connect to server: Connection refused
Post by: Pim Peters on August 21, 2013, 05:24:18 PM
Getting a connection refushed with this settings:

Unrealircd.conf:
Code: [Select]
#This is the services link block
/*
link            services.disgeae.nl
{
        username        *;
        hostname        127.0.0.1;
        bind-ip         *;
        port            6667;
        hub             *;
        password-connect "pass";
        password-receive "pass";
        class           servers;
};
*/

#This is the ulines block
ulines {
        services.disgeae.nl;
};

services.conf:
Code: [Select]
RemoteServer    127.0.0.1 6667 "pass"

ServerName  "services.disgeae.nl"
ServerDesc  "Disgeae's network"
ServiceUser "services@disgeae.nl"

And this is in the logs:
Code: [Select]
[Aug 21 18:19:34 2013] Every UserKey must be different. It's for YOUR safety! Remember that!
[Aug 21 18:19:34 2013] Loading IRCD Protocol Module: [unreal32]
[Aug 21 18:19:34 2013] status: [0][Module, Okay - No Error]
[Aug 21 18:19:34 2013] Loading Encryption Module: [enc_none]
[Aug 21 18:19:34 2013] status: [0][Module, Okay - No Error]
[Aug 21 18:19:34 2013] Anope 1.8.8 (3112) (ircd protocol: UnrealIRCd 3.2+) starting up
[Aug 21 18:19:34 2013] MSMemoReceipt not enabled in services.conf
[Aug 21 18:19:34 2013] Databases loaded
[Aug 21 18:19:34 2013] Info: Reflecting database records.
[Aug 21 18:19:34 2013] FATAL: Can't connect to server: Connection refused

I don't get what I'm doing wrong..
Title: Re: Can't connect to server: Connection refused
Post by: Charles Kingsley on August 21, 2013, 05:27:36 PM
At a guess I'll say your ircd isn't listening on 127.0.0.1 port 6667.
Title: Re: Can't connect to server: Connection refused
Post by: Pim Peters on August 21, 2013, 05:55:52 PM
Code: [Select]
listen         *:8067;
listen         *:6667;

This?
Title: Re: Can't connect to server: Connection refused
Post by: Pim Peters on August 21, 2013, 06:25:32 PM
Fixed it by restarting unreal, getting new one:

Code: [Select]
[Aug 21 19:24:57 2013] Every UserKey must be different. It's for YOUR safety! Remember that!
[Aug 21 19:24:57 2013] Loading IRCD Protocol Module: [unreal32]
[Aug 21 19:24:57 2013] status: [0][Module, Okay - No Error]
[Aug 21 19:24:57 2013] Loading Encryption Module: [enc_none]
[Aug 21 19:24:57 2013] status: [0][Module, Okay - No Error]
[Aug 21 19:24:57 2013] Anope 1.8.8 (3112) (ircd protocol: UnrealIRCd 3.2+) starting up
[Aug 21 19:24:58 2013] MSMemoReceipt not enabled in services.conf
[Aug 21 19:24:58 2013] Databases loaded
[Aug 21 19:24:58 2013] Info: Reflecting database records.
[Aug 21 19:24:58 2013] Connected to Server 1 (127.0.0.1:6667)
[Aug 21 19:24:58 2013] trying to load [cs_appendtopic]
[Aug 21 19:24:58 2013] [cs_appendtopic] Loaded successfully
[Aug 21 19:24:58 2013] status: [0][Module, Okay - No Error]
[Aug 21 19:24:58 2013] trying to load [cs_enforce]
[Aug 21 19:24:58 2013] status: [0][Module, Okay - No Error]
[Aug 21 19:24:58 2013] trying to load [ns_maxemail]
[Aug 21 19:24:58 2013] status: [0][Module, Okay - No Error]
[Aug 21 19:24:58 2013] trying to load [os_info]
[Aug 21 19:24:58 2013] os_info: Loading configuration directives...
[Aug 21 19:24:58 2013] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Aug 21 19:24:58 2013] status: [0][Module, Okay - No Error]
[Aug 21 19:24:58 2013] trying to load [hs_request]
[Aug 21 19:24:58 2013] hs_request loaded
[Aug 21 19:24:58 2013] status: [0][Module, Okay - No Error]
[Aug 21 19:24:58 2013] Error: Your IRCD's link block may not be setup correctly, please check unrealircd.conf
[Aug 21 19:24:58 2013] Error: Your IRCD's link block may not be setup correctly, please check unrealircd.conf
[Aug 21 19:24:58 2013] Read error from server: Broken pipe (error num: 32)
[Aug 21 19:24:58 2013] [cs_appendtopic] Unloaded successfully
[Aug 21 19:24:58 2013] hs_request un-loaded[/cpde]
Title: Re: Can't connect to server: Connection refused
Post by: Charles Kingsley on August 21, 2013, 06:43:10 PM
http://www.anope.org/ilm.php
Title: Re: Can't connect to server: Connection refused
Post by: Pim Peters on August 21, 2013, 06:51:29 PM
Did that, still getting error..

Getting this one debug:

Code: [Select]
[Aug 21 19:51:56.733916 2013] debug: Received: ERROR :Link denied (No matching link configuration) [@127.0.0.1.50386]
[Aug 21 19:51:56.734010 2013] debug: Link denied (No matching link configuration) [@127.0.0.1.50386]
[Aug 21 19:51:56.734042 2013] Error: Your IRCD's link block may not be setup correctly, please check unrealircd.conf
[Aug 21 19:51:56.734348 2013] debug: Received: ERROR :Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Aug 21 19:51:56.734380 2013] debug: Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Aug 21 19:51:56.734405 2013] Error: Your IRCD's link block may not be setup correctly, please check unrealircd.conf
[Aug 21 19:51:56.734662 2013] debug: Emitting event "db_saving" (1 args)
Title: Re: Can't connect to server: Connection refused
Post by: CrazyCat on October 07, 2013, 01:47:41 PM
Anything in your unreal log ?

What about your allow configuration ?
I'm quite doubtful about the port you use for the link (same for users and linked servers ?)
Title: Re: Can't connect to server: Connection refused
Post by: VisioN on October 07, 2013, 02:04:21 PM
actually it would be helpful if you could paste the following things together:

- The Unreal's link block
- The remoteserver part from services.conf
- The services server name
- The listen block

99% the error is in one of these.
Title: Re: Can't connect to server: Connection refused
Post by: katsklaw on October 07, 2013, 03:21:19 PM
[Aug 21 19:51:56.734348 2013] debug: Received: ERROR :Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Aug 21 19:51:56.734380 2013] debug: Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Aug 21 19:51:56.734405 2013] Error: Your IRCD's link block may not be setup correctly, please check unrealircd.conf