Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Trouble with Linking  (Read 10977 times)

0 Members and 1 Guest are viewing this topic.

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Trouble with Linking
« on: February 13, 2010, 07:33:10 PM »

I did exactly I was told. Maybe someone can figure out what went wrong.

Here's what I keep getting in the logs:

Code: [Select]
[Feb 13 13:13:45 2010] Can't open services.conf : No such file or directory
Here is my link block on unrealircd.conf

Code: [Select]
listen         127.0.0.1:6668;
listen         127.0.0.1:6667;

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

And here's my services.conf, saved in C:\Program Files\Anope\data (as instructed):

Code: [Select]
RemoteServer    127.0.0.1 6667 "password"

Looks alright to me. I've rehashed and everything. Nothing's working.

Also, I setup a host with NO-IP and I set it to forward to 127.0.0.1 (localhost), and I can't connect with that host. I can only connect with  127.0.0.1 ie. /server 127.0.0.1
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Trouble with Linking
« Reply #1 on: February 13, 2010, 07:36:54 PM »

Forget linking your problem is that anope can't find services.conf
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #2 on: February 13, 2010, 07:39:55 PM »

Forget linking your problem is that anope can't find services.conf

Well how do I get unrealircd to find services.conf?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Trouble with Linking
« Reply #3 on: February 13, 2010, 07:40:47 PM »

It doesn't ...

Anope needs services.conf
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #4 on: February 13, 2010, 07:41:38 PM »

It doesn't ...

Anope needs services.conf

Dude, what do I need to do to fix this?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Trouble with Linking
« Reply #5 on: February 13, 2010, 07:43:56 PM »

[Feb 13 13:13:45 2010] Can't open services.conf : No such file or directory

Fix that ^

I'm going to bet it's not called services.conf
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #6 on: February 13, 2010, 07:47:05 PM »

[Feb 13 13:13:45 2010] Can't open services.conf : No such file or directory

Fix that ^

I'm going to bet it's not called services.conf

Here's your proof:

Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Trouble with Linking
« Reply #7 on: February 13, 2010, 07:50:22 PM »

That's not proof.

I bet that's actually called services.conf.conf

Take the .conf off of that (your windows is hiding known file extensions)
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Trouble with Linking
« Reply #8 on: February 13, 2010, 07:51:45 PM »

Mind you, I could be completely wrong.

Anope on windows is a nightmare.
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #9 on: February 13, 2010, 07:55:15 PM »

That's not proof.

I bet that's actually called services.conf.conf

Take the .conf off of that (your windows is hiding known file extensions)

That was the solution to my problem, however now we have a different issue:

Code: [Select]
[Feb 13 13:53:24 2010] Loading IRCD Protocol Module: [unreal32]
[Feb 13 13:53:24 2010] status: [0][Module, Okay - No Error]
[Feb 13 13:53:24 2010] Loading Encryption Module: [enc_none]
[Feb 13 13:53:24 2010] status: [0][Module, Okay - No Error]
[Feb 13 13:53:24 2010] Launching Anope into the background
[Feb 13 13:53:24 2010] Anope 1.8.3 (2773) (ircd protocol: UnrealIRCd 3.2+) starting up
[Feb 13 13:53:25 2010] MSMemoReceipt not enabled in services.conf
[Feb 13 13:53:25 2010] ms_rsend requested unload...
[Feb 13 13:53:25 2010] debug: trying to load core module [ms_rsend]
[Feb 13 13:53:25 2010] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Feb 13 13:53:26 2010] Databases loaded
[Feb 13 13:53:26 2010] Info: Reflecting database records.
[Feb 13 13:53:26 2010] Connected to Server 1 (127.0.0.1:6667)
[Feb 13 13:53:26 2010] trying to load [cs_appendtopic]
[Feb 13 13:53:26 2010] [cs_appendtopic] Loaded successfully
[Feb 13 13:53:26 2010] status: [0][Module, Okay - No Error]
[Feb 13 13:53:26 2010] trying to load [cs_enforce]
[Feb 13 13:53:26 2010] status: [0][Module, Okay - No Error]
[Feb 13 13:53:26 2010] trying to load [ns_maxemail]
[Feb 13 13:53:26 2010] status: [0][Module, Okay - No Error]
[Feb 13 13:53:26 2010] trying to load [os_info]
[Feb 13 13:53:26 2010] os_info: Loading configuration directives...
[Feb 13 13:53:26 2010] os_info: OSInfoDBName is not defined in Services configuration file, using default os_info.db
[Feb 13 13:53:26 2010] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Feb 13 13:53:26 2010] os_info: WARNING: can not open the database file! (it might not exist, this is not fatal)
[Feb 13 13:53:26 2010] status: [0][Module, Okay - No Error]
[Feb 13 13:53:26 2010] trying to load [hs_request]
[Feb 13 13:53:26 2010] [hs_request] Unable to open database ('hs_request.db') for reading
[Feb 13 13:53:26 2010] hs_request loaded
[Feb 13 13:53:26 2010] status: [0][Module, Okay - No Error]
[Feb 13 13:53:27 2010] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
[Feb 13 13:53:27 2010] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
[Feb 13 13:53:27 2010] Read error from server: No such file or directory (error num: 2)
[Feb 13 13:53:27 2010] [cs_appendtopic] Unloaded successfully
[Feb 13 13:53:27 2010] hs_request un-loaded

I see the link block may be setup incorrectly, but if  you look above at the first post you can see my link block on unrealircd.conf

Looks ok to me :P
Logged

MeiR

  • Anope User
  • Offline Offline
  • Posts: 49
Re: Trouble with Linking
« Reply #10 on: February 13, 2010, 08:03:26 PM »

Paul, please veirfy that "ServerName" directive in services.conf is "services.greaterdarkness.zapto.org", as u set in unreal's link name.
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #11 on: February 13, 2010, 08:05:55 PM »

Paul, please veirfy that "ServerName" directive in services.conf is "services.greaterdarkness.zapto.org", as u set in unreal's link name.

Code: [Select]
# ServerName <name>  [REQUIRED]
#     Specifies the IRC server name which Services should use.  May be
#     overridden by the -name command-line option.

ServerName  "services.greaterdarkness.zapto.org"

Could it be that there aren't supposed to be quotation marks?
Logged

MeiR

  • Anope User
  • Offline Offline
  • Posts: 49
Re: Trouble with Linking
« Reply #12 on: February 13, 2010, 08:10:03 PM »

Nope.
Checking unreal logs [or server notices if u're opered up] should be useful for seeing the linking attempts.
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #13 on: February 13, 2010, 08:12:04 PM »

Nope.
Checking unreal logs [or server notices if u're opered up] should be useful for seeing the linking attempts.

Would this help?

Code: [Select]
-greaterdarkness.zapto.org- *** Notice -- Loading IRCd configuration ..
-
-greaterdarkness.zapto.org- *** Notice -- error: unrealircd.conf:268: link services.greaterdarkness.zapto.org with SSL option enabled on a non-SSL compile
-
-greaterdarkness.zapto.org- *** Notice -- error: 1 errors encountered
-
-greaterdarkness.zapto.org- *** Notice -- error: IRCd configuration failed to pass testing
-
-greaterdarkness.zapto.org- *** LocOps -- Link denied for services.greaterdarkness.zapto.org(unknown@127.0.0.1) (No link block named 'services.greaterdarkness.zapto.org') [@127.0.0.1.3455]
Logged

MeiR

  • Anope User
  • Offline Offline
  • Posts: 49
Re: Trouble with Linking
« Reply #14 on: February 13, 2010, 08:33:11 PM »

Your link block considers as non existing, due to the mentioned error.
Remove the ssl; from link::options, then /rehash and try to run services again.
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #15 on: February 13, 2010, 08:36:22 PM »

Your link block considers as non existing, due to the mentioned error.
Remove the ssl; from link::options, then /rehash and try to run services again.

I posted a new thread for the errors I got afterwards.
Logged

MeiR

  • Anope User
  • Offline Offline
  • Posts: 49
Re: Trouble with Linking
« Reply #16 on: February 13, 2010, 08:37:43 PM »

That new threaed was locked. You should continue here, no need of new one.

I understand u've removed the "ssl", so maybe u haven't rehashed?
Anyway, you should check again unreal logs.
Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #17 on: February 13, 2010, 08:43:43 PM »

That new threaed was locked. You should continue here, no need of new one.

I understand u've removed the "ssl", so maybe u haven't rehashed?
Anyway, you should check again unreal logs.

Nobody was replying and this Adam guy says that I refused to read this which is not true and in no way did I say that. He also said that this was a copy of the first post, which it's not. I am very offended now because I got attacked for absolutely no reason in the most rude way possible. Anyway:


Can ANYONE explain this to me?

Code: [Select]
-greaterdarkness.zapto.org- *** Notice -- Loading IRCd configuration ..
-
-greaterdarkness.zapto.org- *** Notice -- Configuration loaded without any problems ..
-
-greaterdarkness.zapto.org- *** Notice -- Connection to services.greaterdarkness.zapto.org[127.0.0.1] activated.
-
-greaterdarkness.zapto.org- *** LocOps -- Link denied for greaterdarkness.zapto.org(unknown@127.0.0.1) (No link block named 'greaterdarkness.zapto.org') [@127.0.0.1.3722]
-
-greaterdarkness.zapto.org- *** LocOps -- ERROR :from services.greaterdarkness.zapto.org[127.0.0.1] -- Link denied (No matching link configuration) [@127.0.0.1.3722]
-
-greaterdarkness.zapto.org- *** LocOps -- ERROR :from services.greaterdarkness.zapto.org[127.0.0.1] -- Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
-
-greaterdarkness.zapto.org- *** LocOps -- Server services.greaterdarkness.zapto.org[127.0.0.1] closed the connection

I really have NO idea what to do. This is my link block:

Code: [Select]
listen         127.0.0.1:6668;
listen         127.0.0.1:6667;

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

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Trouble with Linking
« Reply #18 on: February 13, 2010, 08:46:44 PM »

It is quite obvious you don't know what you're doing and you've even ignored the hint in your linkblock about autoconnect and services.

Stop being a smart arse and you will get further.

Remove zip and autoconnect from the linkblock, rehash unreal and try again.
Logged

MeiR

  • Anope User
  • Offline Offline
  • Posts: 49
Re: Trouble with Linking
« Reply #19 on: February 13, 2010, 08:51:54 PM »

"Nobody was replying"?! What about Charles and me? Or u're expecting an instant 10 secs reply?

Anyway, read carefully the deny error: (No link block named 'greaterdarkness.zapto.org')
It seems your ircd tries to link to itself, which is only possible when u enable "autoconnect" inside services link block.

If you'd have read docs, u wouldn't get into this situation.




Logged

Paul

  • Anope User
  • Offline Offline
  • Posts: 11
Re: Trouble with Linking
« Reply #20 on: February 13, 2010, 09:45:54 PM »

It is quite obvious you don't know what you're doing and you've even ignored the hint in your linkblock about autoconnect and services.

Stop being a smart arse and you will get further.

Remove zip and autoconnect from the linkblock, rehash unreal and try again.

Thanks that helped. They're up now. Now I need to know how to set it up to  where /ns /cs /bs /os and of that will work. And fantasy stuff. How would I go about doing this?
Logged

Dax Bane

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 30
  • Bane of All
Re: Trouble with Linking
« Reply #21 on: February 13, 2010, 10:19:43 PM »

to add /cs, /chanserv, etc to Unreal's command aliases, simply tack this onto unrealircd.conf somewhere (outside of configuration blocks):
Code: [Select]
include "aliases/anope.conf";
Logged
Pages: [1]   Go Up