Anope doesnt connect

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

Stat
Posts: 8
Joined: Fri Feb 04, 2005 7:56 am

Anope doesnt connect

Post by Stat »

I have gone through the config files many times, but cant figure out the problem
I am on XP SP2
logs of anope
[Feb 04 02:55:33 2005] Info: Reflecting database records.
[Feb 04 02:55:33 2005] Connected to Server 1 (127.0.0.1:6667)
[Feb 04 02:55:33 2005] Read error from server: Unknown Error: 0
Anope
RemoteServer 127.0.0.1 6667 "pass"
RemoteServer2 localhost 6667 "pass"
RemoteServer3 64.xx.xx.186 6667 "pass"
ServerName "irc.mysite.myftp.org"
ServerDesc "Services for IRC Networks"
ServiceUser "[email protected]"
NetworkDomain "mysite.myftp.org"
NetworkName "Mysite"
Unreal
me
{
name "irc.mysite.myftp.org";
info "Mysite Server";
numeric 1;
};

admin {
"Myname";
"myname";
"[email protected]";
};

allow {
ip *@*;
hostname *@*;
class clients;
maxperip 5;
};


oper myname{
class clients;
from {
userhost [email protected];
};
password "pass";
flags
{
netadmin;
can_zline;
can_gzline;
can_gkline;
global;
};
};

listen *:6667
{
options
{

clientsonly;
};
};

listen *:8067;
listen *:6667;

RemoteServer 127.0.0.1 6667 "pass"
link services.mysite.myftp.org
{
username *;
hostname 127.0.0.1;
bind-ip *;
port 6667;
hub *;
password-connect "pass";
password-receive "pass";
class servers;
options {
/* Note: You should not use autoconnect when linking services */
};
};


ulines {
services.mysite.myftp.org;
stats.mysite.myftp.org;
};

Please help me out with this. I am trying since many days
"ChanServ(or nickserv) Services are currently down. Please try again later." is the msg I get when i type /chanserv help
Last edited by Stat on Fri Feb 04, 2005 8:15 am, edited 2 times in total.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Remove clientsonly from your listen block, or create a different port for anope to use.

*edit* Actually, hold that thought, just noticed you have two listens for 6667? That's probably not a good idea :p . */edit*

Also, if you want /chanserv to work etc, see this FAQ entry: http://www.vulnscan.org/UnrealIRCd/faq/#52 and the one below it, just in case :P .
Stat
Posts: 8
Joined: Fri Feb 04, 2005 7:56 am

Post by Stat »

then which port is good? 6669?
and shall I remove clientsonly.
I mean all services are down
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Ok well first of all, you have two listen blocks for the same IP/port combo, so I'm surprised unreal's not refusing to start :P . Anyway just remove the first listen *:6667, because you have a second one below that should work fine. Try that :P .
Stat
Posts: 8
Joined: Fri Feb 04, 2005 7:56 am

Post by Stat »

fast reply :)
{
options
{

clientsonly;
};
};

listen *:8067;
listen *:6667;
removed first

Edit:I tried removing last 2 remoteservers with 6667, but didn't work and tried disabling firewall
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

listen *:6667
{
options
{
clientsonly;
};
};

listen *:8067;
listen *:6667; <-- dont need this


link services.mysite.myftp.org
{
username *;
hostname 127.0.0.1;
bind-ip *;
port 6667; <- change to 7029
hub *;
password-connect "pass";
password-receive "pass";
class servers;
options {
/* Note: You should not use autoconnect when linking services */
};
};

-
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
Stat
Posts: 8
Joined: Fri Feb 04, 2005 7:56 am

Post by Stat »

I tried that too
But it didn't work
[Feb 04 21:01:07 2005] Databases loaded
[Feb 04 21:01:07 2005] Info: Reflecting database records.
[Feb 04 21:01:07 2005] Connected to Server 1 (127.0.0.1:6667)
[Feb 04 21:01:08 2005] Read error from server: Unknown Error: 0
It says connected and then gives error: Read error from server??
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

Feb 04 21:01:07 2005] Databases loaded
[Feb 04 21:01:07 2005] Info: Reflecting database records.
[Feb 04 21:01:07 2005] Connected to Server 1 (127.0.0.1:6667)
[Feb 04 21:01:08 2005] Read error from server: Unknown Error: 0
[Feb 04 21:01:07 2005] Connected to Server 1 (127.0.0.1:6667) <- 6667? hmm didnt u change it??
port 6667; <- change to 7029
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
Stat
Posts: 8
Joined: Fri Feb 04, 2005 7:56 am

Post by Stat »

[Feb 05 00:50:34 2005] FATAL: Can't connect to server: Connection refused
Damn again another error
RemoteServer 127.0.0.1 7029 "pass"
listen *:6667;
{
options
{

clientsonly;
};
};

listen *:8067;
RemoteServer 127.0.0.1 7029 "pass" --------->>> here 127.0.0.1 or services.irc.mysite.myftp.org (actually neither worked)
{
username myname;
hostname 127.0.0.1;
port *;
bind-ip *;
port 7029;
password-connect "pass";
password-receive "pass";
class servers;
};
{
username myname;
hostname 127.0.0.1;
port *;
bind-ip *;
port 7029;
password-connect "pass";
password-receive "pass";
class servers;
};
ulines {
services.irc.mysite.myftp.org;
};
Last edited by Stat on Sat Feb 05, 2005 11:05 pm, edited 1 time in total.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Change the anope port to 8067 :P . It should work then. Port 6667 doesn't work because your ircd has it marked clientsonly. Anope connects as a server, so it can't connect to a port reserved for users. So you have to have it connect to either a normal port or a serveronly port.
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

does ur ircdconfig have this in it?
RemoteServer 127.0.0.1 6667 "pass"
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
Stat
Posts: 8
Joined: Fri Feb 04, 2005 7:56 am

Post by Stat »

[Feb 05 18:04:18 2005] Anope 1.7.3 (compiled for UnrealIRCd 3.1.1+) starting up
[Feb 05 18:04:19 2005] Databases loaded
[Feb 05 18:04:19 2005] Info: Reflecting database records.
[Feb 05 18:04:19 2005] Connected to Server 1 (127.0.0.1:8067)
[Feb 05 18:04:20 2005] Read error from server: Unknown Error: 0
RemoteServer 127.0.0.1 8067 "pass"

link services.mysite.myftp.org
{
username myname;
hostname 127.0.0.1;
port *;
bind-ip *;
port 7029;
password-connect "pass";
password-receive "pass";
class servers;
};

ulines {
services.irc.site.myftp.org;
};
listen *:6667;
{
options
{

clientsonly;
};
};

listen *:8067;
Anope

Code: Select all

RemoteServer    127.0.0.1 8067 "pass"

ServerDesc  "mysite Server"

ServiceUser "[email protected]"

ServerDesc  "mysite Server"
If in dos I type "services -nofork -debug", I get following few lines
[Feb 05 18:01:16 2005] unknown message from server (:services.irc.mysite.myftp.org NOTICE AUTH :*** Looking up your hostname...)
[Feb 05 18:01:16 2005] debug: Received: :services.irc.mysite.myftp.org NOTICE A
UTH :*** Couldn't resolve your hostname; using your IP address instead
[Feb 05 18:01:16 2005] unknown message from server (:services.irc.mysite.myftp.org NOTICE AUTH :*** Couldn't resolve your hostname; using your IP address inste
ad)
[Feb 05 18:01:17 2005] debug: Received: ERROR :Link denied (No matching link con
figuration) [@127.0.0.1.1438]
[Feb 05 18:01:17 2005] unknown message from server (ERROR :Link denied (No match
ing link configuration) [@127.0.0.1.1438])
[Feb 05 18:01:17 2005] debug: Received: ERROR :Closing Link: [127.0.0.1] (Link d
enied (No matching link configuration))
[Feb 05 18:01:17 2005] unknown message from server (ERROR :Closing Link: [127.0.
0.1] (Link denied (No matching link configuration)))
[Feb 05 18:01:17 2005] Read error from server: Unknown Error: 0
[Feb 05 18:01:17 2005] debug: Sent: :services.mysite.myftp.org SQUIT services.e
agleye.myftp.org :Read error from server: Unknown Error: 0
commandr
Posts: 40
Joined: Tue Jan 04, 2005 3:18 am
Location: Argentina

Post by commandr »

RemoteServer 127.0.0.1 8067 "pass"
P:line
listen *:6667;
{
options
{

clientsonly;
};
};

listen *:8067;

listen *:8067 { options { serversonly; }; };



C:line
link services.mysite.myftp.org
{
username myname;
hostname 127.0.0.1;
port *;
bind-ip *;
port 7029;
password-connect "pass";
password-receive "pass";
class servers;
};
*two ports is wrong

link services.mysite.myftp.org{
username myname;
hostname 127.0.0.1;
bind-ip *;
port 8067;
password-connect "pass";
password-receive "pass";
class servers;
};
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

unknown message from server (ERROR :Link denied (No match
ing link configuration) [@127.0.0.1.1438])
ur ip says @127.0.0.1.1438

thats wrong(?) is the 1438 ment to be a port (to which the . before it ment to be a : or what?)

looks like its refusing the connection becuz the " link block denied " doesnt find a IP which is " 127.0.0.1.1438 "

if u change ur Link block to this
link services.mysite.myftp.org {
username myname;
hostname 127.0.0.1.1438;
port *;
bind-ip *;
port 8067;
password-connect "pass";
password-receive "pass";
class servers;
};

listen *:8067 { options { serversonly; }; };
and change the ip/port in anope to match these
127.0.0.1.1438 8067
like i said, the ip is looking funny, maybe 1438 is ment to be a port but sumhow its not being done properly. the debug helped alot ;)
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

White_Magic wrote: looks like its refusing the connection becuz the " link block denied " doesnt find a IP which is " 127.0.0.1.1438 "

if u change ur Link block to this
...

and change the ip/port in anope to match these
127.0.0.1.1438 8067
like i said, the ip is looking funny, maybe 1438 is ment to be a port but sumhow its not being done properly. the debug helped alot ;)
That won't solve anything. "hostname" does not mean "ip.port" it means you specify either a hostname or an IP. If you specify a port, it will fail.


The problem here is quite obvious. In the Anope config he has, ServerName "irc.mysite.myftp.org" but in the Unreal config, suddenly he has services.mysite.myftp.org. So Anope is saying it's name is irc.mysite.myftp.org, and then Unreal is looking for services.mysite.myftp.org. They don't match, therefore it can't link. The name Anope supplies and the name Unreal expects must be the same.

That's problem #1. #2, you've declared port 6667 as clients only, then you try to connect a server to it. That's not going to work.
-- codemastr
Locked