Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2   Go Down

Author Topic: Read error from server: No such file or directory (error num: 2)  (Read 16114 times)

0 Members and 1 Guest are viewing this topic.

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Read error from server: No such file or directory (error num: 2)
« on: February 14, 2009, 06:28:53 AM »

After finally getting the link thing done I thought I defeated this... then BAM... a new error without a whole lot of message to help track it down

yes, I used the search button... and I saw 1 thread with this error and then I guess it was answered on IRC. The following is my log from anope.

Code: [Select]
[Feb 14 00:23:12 2009] services.conf: Missing `@' for ServiceUser
[Feb 14 00:23:12 2009] Loading IRCD Protocol Module: [unreal32]
[Feb 14 00:23:12 2009] status: [0][Module, Okay - No Error]
[Feb 14 00:23:12 2009] Loading Encryption Module: [enc_none]
[Feb 14 00:23:12 2009] status: [0][Module, Okay - No Error]
[Feb 14 00:23:12 2009] Launching Anope into the background
[Feb 14 00:23:12 2009] Anope 1.8.0 (1899) (ircd protocol: UnrealIRCd 3.2+) starting up
[Feb 14 00:23:12 2009] ms_rsend requested unload...
[Feb 14 00:23:12 2009] debug: trying to load core module [ms_rsend]
[Feb 14 00:23:12 2009] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Feb 14 00:23:12 2009] Databases loaded
[Feb 14 00:23:12 2009] Info: Reflecting database records.
[Feb 14 00:23:12 2009] Connected to Server 1 (127.0.0.1:6667)
[Feb 14 00:23:12 2009] trying to load [cs_appendtopic]
[Feb 14 00:23:12 2009] [cs_appendtopic] Loaded successfully
[Feb 14 00:23:12 2009] status: [0][Module, Okay - No Error]
[Feb 14 00:23:12 2009] trying to load [cs_enforce]
[Feb 14 00:23:12 2009] status: [0][Module, Okay - No Error]
[Feb 14 00:23:12 2009] trying to load [ns_maxemail]
[Feb 14 00:23:12 2009] status: [0][Module, Okay - No Error]
[Feb 14 00:23:12 2009] trying to load [os_info]
[Feb 14 00:23:12 2009] os_info: Loading configuration directives...
[Feb 14 00:23:12 2009] os_info: OSInfoDBName is not defined in Services configuration file, using default os_info.db
[Feb 14 00:23:12 2009] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Feb 14 00:23:12 2009] status: [0][Module, Okay - No Error]
[Feb 14 00:23:12 2009] trying to load [hs_request]
[Feb 14 00:23:12 2009] hs_request loaded
[Feb 14 00:23:12 2009] status: [0][Module, Okay - No Error]
[Feb 14 00:23:13 2009] Read error from server: No such file or directory (error num: 2)
[Feb 14 00:23:13 2009] [cs_appendtopic] Unloaded successfully
[Feb 14 00:23:13 2009] hs_request un-loaded

Unless I'm missing something, I don't even know where to begin to look for the read error

Any help in this matter would be great.

Dr. Woo
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #1 on: February 14, 2009, 10:29:52 AM »

Two things come to mind:

[Feb 14 00:23:12 2009] services.conf: Missing `@' for ServiceUser

Fix that.

And secondly, you're connecting to 127.0.0.1 on port 6667, what does your listen block in unrealircd.conf say for 6667? (Check it's not clients only)
Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #2 on: February 14, 2009, 06:01:55 PM »

Yeah, I noticed that first @ issue right after I posted... fixed that issue pretty quick like.

Code: [Select]
/*
    options:
    OLD    |    NEW
    S        ssl
    Z        zip
    N/A        autoconnect
    N/A        quarantine
    N/A        nodnscache
*/


link            services.localhost.net
{
    username    *;
    hostname     localhost;
    bind-ip     *;
    port         7070;
    hub             *;
    password-connect "mypass";
    password-receive "mypass";
    class           servers;
        options {
            /* Note: You should not use autoconnect when linking services */
           
        };
};

yes, I did change the port number from 6667 to 7070, being that ssl likes to use 6667.

Dr. Woo
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #3 on: February 14, 2009, 06:48:51 PM »

So you made some changes, can I see a new paste of what happens?
Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #4 on: February 14, 2009, 06:57:40 PM »

That's it......

The result is still the same.

Services.conf
Code: [Select]
# RemoteServer <hostname> <port> <password>  [REQUIRED]
#     Specifies the remote server hostname and port.  The hostname may
#     either be a standard Internet hostname or dotted-quad numeric
#     address; the port number must be an integer between 1 and 65535
#     inclusive.  The password is a string which should be enclosed in
#     double quotes if it contains any spaces (or just for clarity).
#
#     The remote server and port may be overridden at runtime with the
#     -remote command-line option.  The password may not be set at runtime.
#
#     If services can't connect to the RemoteServer, they will try
#     RemoteServer2 (if defined). If they can't connect to RemoteServer2,
#     they will use RemoteServer3 (if defined).

RemoteServer    127.0.0.1 7070 "mypass"
#RemoteServer2  localhost 6667 "mypass"
#RemoteServer3  localhost 6667 "mypass"


unrealircd.conf
Code: [Select]
/*
    options:
    OLD    |    NEW
    S        ssl
    Z        zip
    N/A        autoconnect
    N/A        quarantine
    N/A        nodnscache
*/


link            services.localhost.net
{
    username    *;
    hostname     localhost;
    bind-ip     *;
    port         7070;
    hub             *;
    password-connect "mypass";
    password-receive "mypass";
    class           servers;
        options {
            /* Note: You should not use autoconnect when linking services */
           
        };
};

Log from anope
Code: [Select]
[Feb 14 11:55:56 2009] Loading IRCD Protocol Module: [unreal32]
[Feb 14 11:55:56 2009] status: [0][Module, Okay - No Error]
[Feb 14 11:55:56 2009] Loading Encryption Module: [enc_none]
[Feb 14 11:55:56 2009] status: [0][Module, Okay - No Error]
[Feb 14 11:55:56 2009] Launching Anope into the background
[Feb 14 11:55:56 2009] Anope 1.8.0 (1899) (ircd protocol: UnrealIRCd 3.2+) starting up
[Feb 14 11:55:59 2009] ms_rsend requested unload...
[Feb 14 11:55:59 2009] debug: trying to load core module [ms_rsend]
[Feb 14 11:55:59 2009] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Feb 14 11:56:04 2009] Databases loaded
[Feb 14 11:56:04 2009] Info: Reflecting database records.
[Feb 14 11:56:04 2009] FATAL: Can't connect to server: No such file or directory

the logs from unreal
Service.log
Code: [Select]
* Loading IRCd configuration ..
* Configuration loaded without any problems ..

Thanks again for your help in this matter.

Dr. Woo

Edit:
I don't know this helps or not, but I am using the none mysql version of anope.
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #5 on: February 14, 2009, 09:34:17 PM »

[Feb 14 11:56:04 2009] FATAL: Can't connect to server: No such file or directory


Show me /stats P and /stats C from your ircd please.
Logged

katsklaw

  • Guest
Re: Read error from server: No such file or directory (error num: 2)
« Reply #6 on: February 15, 2009, 01:09:51 AM »

I'd like to add that you are using 127.0.0.1 in RemoteServer and localhost in the link block. This can cause problems because localhost is not always 127.0.0.1 and if you are connecting to 127.0.0.1 it's a good chance that the ircd is going to see services from 127.0.0.1 and may not match the host name to it.

My advice is to pick 1 and use it in both places. I suggest 127.0.0.1. I personally try to stay way from hostnames in a config file unless unavoidable.

The less ambiguous your config file the better and hostnames can easily be ambiguous.
Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #7 on: February 15, 2009, 03:32:51 AM »

Katsklaw,

Thanks for information I didn't even think about that, but you are correct, I will fix that and see what happens.

This is my /stats c and p

Code: [Select]
C *@localhost * services.localhost.net 7070 servers
H * * services.localhost.net
End of /STATS report
-
[20:29] -Name Removed- *** Listener on *:6667, clients 2. is PERM
-
[20:29] -Name Removed- *** Listener on *:8067, clients 0. is PERM
-
[20:29] -Name Removed- *** Listener on *:6697, clients 0. is PERM clientsonly
-
End of /STATS report
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #8 on: February 15, 2009, 09:21:40 AM »

After making that change, restart your ircd and confirm that your /stats C no longer shows localhost but 127.0.0.1 and run anope again...
Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #9 on: February 15, 2009, 08:00:20 PM »

ok.....


Made that change..... still

Code: [Select]
[Feb 15 13:55:57 2009] Loading IRCD Protocol Module: [unreal32]
[Feb 15 13:55:57 2009] status: [0][Module, Okay - No Error]
[Feb 15 13:55:57 2009] Loading Encryption Module: [enc_none]
[Feb 15 13:55:57 2009] status: [0][Module, Okay - No Error]
[Feb 15 13:55:57 2009] Launching Anope into the background
[Feb 15 13:55:57 2009] Anope 1.8.0 (1899) (ircd protocol: UnrealIRCd 3.2+) starting up
[Feb 15 13:56:00 2009] ms_rsend requested unload...
[Feb 15 13:56:00 2009] debug: trying to load core module [ms_rsend]
[Feb 15 13:56:00 2009] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Feb 15 13:56:04 2009] Databases loaded
[Feb 15 13:56:04 2009] Info: Reflecting database records.
[Feb 15 13:56:05 2009] FATAL: Can't connect to server: No such file or directory

Now, this maybe a really stupid question as I just thought about it... does anope have to be located in a certain directory? or does ircd's directory have to be named a certain way? aka, path...

Dr. Woo
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #10 on: February 15, 2009, 08:05:44 PM »

No, it can run from pretty much anywhere.

Show me the output of

/stats C
/stats P
and /stats U

Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #11 on: February 15, 2009, 10:32:09 PM »

/stats C
Code: [Select]
C *@127.0.0.1 * services.localhost.net 7070 servers
H * * services.localhost.net
End of /STATS report

/Stats P
Code: [Select]
-
[15:29] -Removed Name- *** Listener on *:6667, clients 2. is PERM
-
[15:29] -Removed Name- *** Listener on *:8067, clients 0. is PERM
-
[15:29] -Removed Name- *** Listener on *:6697, clients 0. is PERM clientsonly
-

/stats U
Code: [Select]
-
U stats.roxnet.org
U services.roxnet.org
End of /STATS report
-


hmm... something with stats U looks odd... roxnet?

Dr. Woo
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Read error from server: No such file or directory (error num: 2)
« Reply #12 on: February 15, 2009, 11:03:15 PM »

RemoteServer    127.0.0.1 7070 "mypass"
and
Quote
[20:29] -Name Removed- *** Listener on *:6667, clients 2. is PERM
[20:29] -Name Removed- *** Listener on *:8067, clients 0. is PERM
[20:29] -Name Removed- *** Listener on *:6697, clients 0. is PERM clientsonly
you should connect anope to a port your ircd is actually listening on...

and fix your ulines.. you should know where the roxnet s coming from, you made the configs, but if your services server is named services.localhost.net then your ulines should match that.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #13 on: February 16, 2009, 12:56:17 AM »

Changed the ulines.....

Code: [Select]
[Feb 15 18:41:13 2009] Loading IRCD Protocol Module: [unreal32]
[Feb 15 18:41:13 2009] status: [0][Module, Okay - No Error]
[Feb 15 18:41:13 2009] Loading Encryption Module: [enc_none]
[Feb 15 18:41:14 2009] status: [0][Module, Okay - No Error]
[Feb 15 18:41:14 2009] Launching Anope into the background
[Feb 15 18:41:14 2009] Anope 1.8.0 (1899) (ircd protocol: UnrealIRCd 3.2+) starting up
[Feb 15 18:41:17 2009] ms_rsend requested unload...
[Feb 15 18:41:17 2009] debug: trying to load core module [ms_rsend]
[Feb 15 18:41:17 2009] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Feb 15 18:41:22 2009] Databases loaded
[Feb 15 18:41:22 2009] Info: Reflecting database records.
[Feb 15 18:41:23 2009] FATAL: Can't connect to server: No such file or directory

/stats C
Code: [Select]
C *@127.0.0.1 * services.localhost.net 7070 servers
H * * services.localhost.net
End of /STATS report

/stats P
Code: [Select]
[17:51] -a- *** Listener on *:6667, clients 2. is PERM
-
[17:51] -a- *** Listener on *:8067, clients 0. is PERM
-
[17:51] -a- *** Listener on *:6697, clients 0. is PERM clientsonly
-
End of /STATS report

/stats U
Code: [Select]
-
U stats.localhost.net
U services.localhost.net
End of /STATS report

The issue here is that it's not telling you what's not opening...

Thanks for everyones on going help here... hope we can get it to work..

Dr. Woo
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #14 on: February 16, 2009, 06:44:10 AM »

Argh, I'd seen 6667 in the original paste :(

Best bet is to pastebin both of your configs and let us look at the bigger picture.
Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #15 on: February 16, 2009, 07:27:19 AM »

Services.conf
http://pastebin.com/m21cf41b7

unrealircd.conf
http://pastebin.com/me4e6201


Thanks once again,

Dr. Woo
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #16 on: February 16, 2009, 05:58:07 PM »

Hi,

Problem is likely ServerName in services.conf being set to localhost instead of services.localhost.net

Would also suggest you comment out RemoteServer2 and 3 as the linkblock says port 8067 nothing else.

Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #17 on: February 16, 2009, 07:10:12 PM »

still no go...


Code: [Select]
[Feb 16 13:08:41 2009] Loading IRCD Protocol Module: [unreal32]
[Feb 16 13:08:41 2009] status: [0][Module, Okay - No Error]
[Feb 16 13:08:41 2009] Loading Encryption Module: [enc_none]
[Feb 16 13:08:41 2009] status: [0][Module, Okay - No Error]
[Feb 16 13:08:41 2009] Launching Anope into the background
[Feb 16 13:08:41 2009] Anope 1.8.0 (1899) (ircd protocol: UnrealIRCd 3.2+) starting up
[Feb 16 13:08:44 2009] ms_rsend requested unload...
[Feb 16 13:08:44 2009] debug: trying to load core module [ms_rsend]
[Feb 16 13:08:44 2009] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Feb 16 13:08:49 2009] Databases loaded
[Feb 16 13:08:49 2009] Info: Reflecting database records.
[Feb 16 13:08:50 2009] FATAL: Can't connect to server: No such file or directory

Are you sure anope doesn't have to be in a certain directory?

Dr. Woo
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #18 on: February 16, 2009, 07:41:06 PM »

Positive.

Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #19 on: February 16, 2009, 10:20:13 PM »

Well, I've done exactly what everyone has told me to do..... and still no joy...So, I'm still at a loss...


Dr. Woo
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Read error from server: No such file or directory (error num: 2)
« Reply #20 on: February 16, 2009, 10:29:56 PM »

Are you using windows?
If yes, then I m guessing some sort of firewall is blocking it or so.. you set anope to connect to 8067, try connecting to it with mirc or some other client. If that works then I can't think of anything else than that anope s being blocked..
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #21 on: February 17, 2009, 03:38:32 AM »

checked windows firewall, and that's all added in... did that a while ago...

Added the ports into the exception list as well...

IRC works fine like normal... still no on the anope... same log file.


Dr. Woo
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read error from server: No such file or directory (error num: 2)
« Reply #22 on: February 17, 2009, 06:49:02 AM »

Rather than continuing down this long shady road to nowhere it might be more practical to get remote access to your machine and troubleshoot in line.
Logged

drwoo

  • Anope User
  • Offline Offline
  • Posts: 14
Re: Read error from server: No such file or directory (error num: 2)
« Reply #23 on: February 18, 2009, 01:52:45 AM »

and how would we go about doing something like that? Because this problem is really annoying the crap out of me. lol


Dr. Woo
Logged

Amanda Folson

  • Anope User
  • Offline Offline
  • Posts: 164
  • O_O
    • ZomgIRC
Re: Read error from server: No such file or directory (error num: 2)
« Reply #24 on: February 18, 2009, 03:28:29 AM »

Turns out it was the server numeric.
Logged
Pages: [1] 2   Go Up