Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: Vineet on January 28, 2010, 11:23:14 AM

Title: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 11:23:14 AM
I'M TRYING TO LINK ANOPE SERVICES AND UNREALIRCD SERVER BOTH INSTALLED ON SAME MACHINE. HOWEVER, I'M GETTING ERROR (DETAILS BELOW). BEEN THROUGH ALL THE SUPPORT ISSUES AND DOUBLE CHECKED EVERYTHING BUT THE ERROR RE OCCURS.

ANY HELP WOULD BE APPECIATED. IS THERE ANY SETTING I AM MISSING.

***************************
System Information:
***************************
UnrealIRCD ver 3.2.8.1
Anope ver 1.8.3
OS Windows XP Professional

***************************
Issue:
***************************
Anope services do not start and give following error:

D:\Program Files\Anope>anope.exe -nofork

[Jan 28 16:29:06 2010] Anope 1.8.3 (2773) (ircd protocol: UnrealIRCd 3.2+) starting up
[Jan 28 16:29:08 2010] MSMemoReceipt not enabled in services.conf
[Jan 28 16:29:08 2010] ms_rsend requested unload...
[Jan 28 16:29:08 2010] debug: trying to load core module [ms_rsend]
[Jan 28 16:29:08 2010] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Jan 28 16:29:11 2010] Databases loaded
[Jan 28 16:29:11 2010] Info: Reflecting database records.
[Jan 28 16:29:11 2010] FATAL: Can't connect to server: No such file or directory


***************************
Unrealircd.conf:
***************************
/* This is the block you need for linking servers :: */
link            services.roxnet.com
{
   username   *;
   hostname    kaulv.inforte.com;
   bind-ip    *;
   port       6667;
   hub             *;
   password-connect "welcome";
   password-receive "welcome";
   class           servers;
      options {
         /* Note: You should not use autoconnect when linking services
         autoconnect;
         ssl;
         */
         zip;
         
      };
};

ulines {
   services.roxnet.com;
   /* stats.roxnet.org; */
};

listen         *:6667;
   options
      {
         /* ssl; */
         serversonly;
      };


***************************
services.conf:
***************************
RemoteServer    kaulv.inforte.com 6667 "welcome"

ServerName  "services.roxnet.com"

Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Charles Kingsley on January 28, 2010, 11:26:40 AM
Anope doesn't support zip linking either.

RemoteServer    kaulv.inforte.com 6667 "welcome"

Does that resolve on your box?

Try the IP.
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 11:36:10 AM
Hi,

1. Removed the zip option:

link            services.roxnet.com
{
   username   *;
   hostname    kaulv.inforte.com;
   bind-ip    *;
   port       6667;
   hub             *;
   password-connect "welcome";
   password-receive "welcome";
   class           servers;
      options {
         /* Note: You should not use autoconnect when linking services
         autoconnect;
         ssl;
         zip;
         */
      };
};

2. Used IP address RemoteServer   

 10.3.1.52 6667 "welcome"

HOWEVER, ERROR REMAINS SAME. I'VE ALSO ATTACHED TELNET SCREENSHOT TO 10.3.1.52 6667 AND THE conf FILES FOR ANOPE AND UNREALIRCD.

Thanks,
Vineet
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 11:37:05 AM
THIS IS UNREALIRCD.CONF
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 11:38:24 AM
THIS IS SERVICES.CONF
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Charles Kingsley on January 28, 2010, 11:39:26 AM
Run anope.exe -support and paste that.
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 11:55:33 AM
Hi,

I HAVE ATTACHED THE LOG FILE.

THANKS,
VINEET
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Jim Flaten on January 28, 2010, 12:23:56 PM
I'm sorry, but I'm not going to help you. Not because I don't want to, but because I don't know what is wrong. I'm just replying to say: WHAT THE IS UP WITH ALL THE CAPS?
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 12:27:28 PM
The caps are just a way to distinguish what I write and what the log file entries are. Nothing special about it.
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Jim Flaten on January 28, 2010, 12:29:13 PM
Please use quote or code brackets for logs instead =)
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 01:04:20 PM
Hi Charles,

I just changed all IP Addresses to "localhost" as my services and IRC server. Now I am getting different error.

/*****************************************************************/
[Jan 28 18:28:43 2010] Anope 1.8.3 (2773) (ircd protocol: UnrealIRCd 3.2+) starting up
[Jan 28 18:28:46 2010] MSMemoReceipt not enabled in services.conf
[Jan 28 18:28:46 2010] ms_rsend requested unload...
[Jan 28 18:28:46 2010] debug: trying to load core module [ms_rsend]
[Jan 28 18:28:46 2010] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Jan 28 18:28:49 2010] Databases loaded
[Jan 28 18:28:49 2010] Info: Reflecting database records.
[Jan 28 18:28:49 2010] Connected to Server 1 (localhost:6667)
[Jan 28 18:28:49 2010] trying to load [cs_appendtopic]
[Jan 28 18:28:49 2010] [cs_appendtopic] Loaded successfully
[Jan 28 18:28:49 2010] status:
  • [Module, Okay - No Error]
  • [Jan 28 18:28:49 2010] trying to load
[cs_enforce]
[Jan 28 18:28:49 2010] status:
  • [Module, Okay - No Error]
  • [Jan 28 18:28:49 2010] trying to load
[ns_maxemail]
[Jan 28 18:28:50 2010] status:
  • [Module, Okay - No Error]
  • [Jan 28 18:28:50 2010] trying to load
[os_info]
[Jan 28 18:28:50 2010] os_info: Loading configuration directives...
[Jan 28 18:28:50 2010] os_info: OSInfoDBName is not defined in Services configuration file, using default os_info.db
[Jan 28 18:28:50 2010] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Jan 28 18:28:50 2010] os_info: WARNING: can not open the database file! (it might not exist, this is not fatal)
[Jan 28 18:28:50 2010] status:
  • [Module, Okay - No Error]
  • [Jan 28 18:28:50 2010] trying to load
[hs_request]
[Jan 28 18:28:50 2010] [hs_request] Unable to open database ('hs_request.db') for reading
[Jan 28 18:28:50 2010] hs_request loaded
[Jan 28 18:28:50 2010] status:
  • [Module, Okay - No Error]
  • [Jan 28 18:28:50 2010] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
    [Jan 28 18:28:50 2010] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
    [Jan 28 18:28:50 2010] Read error from server: No such file or directory (errornum: 2)
    [Jan 28 18:28:50 2010]
[cs_appendtopic] Unloaded successfully
[Jan 28 18:28:50 2010] hs_request un-loaded
Press any key to continue . . .
/*****************************************************************/
I have not made any changes to my IRCD's link block.

Thanks,
Vineet
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Jan Milants on January 28, 2010, 01:15:38 PM
I have not made any changes to my IRCD's link block.
that would be the problem... if you change everything to localhost, the hostname in the linkblock should be localhost or 127.0.0.1 as well..
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 01:21:40 PM
That sounds logical. So I made the changes....

************
unrealircd.conf
************
listen         127.0.0.1:6667;
   options
      {
         /* ssl; */
         serversonly;
      };

link            services.roxnet.com
{
   username   *;
   hostname    127.0.0.1;
   bind-ip    127.0.0.1;
   port       6667;
   hub             *;
   password-connect "welcome";
   password-receive "welcome";
   class           servers;
      options {
         /* Note: You should not use autoconnect when linking services
         autoconnect;
         ssl;
         zip;
         */
      };
};

************
services.conf
************
RemoteServer    127.0.0.1 6667 "welcome"

As service name remains same, no change in either file.

************
Result
************

[Jan 28 18:50:11 2010] Anope 1.8.3 (2773) (ircd protocol: UnrealIRCd 3.2+) start
ing up
[Jan 28 18:50:13 2010] MSMemoReceipt not enabled in services.conf
[Jan 28 18:50:13 2010] ms_rsend requested unload...
[Jan 28 18:50:13 2010] debug: trying to load core module [ms_rsend]
[Jan 28 18:50:13 2010] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Jan 28 18:50:15 2010] Databases loaded
[Jan 28 18:50:15 2010] Info: Reflecting database records.
[Jan 28 18:50:15 2010] Connected to Server 1 (127.0.0.1:6667)
[Jan 28 18:50:15 2010] trying to load [cs_appendtopic]
[Jan 28 18:50:15 2010] [cs_appendtopic] Loaded successfully
[Jan 28 18:50:15 2010] status: [Jan 28 18:50:15 2010] trying to load [cs_enforce]
[Jan 28 18:50:16 2010] status: [Jan 28 18:50:16 2010] trying to load [ns_maxemail]
[Jan 28 18:50:16 2010] status: [Jan 28 18:50:16 2010] trying to load [os_info]
[Jan 28 18:50:16 2010] os_info: Loading configuration directives...
[Jan 28 18:50:16 2010] os_info: OSInfoDBName is not defined in Services configuration file, using default os_info.db
[Jan 28 18:50:16 2010] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Jan 28 18:50:16 2010] status: [Jan 28 18:50:16 2010] trying to load [hs_request]
[Jan 28 18:50:16 2010] hs_request loaded
[Jan 28 18:50:16 2010] status: [Jan 28 18:50:16 2010] Read error from server: No such file or directory (errornum: 2)
[Jan 28 18:50:16 2010] [cs_appendtopic] Unloaded successfully
[Jan 28 18:50:16 2010] hs_request un-loaded
Press any key to continue . .
************************************************************

At least the error has changed.

Regards,
Vineet
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Jobe on January 28, 2010, 01:24:44 PM
Now as requested can you run "anope.exe -support" and then upload the log file, as the log file you are providing doesnt show the information -support mode will.
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 01:29:31 PM
Hi,

Find attached the complete log file with -support option.

Regards,
Vineet
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Vineet on January 28, 2010, 01:52:05 PM
Ok, I guess the error was,

ERROR :Closing Link: services.roxnet.com[127.0.0.1] (Colliding server numeric (choose another))

I changed the Numeric in my Services.conf and it looks the services have started. The console now shows:

/************************************************************/
[Jan 28 19:19:46 2010] Anope 1.8.3 (2773) (ircd protocol: UnrealIRCd 3.2+) starting up
[Jan 28 19:19:48 2010] MSMemoReceipt not enabled in services.conf
[Jan 28 19:19:48 2010] ms_rsend requested unload...
[Jan 28 19:19:48 2010] debug: trying to load core module [ms_rsend]
[Jan 28 19:19:48 2010] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Jan 28 19:19:52 2010] Databases loaded
[Jan 28 19:19:52 2010] Info: Reflecting database records.
[Jan 28 19:19:52 2010] Connected to Server 1 (127.0.0.1:6667)
[Jan 28 19:19:52 2010] trying to load [cs_appendtopic]
[Jan 28 19:19:52 2010] [cs_appendtopic] Loaded successfully
[Jan 28 19:19:52 2010] status: [cs_enforce]
[Jan 28 19:19:52 2010] status: [ns_maxemail]
[Jan 28 19:19:52 2010] status: [os_info]
[Jan 28 19:19:52 2010] os_info: Loading configuration directives...
[Jan 28 19:19:52 2010] os_info: OSInfoDBName is not defined in Services configuration file, using default os_info.db
[Jan 28 19:19:52 2010] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Jan 28 19:19:52 2010] status: [hs_request]
[Jan 28 19:19:52 2010] hs_request loaded
[Jan 28 19:19:52 2010] status: [Jan 28 19:19:48 2010] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]" or should I start testing the services.

Regards,
Vineet :)
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Jan Milants on January 28, 2010, 02:01:59 PM
no, modules that are not needed because of configuration settings or lack of support by the ircd will automatically unload themselves.
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Damien on February 09, 2010, 11:46:17 AM
Quote
services.roxnet.com

You have probably worked it out by now but if not, change that unless you already have.

roxnet.com is purely for the example config, every instance should be changed to your server specifics.

Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Dax Bane on February 13, 2010, 11:41:08 AM
I can't help but notice you're using port 6667 as a servers-only port; as this is the default port for most (if not all) IRC clients, what port do you imagine to use for your clients?
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Jobe on February 13, 2010, 01:13:50 PM
I can't help but notice you're using port 6667 as a servers-only port; as this is the default port for most (if not all) IRC clients, what port do you imagine to use for your clients?
To be totally honest I cant see how he'll have clients/users connecting to 127.0.0.1:6667 so I'm not sure how exactly that would be a problem.

On top of that the last time he pasted a listen block for 127.0.0.1:6667, his paste showed that the options block following it was ignored because he ended the listenblock BEFORE the options block with the ;
Title: Re: FATAL: Can't connect to server: No such file or directory.
Post by: Dax Bane on February 13, 2010, 01:19:41 PM
thank you for correcting me, Jobe - damn long nights and caffiene defficiencies :(