Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: low on December 06, 2022, 04:48:52 PM

Title: Error during starting Anope (connection reset by peer)
Post by: low on December 06, 2022, 04:48:52 PM
Anope 2.0.11, build #2, compiled 05:28:08 Dec  6 2022, flags D
Using configuration file conf/services.conf
Attempting to connect to uplink #1 127.0.0.1 (127.0.0.1/7001) with protocol UnrealIRCd 4+
Successfully connected to uplink #1 127.0.0.1:7001
Lost connection from uplink #1 (127.0.0.1:7001): Connection reset by peer
Title: Re: Error during starting Anope (connection reset by peer)
Post by: Lord255 on December 06, 2022, 04:56:43 PM
did you set a listen port on unrealircd side for port 7001?
did you do a /rehash ?


can you please paste your unreal's link and listen block and anope's uplink block?
Title: Re: Error during starting Anope (connection reset by peer)
Post by: CrazyCat on December 06, 2022, 10:52:11 PM
And you can also turn on debug: https://wiki.anope.org/index.php/2.0/Configuration#Logging and https://www.unrealircd.org/docs/Configuration#Step_2:_specify_where_to_log_to
Title: Re: Error during starting Anope (connection reset by peer)
Post by: low on December 07, 2022, 02:43:14 PM
This is on unrealircd:-


/* Special SSL/TLS servers-only port for linking */
listen {
   ip 127.0.0.1;
   port 7001;
   options { tls; serversonly; }



/* The link block for services is usually much simpler.
 * For more information about what Services are,
 * see https://www.unrealircd.org/docs/Services
 */

link services.venom.org
{
       
   incoming {
      mask *@127.0.0.1;
                port 7001;
                             
   }

   password "mypassword";

   class servers;
}


This is on anope:-

uplink
{
   /*
    * The IP or hostname of the IRC server you wish to connect Services to.
    * Usually, you will want to connect Services over 127.0.0.1 (aka localhost).
    *
    * NOTE: On some shell providers, this will not be an option.
    */
   host = "127.0.0.1"

   /*
    * Enable if Services should connect using IPv6.
    */
   ipv6 = no

   /*
    * Enable if Services should connect using SSL.
    * You must have an SSL module loaded for this to work.
    */
   ssl = no

   /*
    * The port to connect to.
    * The IRCd *MUST* be configured to listen on this port, and to accept
    * server connections.
    *
    * Refer to your IRCd documentation for how this is to be done.
    */
   port = 7001

   /*
    * The password to send to the IRC server for authentication.
    * This must match the link block on your IRCd.
    *
    * Refer to your IRCd documentation for more information on link blocks.
    */
   password = "mypassword"
}
Title: Re: Error during starting Anope (connection reset by peer)
Post by: Lord255 on December 07, 2022, 02:55:26 PM
i see one problem here:
   options { tls; serversonly; }
remove tls; :)

also in the link block the port is not needed. :)

some help (its in your conf too): https://github.com/anope/anope/blob/211bd80061fd02004c7c2ef258f6404ff708bee6/data/example.conf#L141-L160
Title: Re: Error during starting Anope (connection reset by peer)
Post by: low on December 08, 2022, 04:17:24 PM
Thanks Lord255, it's working now :-)

Anope 2.0.11, build #2, compiled 05:28:08 Dec  6 2022, flags D
Using configuration file conf/services.conf
Attempting to connect to uplink #1 127.0.0.1 (127.0.0.1/7001) with protocol UnrealIRCd 4+
Successfully connected to uplink #1 127.0.0.1:7001
Successfully linked, launching into background...



i see one problem here:
   options { tls; serversonly; }
remove tls; :)

also in the link block the port is not needed. :)

some help (its in your conf too): https://github.com/anope/anope/blob/211bd80061fd02004c7c2ef258f6404ff708bee6/data/example.conf#L141-L160
Title: Re: Error during starting Anope (connection reset by peer)
Post by: Lord255 on December 08, 2022, 04:53:39 PM
suresies. you are welcome! enjoy. :)