Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2   Go Down

Author Topic: Linking Anope 1.8.x to Inspircd 2.0  (Read 30600 times)

0 Members and 1 Guest are viewing this topic.

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Linking Anope 1.8.x to Inspircd 2.0
« on: October 06, 2010, 12:00:02 AM »

Hi all,

I need some help here, and I did search the forums first for my error but none seemed to apply to my situation or there were no replies.  Based on the forum rules, the next step is to post.  I run ./services -debug -nofork and there is what I get


[Oct 05 17:26:17.357295 2010] debug: Loaded NickServ database (1/7)
[Oct 05 17:26:17.357326 2010] debug: Loaded HostServ database (2/7)
[Oct 05 17:26:17.357354 2010] debug: Loaded BotServ database (3/7)
[Oct 05 17:26:17.357388 2010] debug: Loaded ChanServ database (4/7)
[Oct 05 17:26:17.357421 2010] debug: Loaded OperServ database (5/7)
[Oct 05 17:26:17.357450 2010] debug: Loaded news database (6/7)
[Oct 05 17:26:17.357479 2010] debug: Loaded exception database (7/7)
[Oct 05 17:26:17.357491 2010] Databases loaded
[Oct 05 17:26:17.357502 2010] Info: Reflecting database records.
[Oct 05 17:26:17.357514 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 17:26:17.357526 2010] debug: Saving FFF databases
[Oct 05 17:26:17.358003 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 17:26:17.358018 2010] debug: Emitting event "connect" (1 args)
[Oct 05 17:26:17.358133 2010] Connected to Server 1 (127.0.0.1:7000)
[Oct 05 17:26:17.358180 2010] debug: Sent: CAPAB START 1202
[Oct 05 17:26:17.358203 2010] debug: Sent: CAPAB CAPABILITIES :PROTOCOL=1202
[Oct 05 17:26:17.358220 2010] debug: Sent: CAPAB END
[Oct 05 17:26:17.358237 2010] debug: Sent: SERVER connor-linux secret 0 3AX :Services for IRC Networks
[Oct 05 17:26:17.358250 2010] debug: Creating connor-linux(3AX) uplinked to No uplink
[Oct 05 17:26:17.358265 2010] debug: Emitting event "connect" (1 args)
[Oct 05 17:26:17.358285 2010] debug: Received: ÿ
[Oct 05 17:26:17.358298 2010] debug: unknown message from server (ÿ)
[Oct 05 17:26:17.358327 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 17:26:17.358339 2010] debug: Saving FFF databases
[Oct 05 17:26:17.358805 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 17:26:17.358820 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 17:26:17.358832 2010] Read error from server: Connection reset by peer (error num: 104)
[Oct 05 17:26:17.358851 2010] debug: Sent: :3AX SQUIT connor-linux :Read error from server: Connection reset by peer (error num: 104)
[Oct 05 17:26:17.358869 2010] debug: firstuser() returning NULL (end of list)
[Oct 05 17:26:17.358881 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 17:26:17.365952 2010] debug: Cleaning out Module run time directory (/home/intuit/anopeinstalled/modules/runtime) - this may take a moment please wait
[Oct 05 17:26:17.366025 2010] debug: Module run time directory has been cleaned out


the "Connection reset by peer (error num: 104)" would seem to be the issue.  Could someone provide some guidance?  I am running openSUSE 11.3.
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #1 on: October 06, 2010, 12:06:30 AM »

looks like you're trying to connect anope to a port with ssl enabled, which it can't do.
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #2 on: October 06, 2010, 12:10:12 AM »

ssl was turned on in inspircd and I turned it off but now I have the following


[Oct 05 18:12:56.939473 2010] debug: trying to load core module [he_help]
[Oct 05 18:12:56.939485 2010] debug: status:
  • [Module, Okay - No Error]
[Oct 05 18:12:56.939649 2010] debug: Loaded NickServ database (1/7)
[Oct 05 18:12:56.939682 2010] debug: Loaded HostServ database (2/7)
[Oct 05 18:12:56.939722 2010] debug: Loaded BotServ database (3/7)
[Oct 05 18:12:56.939759 2010] debug: Loaded ChanServ database (4/7)
[Oct 05 18:12:56.939792 2010] debug: Loaded OperServ database (5/7)
[Oct 05 18:12:56.939821 2010] debug: Loaded news database (6/7)
[Oct 05 18:12:56.939850 2010] debug: Loaded exception database (7/7)
[Oct 05 18:12:56.939862 2010] Databases loaded
[Oct 05 18:12:56.939873 2010] Info: Reflecting database records.
[Oct 05 18:12:56.939886 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:12:56.939897 2010] debug: Saving FFF databases
[Oct 05 18:12:56.940357 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:12:56.940371 2010] debug: Emitting event "connect" (1 args)
[Oct 05 18:12:56.940576 2010] Connected to Server 1 (127.0.0.1:7000)
[Oct 05 18:12:56.940695 2010] debug: Sent: CAPAB START 1202
[Oct 05 18:12:56.940715 2010] debug: Sent: CAPAB CAPABILITIES :PROTOCOL=1202
[Oct 05 18:12:56.940730 2010] debug: Sent: CAPAB END
[Oct 05 18:12:56.940749 2010] debug: Sent: SERVER connor-linux secret 0 3AX :Services for IRC Networks
[Oct 05 18:12:56.940763 2010] debug: Creating connor-linux(3AX) uplinked to No uplink
[Oct 05 18:12:56.940778 2010] debug: Emitting event "connect" (1 args)
[Oct 05 18:12:56.940798 2010] debug: Received: ÿ
[Oct 05 18:12:56.940811 2010] debug: unknown message from server (ÿ)
[Oct 05 18:12:56.940839 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:12:56.940851 2010] debug: Saving FFF databases
[Oct 05 18:12:56.941365 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:12:56.941381 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 18:12:56.941393 2010] Read error from server: Broken pipe (error num: 32)
[Oct 05 18:12:56.941412 2010] debug: Sent: :3AX SQUIT connor-linux :Read error from server: Broken pipe (error num: 32)
[Oct 05 18:12:56.941428 2010] debug: firstuser() returning NULL (end of list)
[Oct 05 18:12:56.941443 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 18:12:56.948566 2010] debug: Cleaning out Module run time directory (/home/intuit/anopeinstalled/modules/runtime) - this may take a moment please wait
[Oct 05 18:12:56.948697 2010] debug: Module run time directory has been cleaned out


Broken pipe (error num: 32) would seem anope and inspircd are not talking with each other
« Last Edit: October 06, 2010, 12:14:36 AM by Connor Doran »
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #3 on: October 06, 2010, 12:17:58 AM »

do you still have ssl/gnutls in the link block also ?
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #4 on: October 06, 2010, 12:20:41 AM »

yup I did, thanks for the tip.  But it seems that inspircd thinks anope is connecting as a client and not a service, see below


[Oct 05 18:24:18.233288 2010] debug: Loaded NickServ database (1/7)
[Oct 05 18:24:18.233318 2010] debug: Loaded HostServ database (2/7)
[Oct 05 18:24:18.233347 2010] debug: Loaded BotServ database (3/7)
[Oct 05 18:24:18.233381 2010] debug: Loaded ChanServ database (4/7)
[Oct 05 18:24:18.233415 2010] debug: Loaded OperServ database (5/7)
[Oct 05 18:24:18.233444 2010] debug: Loaded news database (6/7)
[Oct 05 18:24:18.233474 2010] debug: Loaded exception database (7/7)
[Oct 05 18:24:18.233486 2010] Databases loaded
[Oct 05 18:24:18.233497 2010] Info: Reflecting database records.
[Oct 05 18:24:18.233510 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:24:18.233522 2010] debug: Saving FFF databases
[Oct 05 18:24:18.234007 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:24:18.234022 2010] debug: Emitting event "connect" (1 args)
[Oct 05 18:24:18.234136 2010] Connected to Server 1 (127.0.0.1:7000)
[Oct 05 18:24:18.234185 2010] debug: Sent: CAPAB START 1202
[Oct 05 18:24:18.234209 2010] debug: Sent: CAPAB CAPABILITIES :PROTOCOL=1202
[Oct 05 18:24:18.234232 2010] debug: Sent: CAPAB END
[Oct 05 18:24:18.234259 2010] debug: Sent: SERVER connor-linux secret 0 3AX :Services for IRC Networks
[Oct 05 18:24:18.234274 2010] debug: Creating connor-linux(3AX) uplinked to No uplink
[Oct 05 18:24:18.234289 2010] debug: Emitting event "connect" (1 args)
[Oct 05 18:24:18.234350 2010] debug: Received: :truenorth.connor-linux NOTICE Auth :*** Looking up your hostname...
[Oct 05 18:24:18.234413 2010] debug: Received: :truenorth.connor-linux NOTICE Auth :*** Found your hostname (localhost) -- cached
[Oct 05 18:24:18.234500 2010] debug: Received: :truenorth.connor-linux 451 SERVER :You may not register as a server (servers have seperate ports from clients, change your config)
[Oct 05 18:24:18.234516 2010] debug: unknown message from server (:truenorth.connor-linux 451 SERVER :You may not register as a server (servers have seperate ports from clients, change your config))
[Oct 05 18:24:29.823815 2010] debug: Received: ERROR :Closing link: (unknown@localhost) [Registration timeout]
[Oct 05 18:24:29.823861 2010] debug: unknown message from server (ERROR :Closing link: (unknown@localhost) [Registration timeout])
[Oct 05 18:24:29.823921 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:24:29.823942 2010] debug: Saving FFF databases
[Oct 05 18:24:29.824700 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:24:29.824734 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 18:24:29.824756 2010] Read error from server: No such file or directory (error num: 2)
[Oct 05 18:24:29.824821 2010] debug: Sent: :3AX SQUIT connor-linux :Read error from server: No such file or directory (error num: 2)
[Oct 05 18:24:29.824850 2010] debug: firstuser() returning NULL (end of list)
[Oct 05 18:24:29.824871 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 18:24:29.833668 2010] debug: Cleaning out Module run time directory (/home/intuit/anopeinstalled/modules/runtime) - this may take a moment please wait
[Oct 05 18:24:29.833766 2010] debug: Module run time directory has been cleaned out


Here are my port setups in my inspircd.conf

<bind address="" port="6660-6669" type="clients">
<bind address="" port="7000,7001" type="servers">
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #5 on: October 06, 2010, 12:24:43 AM »

make sure the bind block is set up for servers only, and that there isnt another bind for the same port for clients, and double check m_spanningtree is loaded.
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #6 on: October 06, 2010, 12:33:36 AM »

fixed that, now I am back to error 104, no SSL seems to be enabled.


[Oct 05 18:36:02.390812 2010] debug: Loaded NickServ database (1/7)
[Oct 05 18:36:02.390841 2010] debug: Loaded HostServ database (2/7)
[Oct 05 18:36:02.390870 2010] debug: Loaded BotServ database (3/7)
[Oct 05 18:36:02.390911 2010] debug: Loaded ChanServ database (4/7)
[Oct 05 18:36:02.390944 2010] debug: Loaded OperServ database (5/7)
[Oct 05 18:36:02.390974 2010] debug: Loaded news database (6/7)
[Oct 05 18:36:02.391002 2010] debug: Loaded exception database (7/7)
[Oct 05 18:36:02.391015 2010] Databases loaded
[Oct 05 18:36:02.391026 2010] Info: Reflecting database records.
[Oct 05 18:36:02.391038 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:36:02.391050 2010] debug: Saving FFF databases
[Oct 05 18:36:02.391518 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:36:02.391532 2010] debug: Emitting event "connect" (1 args)
[Oct 05 18:36:02.391656 2010] Connected to Server 1 (127.0.0.1:7000)
[Oct 05 18:36:02.391704 2010] debug: Sent: CAPAB START 1202
[Oct 05 18:36:02.391728 2010] debug: Sent: CAPAB CAPABILITIES :PROTOCOL=1202
[Oct 05 18:36:02.391747 2010] debug: Sent: CAPAB END
[Oct 05 18:36:02.391769 2010] debug: Sent: SERVER connor-linux secret 0 3AX :Services for IRC Networks
[Oct 05 18:36:02.391782 2010] debug: Creating connor-linux(3AX) uplinked to No uplink
[Oct 05 18:36:02.391797 2010] debug: Emitting event "connect" (1 args)
[Oct 05 18:36:02.391817 2010] debug: Received: ÿ
[Oct 05 18:36:02.391830 2010] debug: unknown message from server (ÿ)
[Oct 05 18:36:02.391870 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:36:02.391883 2010] debug: Saving FFF databases
[Oct 05 18:36:02.392338 2010] debug: Emitting event "db_saving" (1 args)
[Oct 05 18:36:02.392352 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 18:36:02.392364 2010] Read error from server: Connection reset by peer (error num: 104)
[Oct 05 18:36:02.392384 2010] debug: Sent: :3AX SQUIT connor-linux :Read error from server: Connection reset by peer (error num: 104)
[Oct 05 18:36:02.392401 2010] debug: firstuser() returning NULL (end of list)
[Oct 05 18:36:02.392414 2010] debug: Emitting event "shutdown" (1 args)
[Oct 05 18:36:02.399684 2010] debug: Cleaning out Module run time directory (/home/intuit/anopeinstalled/modules/runtime) - this may take a moment please wait
[Oct 05 18:36:02.399763 2010] debug: Module run time directory has been cleaned out
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #7 on: October 06, 2010, 12:36:13 AM »

To assist I am pastebinning my

inspircd.conf:  http://pastebin.ca/1955240

and

links.conf: http://pastebin.ca/1955241
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #8 on: October 06, 2010, 12:43:51 AM »

can you  paste /stats p
what do you have in ServerName in services.conf? looks like you have connor-linux but it's truenorth.connor-linux in the link block, needs to match, and not be the same as your irc servers.
You also need a U:line with the services server name.
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #9 on: October 06, 2010, 12:49:15 AM »

fixed the server name in my services.conf, did not fix anything

here is a pastebin of services.conf

http://pastebin.ca/1955248
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #10 on: October 06, 2010, 01:09:10 AM »

you have two binds covering port 7000, remove one, rehash and paste /stats p. i meant to ask before, is your inspircd modules config named modules.conf.example or modules.conf?
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #11 on: October 07, 2010, 06:56:49 PM »

I will make those changes later today, I can't be restarting the irc service every time I make a change, it would be disruptive to the people using it.  And its modules.conf, pastebin here:

http://pastebin.ca/1957026

edit: I do have to restart the service anytime I edit the inspircd.conf right?
« Last Edit: October 07, 2010, 06:59:31 PM by Connor Doran »
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #12 on: October 07, 2010, 07:02:23 PM »

ok, well this is from your inspircd.conf
<include file="conf/modules.conf.example">

so modules.conf isn't getting included, which will mean you don't have spanning tree loaded, and all bind blocks with type="server" are void.
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #13 on: October 07, 2010, 07:04:52 PM »

fixed.  Is there a way to reload inspircd.conf without restarting the service?
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #14 on: October 07, 2010, 07:08:07 PM »

yes, /rehash  it will be your new best friend
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #15 on: October 07, 2010, 07:08:45 PM »

lol nice.  can you show me how to use rehash?
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #16 on: October 07, 2010, 07:09:56 PM »

nevermind got it.  "/rehash" in irc client
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #17 on: October 07, 2010, 07:15:10 PM »

I get this:

* inspircd.conf :Rehashing
* *** Not all your client ports could be bound.
* *** The following port(s) failed to bind:
* *** 1.   Address: 1.2.3.4:7005   Reason: Cannot assign requested address
* *** 2.   Address: [::]:7000   Reason: Address already in use
* m_chghost.so :Module m_chghost.so successfully loaded.
* m_globops.so :Module m_globops.so successfully loaded.
* m_hidechans.so :Module m_hidechans.so successfully loaded.
* m_spanningtree.so :Module m_spanningtree.so successfully loaded.
* m_services_account.so :Module m_services_account.so successfully loaded.


Tried reloading anope anyways and got:


[Oct 07 13:15:17.591392 2010] debug: Received: ERROR :Invalid credentials
[Oct 07 13:15:17.591420 2010] debug: unknown message from server (ERROR :Invalid credentials)
[Oct 07 13:15:20.220738 2010] debug: Emitting event "db_saving" (1 args)
[Oct 07 13:15:20.220812 2010] [hs_request] Succesfully saved database
[Oct 07 13:15:20.220865 2010] debug: Saving FFF databases
[Oct 07 13:15:20.221633 2010] debug: Emitting event "db_saving" (1 args)
[Oct 07 13:15:20.221660 2010] debug: Emitting event "shutdown" (1 args)
[Oct 07 13:15:20.221680 2010] Read error from server: No such file or directory (error num: 2)
[Oct 07 13:15:20.221740 2010] debug: Sent: :3AX SQUIT truenorth.connor-linux :Read error from server: No such file or directory (error num: 2)
[Oct 07 13:15:20.221769 2010] debug: firstuser() returning NULL (end of list)
[Oct 07 13:15:20.221790 2010] debug: Emitting event "shutdown" (1 args)
[Oct 07 13:15:20.225702 2010] [cs_appendtopic] Unloaded successfully
[Oct 07 13:15:20.226965 2010] [hs_request] Saving database...
[Oct 07 13:15:20.227015 2010] [hs_request] Succesfully saved database
[Oct 07 13:15:20.227039 2010] hs_request un-loaded
[Oct 07 13:15:20.232495 2010] debug: Cleaning out Module run time directory (/home/intuit/anopeinstalled/modules/runtime) - this may take a moment please wait
[Oct 07 13:15:20.232571 2010] debug: Module run time directory has been cleaned out
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #18 on: October 07, 2010, 07:18:38 PM »

does the password in RemoteServer in services.conf match recvpass in the link block ?
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #19 on: October 07, 2010, 07:22:57 PM »

Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #20 on: October 07, 2010, 07:29:58 PM »

that would usually be something like a mismatched server name or wrong password, im not 100% sure about inspircds errors, I assume you links config is called links.conf ? in which case we may have the same issue we had with modules.conf -> <include file="conf/links.conf.example">
still need to Uline services btw
<uline server="truenorth.connor-linux" silent="yes">
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #21 on: October 07, 2010, 07:32:01 PM »

uline in the inspircd.conf?
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #22 on: October 07, 2010, 07:33:47 PM »

yep, replace the default one
Logged

Connor Doran

  • Anope User
  • Offline Offline
  • Posts: 19
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #23 on: October 07, 2010, 07:43:31 PM »

fixed. now I get

* inspircd.conf :Rehashing
* *** Invalid character < in key () at conf/links.conf:91:1 (inside tag link at line 19)
* *** Included at /var/opt/inspircd/run/conf/inspircd.conf:409:32 (inside tag include at line 409)

cant find the invalid character
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: Linking Anope 1.8.x to Inspircd 2.0
« Reply #24 on: October 07, 2010, 07:49:22 PM »

look at line 19 of your links.conf: http://pastebin.ca/1957047
You have an uncommented opening to a link block, with the end commented, put a # in front.
Logged
Pages: [1] 2   Go Up