Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Read Error from server (error num: 2)  (Read 6912 times)

0 Members and 1 Guest are viewing this topic.

Robert Goodwin

  • Anope User
  • Offline Offline
  • Posts: 3
Read Error from server (error num: 2)
« on: June 29, 2009, 05:56:00 AM »

Code: [Select]
[Jun 29 00:34:20 2009] Every UserKey must be different. It's for YOUR safety! Remember that!
[Jun 29 00:34:20 2009] Loading IRCD Protocol Module: [unreal32]
[Jun 29 00:34:20 2009] status: [0][Module, Okay - No Error]
[Jun 29 00:34:20 2009] Loading Encryption Module: [enc_none]
[Jun 29 00:34:20 2009] status: [0][Module, Okay - No Error]
[Jun 29 00:34:20 2009] Launching Anope into the background
[Jun 29 00:34:20 2009] Anope 1.8.0 (1899) (ircd protocol: UnrealIRCd 3.2+) starting up
[Jun 29 00:34:20 2009] ms_rsend requested unload...
[Jun 29 00:34:20 2009] debug: trying to load core module [ms_rsend]
[Jun 29 00:34:20 2009] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Jun 29 00:34:21 2009] Databases loaded
[Jun 29 00:34:21 2009] Info: Reflecting database records.
[Jun 29 00:34:21 2009] Connected to Server 1 (localhost:6667)
[Jun 29 00:34:21 2009] Read error from server: No such file or directory (error num: 2)

*edit*this is what came up in my log file anyway. Im not sure what file its referring to in the read error.
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Read Error from server (error num: 2)
« Reply #1 on: June 29, 2009, 08:55:22 AM »

For *a reason* anope got connected to port 6667 but then lost connection. Could be for several reasons.

I'd suggest checking you've not set 6667 to clients only (or if you have, use a different port for services) and then run anope in debug mode so we can see a bit more info. (./services -support)
Logged

Robert Goodwin

  • Anope User
  • Offline Offline
  • Posts: 3
Re: Read Error from server (error num: 2)
« Reply #2 on: June 29, 2009, 06:54:13 PM »

6687 is clients only for me, 6667 should be fine. Went ahead and ran it in debug mode (btw, I'm running the win32 version if that helps):
Code: [Select]
[Jun 29 13:26:51 2009] debug: Sent: :localhost EOS
[Jun 29 13:26:51 2009] debug: Received: :server.myserver.org NOTICE AUTH :*** Looking up your hostname...
[Jun 29 13:26:51 2009] debug: Received: :server.myserver.org NOTICE AUTH :*** Found your hostname
[Jun 29 13:26:51 2009] debug: Received: ERROR :Bogus server name (localhost)
[Jun 29 13:26:51 2009] debug: Bogus server name (localhost)
[Jun 29 13:26:51 2009] debug: Received: ERROR :Closing Link: [127.0.0.1] (Bogus server name)
[Jun 29 13:26:51 2009] debug: Closing Link: [127.0.0.1] (Bogus server name)
[Jun 29 13:26:51 2009] debug: Emitting event "db_saving" (1 args)
[Jun 29 13:26:51 2009] debug: Saving FFF databases
[Jun 29 13:26:51 2009] debug: Emitting event "db_saving" (1 args)
[Jun 29 13:26:51 2009] debug: Emitting event "shutdown" (1 args)
[Jun 29 13:26:51 2009] Read error from server: No such file or directory (error num: 2)
[Jun 29 13:26:52 2009] debug: Sent: SQUIT localhost :Read error from server: No such file or directory (error num: 2)
[Jun 29 13:26:52 2009] debug: firstuser() returning NULL (end of list)
[Jun 29 13:26:52 2009] debug: Emitting event "shutdown" (1 args)
[Jun 29 13:26:52 2009] debug: Cleaning out Module run time directory (\modules/runtime) - this may take a moment please wait
[Jun 29 13:26:52 2009] debug: Module run time directory has been cleaned out

(note: only posted the end, idk if the rest is relevant)
*edit* i used localhost in the settings.conf file, so the server name must've been sent from Unreal.

*edit2* i just removed my server name from the log file, probably better that way. changed to server.myserver.org
« Last Edit: June 29, 2009, 06:56:23 PM by Robert Goodwin »
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
Re: Read Error from server (error num: 2)
« Reply #3 on: June 29, 2009, 07:49:48 PM »

The error shown:
[Jun 29 13:26:51 2009] debug: Received: ERROR :Bogus server name (localhost)
means the name "localhost" is bogus to the IRCd.

UnrealIRCd for one, requires that you include a "." in the server name and at least one valid non "." char after the "."
Logged
Your IP: ()
My IRC Status:

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

Robert Goodwin

  • Anope User
  • Offline Offline
  • Posts: 3
Re: Read Error from server (error num: 2)
« Reply #4 on: June 29, 2009, 08:36:10 PM »

changed localhost to 127.0.0.1, and the error has changed.
Code: [Select]
[Jun 29 15:45:55 2009] debug: Received: :server.myserver.org NOTICE AUTH :*** Looking up your hostname...
[Jun 29 15:45:55 2009] debug: Received: :server.myserver.org NOTICE AUTH :*** Found your hostname (cached)
[Jun 29 15:45:56 2009] debug: Received: ERROR :Link denied (No matching link configuration) [@127.0.0.1.49910]
[Jun 29 15:45:56 2009] debug: Link denied (No matching link configuration) [@127.0.0.1.49910]
[Jun 29 15:45:56 2009] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
[Jun 29 15:45:56 2009] debug: Received: ERROR :Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Jun 29 15:45:56 2009] debug: Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
[Jun 29 15:45:56 2009] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
[Jun 29 15:45:56 2009] debug: Emitting event "db_saving" (1 args)
[Jun 29 15:45:56 2009] debug: Saving FFF databases
[Jun 29 15:45:56 2009] debug: Emitting event "db_saving" (1 args)
[Jun 29 15:45:56 2009] debug: Emitting event "shutdown" (1 args)
[Jun 29 15:45:56 2009] Read error from server: No such file or directory (error num: 2)
[Jun 29 15:45:56 2009] debug: Sent: SQUIT 127.0.0.1 :Read error from server: No such file or directory (error num: 2)
[Jun 29 15:45:56 2009] debug: firstuser() returning NULL (end of list)
[Jun 29 15:45:56 2009] debug: Emitting event "shutdown" (1 args)
[Jun 29 15:45:56 2009] debug: Cleaning out Module run time directory (\modules/runtime) - this may take a moment please wait
[Jun 29 15:45:56 2009] debug: Module run time directory has been cleaned out

Try and do this a little more in depth, i noticed this error in my irc notice:
Code: [Select]
server.myserver.org- *** LocOps -- Link denied for 127.0.0.1(unknown@127.0.0.1) (No link block named '127.0.0.1') [@127.0.0.1.49910]
heres my link settings:
Code: [Select]
link            127.0.0.1
{
username 127.0.0.1;
hostname 127.0.0.1;
bind-ip *;
port 6667;
hub             *;
password-connect "my password";
password-receive "my password";
class           servers;
options {
ssl;
zip;
};
};
« Last Edit: June 29, 2009, 08:57:36 PM by Robert Goodwin »
Logged
Pages: [1]   Go Up