Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Unable to connect to server (sorted)  (Read 5443 times)

0 Members and 1 Guest are viewing this topic.

Jaymzanator

  • Guest
Unable to connect to server (sorted)
« on: March 23, 2007, 06:03:36 PM »

Hi there,  i am new to setting up IRCds, I have setup my Unreal3.2 server OK, and i am having trouble linking the services to it,

This is the output i get,
Quote

[Mar 22 17:24:13 2007] Loading IRCD Protocol Module: [unreal32]
[Mar 22 17:24:13 2007] status:
  • [Module, Okay - No Error]
[Mar 22 17:24:13 2007] Loading Encryption Module: [enc_none]
[Mar 22 17:24:13 2007] status:
  • [Module, Okay - No Error]
[Mar 22 17:24:13 2007] Launching Anope into the background
[Mar 22 17:24:13 2007] Anope 1.7.18 (1214) (ircd protocol: UnrealIRCd 3.2+) starting up
[Mar 22 17:24:14 2007] ms_rsend requested unload...
[Mar 22 17:24:14 2007] debug: trying to load core module [ms_rsend]
[Mar 22 17:24:14 2007] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Mar 22 17:24:16 2007] Databases loaded
[Mar 22 17:24:16 2007] Info: Reflecting database records.
[Mar 22 17:24:17 2007] FATAL: Can't connect to server: No such file or directory

Here is the config for the services:
http://pastebin.mozilla.org/5021

Here is the config for the IRCd
http://pastebin.mozilla.org/5022

what can i do?!

[Edited on 24-3-2007 by Jaymzanator]
Logged

katsklaw

  • Guest
(No subject)
« Reply #1 on: March 23, 2007, 07:43:23 PM »

Quote

[Mar 22 17:24:17 2007] FATAL: Can't connect to server: No such file or directory


This means that Unreal is not listening on the port and IP you specified in the RemoteServer directive in services.conf.

As a side note, please search the forum before creating a new thread as this issue is answered countless times. :)

See: http://forum.anope.org/misc.php?action=search&page=1&srchtxt=No%20such%20file%20or%20directory&filter_distinct=yes
Logged

Jaymzanator

  • Guest
(No subject)
« Reply #2 on: March 23, 2007, 10:07:33 PM »

But . the IP addresses are correct. that is what the problem is. |:(
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #3 on: March 23, 2007, 11:50:44 PM »

You've told anope to use port 8065, but your ircd isnt accepting connections on port 8065, and isnt configured to either....
Logged

katsklaw

  • Guest
(No subject)
« Reply #4 on: March 24, 2007, 12:14:44 AM »

Quote
Originally posted by Jaymzanator
But . the IP addresses are correct. that is what the problem is. |:(


You also do not have a link block for services.ircgrid.net

Services also doesn't support ssl or zip so remove them fromthe options block in the link block, infact remove the entire options sub-block

You have Anope connecting on 8065 but don't have a listen block for 8065. It's also best to bind the listen block to IP's instead of to IPADDRANY aka *

so use:

listen 192.168.0.253:8065;

and not
listen *:8065;

Do that on all listen blocks. I appologize for not giving more info in my last post, I somehow overlooked your pastebin links.

Please read this tutorial: http://forum.anope.org/viewthread.php?tid=1267 Perhaps it will help.
Logged

Jaymzanator

  • Guest
(No subject)
« Reply #5 on: March 24, 2007, 09:49:14 AM »

Thanks Katsklaw, after doing that i know get a somewhat different error.

(after doing everthing said in the tutorial)

Quote

[Mar 24 13:06:24 2007] Loading IRCD Protocol Module: [unreal32]
[Mar 24 13:06:24 2007] status:
  • [Module, Okay - No Error]
[Mar 24 13:06:24 2007] Loading Encryption Module: [enc_none]
[Mar 24 13:06:24 2007] status:
  • [Module, Okay - No Error]
[Mar 24 13:06:24 2007] Launching Anope into the background
[Mar 24 13:06:24 2007] Anope 1.7.18 (1214) (ircd protocol: UnrealIRCd 3.2+) starting up
[Mar 24 13:06:25 2007] ms_rsend requested unload...
[Mar 24 13:06:25 2007] debug: trying to load core module [ms_rsend]
[Mar 24 13:06:25 2007] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Mar 24 13:06:25 2007] Databases loaded
[Mar 24 13:06:25 2007] Info: Reflecting database records.
[Mar 24 13:06:25 2007] Connected to Server 1 (192.168.0.253:7070)
[Mar 24 13:06:25 2007] trying to load [cs_appendtopic]
[Mar 24 13:06:25 2007] [cs_appendtopic] Loaded successfully
[Mar 24 13:06:25 2007] status:
  • [Module, Okay - No Error]
[Mar 24 13:06:25 2007] trying to load [cs_enforce]
[Mar 24 13:06:25 2007] status:
  • [Module, Okay - No Error]
[Mar 24 13:06:25 2007] trying to load [ns_maxemail]
[Mar 24 13:06:25 2007] status:
  • [Module, Okay - No Error]
[Mar 24 13:06:25 2007] trying to load [os_info]
[Mar 24 13:06:25 2007] os_info: Loading configuration directives...
[Mar 24 13:06:25 2007] os_info: OSInfoDBName is not defined in Services configuration file, using default os_info.db
[Mar 24 13:06:25 2007] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Mar 24 13:06:25 2007] status:
  • [Module, Okay - No Error]
[Mar 24 13:06:25 2007] trying to load [hs_request]
[Mar 24 13:06:25 2007] hs_request loaded
[Mar 24 13:06:25 2007] status:
  • [Module, Okay - No Error]
[Mar 24 13:06:25 2007] Read error from server: No such file or directory (error num: 2)
[Mar 24 13:06:25 2007] [cs_appendtopic] Unloaded successfully
[Mar 24 13:06:25 2007] hs_request un-loaded

[Edited on 24-3-2007 by Jaymzanator]
Logged

katsklaw

  • Guest
(No subject)
« Reply #6 on: March 24, 2007, 01:40:04 PM »

No such file or directory  is the same error. It can be caused by other scenarios such as there is a firewall between the ircd and services. but it still means that services can not connect to the ircd on the IP and port you specified. So if you do not have a firewall, then your IRCd is still not configured correctly.
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #7 on: March 24, 2007, 03:32:13 PM »

[Mar 24 13:06:25 2007] Read error from server: No such file or directory (error num: 2)

Can also mean the connection was established but there was a configuration issue so the IRCd dropped the connection.

You will need to run Anope in debug mode (using -debug) and look for a line looking liked:

debug: received: ERROR :error message here.

[Edited on 24-3-2007 by Jobe1986]
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Jaymzanator

  • Guest
(No subject)
« Reply #8 on: March 24, 2007, 03:47:56 PM »

sorted now, there was a really "in your face" error which i didnt spot :S

o well thanks for the support thought
Logged

dexter

  • Guest
(No subject)
« Reply #9 on: April 12, 2007, 05:12:00 PM »

Hey bud could u please tell me what u did to fix?
I'm having the same problem here.
Logged

Jaymzanator

  • Guest
(No subject)
« Reply #10 on: May 19, 2007, 11:30:41 AM »

Quote
Originally posted by dexter
Hey bud could u please tell me what u did to fix?
I'm having the same problem here.
yes, it was quite simple.

on anope:

Remoteserver server.ip.of.unreal (connect port - not 6667) "pass"

Servername services.mynetwork.net

on Unreal

Link services.mynetwork.net{
Hostname:server.ip.of.anope
BindIP: server.ip.of.unreal
Port: connect port
};

also you do not need to register the hostnames, they are all virtual, the only time you need to register a record is for something like

irc.mynet.net A-> ip.of.unreal.hub

only for people to connect to

that is basically it.

this is my config

Quote

listen    10.0.1.80:7070;
{   options
   {
         serversonly;
   };
};

link            services.mynet.net
{
   username   *;
   hostname    10.1.0.85;
   bind-ip    10.1.0.80;
   port       7070;
   hub             *;
   password-connect "PASSWORD";
   password-receive "PASSWORD";
   class           servers;
   
};

ulines {
   services.mynet.net;
   stats.mynet.net;
   
};

Logged
Pages: [1]   Go Up