Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Anope 2.0.1 Issue  (Read 6164 times)

0 Members and 1 Guest are viewing this topic.

Scott

  • Anope User
  • Offline Offline
  • Posts: 2
Anope 2.0.1 Issue
« on: June 25, 2014, 02:45:27 AM »

./services
Anope 2.0.1, build #2, compiled 17:28:46 Jun 24 2014
Using configuration file conf/services.conf
Unexpected word: services.conf:142
*** Support resources: Read through the services.conf self-contained
*** documentation. Read the documentation files found in the 'docs'
*** folder. Visit our portal located at http://www.anope.org/. Join
*** our support channel on /server irc.anope.org channel #anope.

------------------------------------------------------------------------
link hub.twedev.com
      {
           username *;
           hostname *;
           bind-ip "127.0.0.1";
           port 7029;
           hub *;
           password-connect "apasswordhere";
           password-receive "apasswordhere";
           class servers;
      };
   ulines { hub.twedev.com; };
    listen 127.0.0.1:7029;

Uplink and ServerInfo all say the same thing., line 142 in the above mentioned error is at the link on line 142 of services.conf.

Can someone lend a hand here?

Thank you
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: Anope 2.0.1 Issue
« Reply #1 on: June 25, 2014, 03:14:50 AM »

It looks like you are trying to feed Anope an unrealircd config. This doesn't work.
Logged

Scott

  • Anope User
  • Offline Offline
  • Posts: 2
Re: Anope 2.0.1 Issue
« Reply #2 on: June 25, 2014, 07:41:47 PM »

Adam this is from the example config. I've seen the same things said on other threads and it infuriates me. If Anope put this in their example, it should, in theory, work. I don't see how uplink can talk to link from anope to unreal. I'm about to say screw it and try it with inspircd
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: Anope 2.0.1 Issue
« Reply #3 on: June 25, 2014, 07:57:28 PM »

Hi,

You should consider reading the example configuration file and the examples I so nicely put there.

Since you seem to be having so much trouble, I will read it for you.

Let's see.

Quote
* 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.

This roughly translates to "you need to configure your uplink information here.".
Now for the second part:

Code: [Select]
* Each uplink IRCd should have a corresponding configuration to allow Services
 * to link to it.

Once again, translated from English, states that we must configure the IRCd too, and we can not simply headbang the keyboard instead.

Let's scroll down a little bit.

Quote
* An example configuration for UnrealIRCd that is compatible with the below uplink
 * and serverinfo configuration would look like:
 *
 * link services.localhost.net
 * {
 * username *;
 * hostname *;
 * bind-ip "127.0.0.1";
 * port 7000;
 * hub *;
 * password-connect "mypassword";
 * password-receive "mypassword";
 * class servers;
 * };
 * ulines { services.localhost.net; };
 * listen 127.0.0.1:7000;

Wow. That's a lot of text. Let's break it down into something a bit easier to read.

Code: [Select]
* An example configuration for UnrealIRCd that is compatible with the below uplink
 * and serverinfo configuration would look like:

This says that the part following the : is an example configuration for UnrealIRCd, which is the ircd, and it is compatible with the below "uplink" and "serverinfo" blocks, which can be observed on lines 154 and 198.

From here, we can conclude that:

Quote
* link services.localhost.net
 * {
 * username *;
 * hostname *;
 * bind-ip "127.0.0.1";
 * port 7000;
 * hub *;
 * password-connect "mypassword";
 * password-receive "mypassword";
 * class servers;
 * };
 * ulines { services.localhost.net; };
 * listen 127.0.0.1:7000;

Is a link block for UnrealIRCd, and it should not go in to our services configuration.

Here it is again, in bold!

Is a link block for UnrealIRCd, and it should not go in to our services configuration.


You can also use the power of observation and note that the format it uses is not consistent with the format that is described in the first 30 or so lines of the example configuration, you can then conclude with a reasonable degree of certainty that this configuration should not go in to services.conf, without having to read and analyze each sentence.
Logged
Pages: [1]   Go Up