Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: pea on December 28, 2009, 03:07:53 PM

Title: Connecting but possibly dropping
Post by: pea on December 28, 2009, 03:07:53 PM
Hello,

The log is telling me it's connected to the server (Connected to Server 1 (109.73.x.x:6667)) but it's not listed in /lists and i can't pm chanserv. Someone told me it might be connecting and then dropping. What could I have done to cause that?

Thanks
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 28, 2009, 03:16:45 PM
Could be many things.

Run ./services -support (or anope.exe -support)

And show us the output from the logfile.
Title: Re: Connecting but possibly dropping
Post by: pea on December 28, 2009, 03:29:01 PM
Apparently I need to install extra software to copy an entire text file so here's the last section. If you need the whole thing i'll have to install it.

http://pastebin.com/m670f3ac9
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 28, 2009, 03:31:14 PM
I think you've got your listen/link info incorrectly set.

Can you paste those sections from your insp and anope configs.
Title: Re: Connecting but possibly dropping
Post by: pea on December 28, 2009, 03:55:27 PM
services.conf - http://pastebin.com/m4e5e7afa
links.conf - http://pastebin.com/m5321c328

I've changed the password to 'password'. It's not actually 'password'.
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 28, 2009, 03:57:09 PM
And the bind stuff for 6667?
Title: Re: Connecting but possibly dropping
Post by: pea on December 28, 2009, 04:24:15 PM
Which bind stuff are you referring to? The links config file?
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 28, 2009, 04:26:26 PM
I'm after the info configured for port 6667. (bind/listen tags).

I ask because you have two linkblocks in links.conf, the first for an ircd on 6667 telling it to use gnutls and the second for Anope.

If the gnutls one is accurate then anope won't link to 6667 if its being told to use gnutls (which would be odd as normal client connections would fail).

Clarification of your configs here would help.

Title: Re: Connecting but possibly dropping
Post by: pea on December 28, 2009, 04:30:16 PM
http://pastebin.com/m51f8c6b7
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 28, 2009, 04:37:13 PM
That'd explain that, you're asking for SSL on connections inbound on 6667 which Anope won't support. (nor will irc clients that aren't expecting it either).

I'd suggest you turn that off on port 6667 and use a port such as 6697 for SSL.

Change the anope port to 7000 or 7001 which you have set up properly for servers. (you'll need to fix the linkblock and services.conf)
Title: Re: Connecting but possibly dropping
Post by: Syloq on December 28, 2009, 04:37:40 PM
It appears that you're having a server connect to a client port. You need to have a port that only servers connect to for this to work properly.
Title: Re: Connecting but possibly dropping
Post by: pea on December 29, 2009, 02:08:10 PM
Sorry to be dense, but the services log is telling me "FATAL: Can't connect to any servers: Connection refused". Have I made the correct changes?

services.conf - http://pastebin.com/m416fe07a
inspircd.conf - http://pastebin.com/m5f75c70d
links.conf - http://pastebin.com/md698e65
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 29, 2009, 02:11:33 PM
Is m_spanningtree loaded on inspircd? (Looks like port 7000 isn't open)
Title: Re: Connecting but possibly dropping
Post by: pea on December 29, 2009, 03:03:13 PM
I enabled m_spanningtree and opened port 7000 but I get the same result.
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 29, 2009, 03:05:41 PM
Can you show us a debug log from anope please.

./services -support
Title: Re: Connecting but possibly dropping
Post by: LEthaLity on December 29, 2009, 03:08:34 PM
dont forget to sort out that uline in links.conf
Title: Re: Connecting but possibly dropping
Post by: pea on December 29, 2009, 03:28:31 PM
http://pastebin.com/m647a4a23

I've fixed the uline.
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 29, 2009, 03:41:37 PM
From your shell try and telnet to 109.73.162.21 on port 7000 I don't think it's open.

Certainly not when I'm trying from here.
Title: Re: Connecting but possibly dropping
Post by: pea on December 29, 2009, 09:23:19 PM
It's open but I can't telnet it either. If I change this bind to 7000 or any other port I get access.

<bind address="109.73.162.21" port="6668" type="clients">

Even though I have this line I don't have access

<bind address="109.73.162.21" port="7000" type="servers">

The firewall definitely has ports 666 to 7001 open. But I can't access ports that aren't for clients, opposed to servers.
Title: Re: Connecting but possibly dropping
Post by: LEthaLity on December 29, 2009, 09:28:30 PM
that really would suggest that m_spanningtree isnt loaded, as server binds dont work without it, i noticed your include in inspircd.conf was modules.conf.example, have you actually edited modules.conf, spanning tree is right at the bottom of it
Title: Re: Connecting but possibly dropping
Post by: pea on December 29, 2009, 09:38:14 PM
Yes that was it!

Now I get "
"

Isn't this correct?

<bind address="109.73.162.21" port="6668" type="servers" transport="openssl">
Title: Re: Connecting but possibly dropping
Post by: LEthaLity on December 29, 2009, 10:04:13 PM
openssl is also in modules.conf : <module name="m_ssl_openssl.so"> it needs uncommenting.
It also requries you to re-run ./configure for inspircd and doing some extra stuff, for the sake of just getting services to run, i'd take out the transport part of your binds. Also Anope doesnt support ssl, in case you're connecting anope to an ssl port.
Title: Re: Connecting but possibly dropping
Post by: pea on December 30, 2009, 02:33:20 PM
I keep getting this even though the gnutls module isn't loaded and nothing is using it, not even hub.penguin.net. I've looked in the configs of links, modules, inspircd.conf, services.conf and hub.penguin.net doesn't even exist.

Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 30, 2009, 02:34:15 PM
It will exist, look for it.
Title: Re: Connecting but possibly dropping
Post by: pea on December 30, 2009, 03:08:37 PM
Ok, I found another module I forgot to rename from .example. Now I get Connected to Server 1 (109.73.162.21:6668). I can't whois chanserv though.
Title: Re: Connecting but possibly dropping
Post by: Charles Kingsley on December 30, 2009, 03:11:00 PM
Pastebin the whole lot.
Title: Re: Connecting but possibly dropping
Post by: pea on December 30, 2009, 10:49:42 PM
Code: [Select]
[Dec 30 17:40:32 2009] Done reading configuration file.
[Dec 30 17:40:32 2009] Loading IRCD Protocol Module: [inspircd12]
[Dec 30 17:40:32 2009] Module inspircd12 compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Loading Encryption Module: [enc_none]
[Dec 30 17:40:32 2009] Module enc_none compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Anope 1.9.1-p1 (2691) (ircd protocol: InspIRCd 1.2) starting up
[Dec 30 17:40:32 2009] Module ns_help compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_register compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_group compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_identify compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_access compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_set compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_saset compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_drop compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_recover compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_release compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_sendpass compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_ghost compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_alist compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_info compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_list compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_logout compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_status compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_update compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_getpass compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_getemail compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_forbid compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_suspend compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_help compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_register compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_identify compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_set compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_xop compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_access compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_akick compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_drop compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_sendpass compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_ban compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_clear compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_modes compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_getkey compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_invite compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_kick compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_list compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_logout compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_topic compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_info compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_getpass compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_forbid compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_suspend compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_status compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_send compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_cancel compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_list compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_read compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_del compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_set compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_info compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Error while loading ms_rsend: Don't like memo reciepts, or something.
[Dec 30 17:40:32 2009] Module ms_check compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_staff compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_sendall compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ms_help compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_help compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_botlist compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_assign compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_set compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_kick compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_badwords compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_act compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_info compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_say compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_unassign compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module bs_bot compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_help compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_global compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_stats compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_staff compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_mode compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_kick compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_clearmodes compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_akill compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Error while loading os_sgline: Your IRCd does not support SGLine
[Dec 30 17:40:32 2009] Module os_sqline compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_szline compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_chanlist compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_userlist compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_news compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_session compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_noop compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_jupe compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_ignore compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_set compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_reload compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_update compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_restart compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_quit compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_shutdown compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_defcon compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_chankill compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_svsnick compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Error while loading os_oline: Your IRCd does not support OMODE.
[Dec 30 17:40:32 2009] Module os_umode compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_modload compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_modunload compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_modlist compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module os_modinfo compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_help compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_on compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_off compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_group compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_list compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_set compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_setall compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_del compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_delall compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_appendtopic compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module cs_enforce compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module ns_maxemail compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] os_info: Directive OSInfoDBName loaded (os_info.db)...
[Dec 30 17:40:32 2009] Module os_info compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] Module hs_request compiled against current version of Anope 2691
[Dec 30 17:40:32 2009] serv_uplink is (nil) and status is 0
[Dec 30 17:40:32 2009] serv_uplink is (nil) and status is 0
[Dec 30 17:40:32 2009] serv_uplink is (nil) and status is 0
[Dec 30 17:40:32 2009] serv_uplink is (nil) and status is 0
[Dec 30 17:40:32 2009] serv_uplink is (nil) and status is 0
[Dec 30 17:40:32 2009] serv_uplink is (nil) and status is 0
[Dec 30 17:40:32 2009] serv_uplink is (nil) and status is 0
[Dec 30 17:40:32 2009] Databases loaded
[Dec 30 17:40:32 2009] Info: Reflecting database records.
[Dec 30 17:40:32 2009] Connected to Server 1 (109.73.162.21:6668)

Also, I can't see services in the process list.

Code: [Select]
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
norm      4004  0.0  0.3  11288  6804 ?        Ss   17:41   0:00 /home/publicde/ircd/bin/inspircd
norm     10019  0.0  0.0   5360   928 pts/0    R+   17:46   0:00 ps ux
norm     26199  0.0  0.0   9924  1688 ?        S    17:31   0:00 sshd: norm@pts/0
norm     26200  0.0  0.0   5760  1512 pts/0    Ss   17:31   0:00 -bash
Title: Re: Connecting but possibly dropping
Post by: Jens Voss on December 31, 2009, 08:46:07 AM
<bind address="109.73.162.21" port="6668" type="servers" transport="openssl">

Don't connect to a ssl enabled port! Anope does not support ssl or zip links.
Title: Re: Connecting but possibly dropping
Post by: pea on December 31, 2009, 09:35:28 AM
That was fixed a few days ago when LEthaLity told me. Don't think it'd be able to connect otherwise.
Title: Re: Connecting but possibly dropping
Post by: LEthaLity on December 31, 2009, 09:47:50 AM
I think we need to see the binds, links again, and a debug log
Title: Re: Connecting but possibly dropping
Post by: Jens Voss on December 31, 2009, 11:50:24 AM
Problem solved. He used the same numeric for services and ircd. It works fine now :)

I blame inspircd for not sending an error message before closing the link.