Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: NoLinking Anope to InspIRCd  (Read 6887 times)

0 Members and 1 Guest are viewing this topic.

bernard leite

  • Anope User
  • Offline Offline
  • Posts: 5
NoLinking Anope to InspIRCd
« on: January 12, 2015, 02:09:05 PM »

Hello friends,

I can not set the Anope to inspircd because the same error could help me?

Error:

./services --debug --nofork

[Jan 12 15:06:58.931188 2015] Debug: Anope 2.0.1, build #3, compiled 15:12:27 Jan 11 2015
[Jan 12 15:06:58.931222 2015] Debug: Using configuration file conf/services.conf
[Jan 12 15:06:58.931247 2015] Debug: Start to read conf services.conf
[Jan 12 15:06:58.931275 2015] Debug: ln 7 EOL: s='define' 'name' set to 'services'
[Jan 12 15:06:58.931294 2015] Debug: ln 8 EOL: s='define' 'value' set to 'services.chatpoint.org'
[Jan 12 15:06:58.931439 2015] Debug: Unexpected word: services.conf:44
[Jan 12 15:06:58.931451 2015] Debug: *** Support resources: Read through the services.conf self-contained
[Jan 12 15:06:58.931460 2015] Debug: *** documentation. Read the documentation files found in the 'docs'
[Jan 12 15:06:58.931468 2015] Debug: *** folder. Visit our portal located at http://www.anope.org/. Join
[Jan 12 15:06:58.931477 2015] Debug: *** our support channel on /server irc.anope.org channel #anope.
[Jan 12 15:06:58.931543 2015] Debug: Configuration file failed to validate


My conf..

services.conf

Code: [Select]
define
{
name = "services"
value = "services.chatpoint.org"
}

/*
 * [OPTIONAL] Additional Includes
 *
 * You can include additional configuration files here.
 * You may also include executable files, which will be executed and
 * the output from it will be included into your configuration.
 */

#include
{
type = "file"
name = "some.conf"
}

#include
{
type = "executable"
name = "/usr/bin/wget -q -O - http://some.misconfigured.network.com/services.conf"
}

/*
 * [REQUIRED] IRCd Config
 *
 * This section is used to set up Anope to connect to your IRC network.
 * This section can be included multiple times, and Anope will attempt to
 * connect to each server until it finally connects.
 *
 * Each uplink IRCd should have a corresponding configuration to allow Services
 * to link to it.
 *
 * An example configuration for InspIRCd that is compatible with the below uplink
 * and serverinfo configuration would look like:
 */
     <link name="services.chatpoint.org"
            ipaddr="127.0.0.1"
            port="7000"
            sendpass="PASS01"
            recvpass="PASS02">
      <uline server="services.chatpoint.org" silent="yes">
      <bind address="127.0.0.1" port="7000" type="servers">


links.conf (inspircd)

Code: [Select]
#-#-#-#-#-#-#-#-#-#-#-  SERVER LINK CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
#                                                                     #
# Defines which servers can link to this one, and which servers this  #
# server may create outbound links to.                                #
#                                                                     #
#    ____                _   _____ _     _       ____  _ _   _        #
#   |  _ \ ___  __ _  __| | |_   _| |__ (_)___  | __ )(_) |_| |       #
#   | |_) / _ \/ _` |/ _` |   | | | '_ \| / __| |  _ \| | __| |       #
#   |  _ <  __/ (_| | (_| |   | | | | | | \__ \ | |_) | | |_|_|       #
#   |_| \_\___|\__,_|\__,_|   |_| |_| |_|_|___/ |____/|_|\__(_)       #
#                                                                     #
#  If you want to link servers to InspIRCd you must load the          #
#  m_spanningtree.so module!                                          #
#                                                                     #
#                                                                     #

<link
      # name: The name of the remote server. This must match
      # the <server:name> value of the remote server.
      name="hub.chatpoint.org"

      # ipaddr: The IP address of the remote server.
      # Can also be a hostname, but hostname must resolve.
      ipaddr="chatpoint.org"

      # port: The port to connect to the server on.
      # It must be bound as a server port on the other server.
      port="7000"

      # allowmask: Range of IP addresses to allow for this link.
      # Can be a CIDR (see example).
      allowmask="203.0.113.0/24"

      # timeout: If defined, this option defines how long the server
      # will wait to consider the connect attempt failed and try the
      # failover (see above).
      timeout="300"

      # ssl: If defined, this states the SSL module that will be used when
      # making an outbound connection to the server. Options are: "openssl"
      # and "gnutls" (they are compatible with each other).
      #
      # You will need to load the m_ssl_openssl.so module for OpenSSL,
      # m_ssl_gnutls.so for GnuTLS. The server port that you connect to
      # must be capable of accepting this type of connection.
      ssl="gnutls"

      # fingerprint: If defined, this option will force servers to be
      # authenticated using SSL Fingerprints. See http://wiki.inspircd.org/SSL
      # for more information. This will require an SSL link for both inbound
      # and outbound connections.
      #fingerprint=""

      # bind: Local IP address to bind to.
      bind="1.2.3.4"

      # statshidden: Defines if IP is shown to opers when
      # /STATS c is invoked.
      statshidden="no"

      # hidden: If this is set to yes, this server and its "child"
      # servers will not be shown when users do a /MAP or /LINKS.
      hidden="no"

      # passwords: the passwords we send and receive.
      # The remote server will have these passwords reversed.
      # Passwords that contain a space character or begin with
      # a colon (:) are invalid and may not be used.
      sendpass="outgoing!password"
      recvpass="incoming!password">

# A duplicate of the first link block without comments
# if you like copying & pasting.
<link name="hub.penguin.org"
      ipaddr="penguin.box.com"
      port="7000"
      allowmask="203.0.113.0/24"
      timeout="300"
      ssl="gnutls"
      bind="1.2.3.4"
      statshidden="no"
      hidden="no"
      sendpass="outgoing!password"
      recvpass="incoming!password">

# Link block for services. Options are the same as for the first
# link block (depending on what your services package supports).
<link name="services.chatpoint.org"
      ipaddr="127.0.0.1"
      port="7000"
      allowmask="127.0.0.1/8"
      # 127.0.0.1/8
      sendpass="PASS01"
      recvpass="PASS02">

# Simple autoconnect block. This enables automatic connection of a server
# Recommended setup is to have leaves connect to the hub, and have no
# automatic connections started by the hub.
<autoconnect period="300" server="hub.chatpoint.org">

# Failover autoconnect block. If you have multiple hubs, or want your network
# to automatically link even if the hub is down, you can specify multiple
# space separated servers to autoconnect; they will be tried in a round
# robin fashion until one succeeds. Period defines the time for restarting
# a single loop.
<autoconnect period="120"
server="hub.br.chatpoint.org hub.us.chatpoint.org">


#-#-#-#-#-#-#-#-#-#-#-#- ULINES CONFIGURATION #-#-#-#-#-#-#-#-#-#-#-#-#
# This tag defines a ulined server. A U-Lined server has special      #
# permissions, and should be used with caution. Services servers are  #
# usually u-lined in this manner.                                     #
#                                                                     #
# The 'silent' value, if set to yes, indicates that this server should#
# not generate quit and connect notices, which can cut down on noise  #
# to opers on the network.                                            #
#                                                                     #
<uline server="services.chatpoint.org" silent="yes">


Where am I going wrong?
Logged

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: NoLinking Anope to InspIRCd
« Reply #1 on: January 12, 2015, 02:17:33 PM »

Code: [Select]
[Jan 12 15:06:58.931439 2015] Debug: Unexpected word: services.conf:44
There is a syntax error in services.conf near line 44
Logged

bernard leite

  • Anope User
  • Offline Offline
  • Posts: 5
Re: NoLinking Anope to InspIRCd
« Reply #2 on: January 12, 2015, 02:21:05 PM »

44.     <link name="services.chatpoint.org"


?
Logged

bernard leite

  • Anope User
  • Offline Offline
  • Posts: 5
Re: NoLinking Anope to InspIRCd
« Reply #3 on: January 12, 2015, 02:31:30 PM »

Code: [Select]
[Jan 12 15:06:58.931439 2015] Debug: Unexpected word: services.conf:44
There is a syntax error in services.conf near line 44

Continues with the error.
Logged

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: NoLinking Anope to InspIRCd
« Reply #4 on: January 12, 2015, 10:54:05 PM »

The given line number is where the configuration parser got confused. In this case line 44. That means the error is on line 43 or lower. Start at line 43 and scan upwards until you find the error.
Logged
Pages: [1]   Go Up