Page 1 of 1

anope services won't run

Posted: Sat Jan 22, 2005 12:18 pm
by Squall89
hi,

i have installed the win32 anope services on my machine
then i have edited the config file of anope and the config
file of unreal, but they won't start. If I start I get this message on
the irc client:
-irc.behemoth.de- *** LocOps -- Link denied for services.localhost.com([email protected]) (No link block named 'services.localhost.com') [@127.0.0.1.1223]
-

I think I have them linked well, here is a code from both files:

unreal.conf:

Code: Select all

/*
 * NEW: link {}
 * OLD: C/N/:Lines
 * This defines an okay for a server connection.
 * NOTE: BOTH SERVERS NEED A LINK {} SETTING TO CONNECT PROPERLY!
 * Syntax is as follows:

 
link services.localhost.com
{
        username        *;
        hostname        localhost;
        bind-ip         *;
        port            6697;
        hub             *;
        password-connect "services";
        password-receive "services"; 
        class           servers;
};
ulines {
   services.localhost.com
};

services.conf:

Code: Select all

RemoteServer    localhost 6697 "services"
...
# ServerName <name>  [REQUIRED]
#     Specifies the IRC server name which Services should use.  May be
#     overridden by the -name command-line option.

ServerName  "services.localhost.com"
it won't start.. how can i get them started ?
thx in advance

Posted: Sat Jan 22, 2005 12:38 pm
by Dukat
Your Link Block is commented out...

Posted: Sat Jan 22, 2005 1:36 pm
by Eros
if its localhost. then make ur link block like bellow in unrealircd.conf

Code: Select all

/*
 * NEW: link {}
 * OLD: C/N/:Lines
 * This defines an okay for a server connection.
 * NOTE: BOTH SERVERS NEED A LINK {} SETTING TO CONNECT PROPERLY!
 * Syntax is as follows:

 
link services.localhost.com
{
        username        *;
        hostname        *;
        bind-ip         *;
        port            *;
        hub             *;
        password-connect "services";
        password-receive "services";
        class           servers;
};
ulines {
   services.localhost.com
}; 
i think it'll work now. & also check ur services.conf file that u put correct llinks.

Posted: Sat Jan 22, 2005 1:50 pm
by Squall89
Dukat wrote:Your Link Block is commented out...
Why is it commented out ? there is no # or *...


I changed it like Eros said, but it still won't work...

Posted: Sat Jan 22, 2005 2:20 pm
by Dukat
example.conf wrote:/* Type of comments */
#Comment type 1 (Shell type)
// Comment type 2(C++ style)
/* Comment type 3 (C Style) */
#those lines are ignored by the ircd.
You are opening a comment on the very first line you pasted.

/* means begin comment. You have to close it with */

Posted: Sun Jan 23, 2005 11:17 am
by Squall89
i have changed it like you said, but now i get an error
with my config file:
* Loading IRCd configuration ..
[error] unrealircd.conf:296: Missing semicolon before close brace
[error] Could not load config file unrealircd.conf
[error] IRCd configuration failed to load

Here is my config file:
http://behemoth2.m-hc.de/unrealircd.conf

I don't know what i should do with this error messages..[/code]

Posted: Sun Jan 23, 2005 11:51 am
by Dukat
The error message is very clear: You forgot a semicolon on line 296 (or somewhere around line 296)...
Check your config file: Every statement has to be terminated by a semicolon (;).

Posted: Sun Jan 23, 2005 12:03 pm
by Squall89
i search for this statement without semicolon, but i didn't find it here
are the lines:

Code: Select all

listen         *:6667
{
	options
	{
	      #ssl;
		clientsonly;
	};
};
listen         localhost:6697
{
   options
   {
      serversonly;
   };
};


/* NOTE: If you are on an IRCd shell with multiple IP's you are
 *       likely to get 'Address already in use' errors in your log
 *       and the ircd won't start. This means you MUST bind
 *       to a specific IP instead of '*', so for example:
 *       listen 1.2.3.4:6667;
 *       Obviously, replace the IP with the IP that was assigned to you.
 */

/*
 * NEW: link {}
 * OLD: C/N/:Lines
 * This defines an okay for a server connection.
 * NOTE: BOTH SERVERS NEED A LINK {} SETTING TO CONNECT PROPERLY!
 * Syntax is as follows:*/
 
link services.localhost.com
{
        username        *;
        hostname        *;
        bind-ip         *;
        port            *;
        hub             *;
        password-connect "services";
        password-receive "services";
        class           servers;
};
ulines {
services.localhost.com
}; 

 *      /* If we use SSL, we can choose what cipher to use in SSL mode
 *       * Retrieve a list by "openssl ciphers", seperate ciphers with :'s
 *      */
 *      ciphers "DES-CBC3-MD5";
 * 
 * };
*/
/*
	options:
	OLD	|	NEW
	S		ssl
	Z		zip
	N/A		autoconnect
	N/A		quarantine
	N/A		nodnscache
*/
/*
 *
 * NEW: ulines {}
 * OLD: U:Line
 * U-lines give servers more power/commands, this should ONLY be set
 * for services/stats servers and NEVER for normal UnrealIRCd servers!
 * Syntax is as follows:
 * ulines {
 *	(server to uline);
 *	(server to uline);
 *  [etc]
 * };
*/
#ulines {
	#services.localhost.com;
      #};
	#stats.roxnet.org;
Where have i forget it ?

Posted: Sun Jan 23, 2005 12:07 pm
by Dukat
:shock:

Code: Select all

ulines {
services.localhost.com
}; 

Oh, and:

Code: Select all

 *      /* If we use SSL, we can choose what cipher to use in SSL mode 
is wrong too....

Posted: Sun Jan 23, 2005 12:21 pm
by Squall89
[quote="Dukat"]:shock:

Code: Select all

ulines {
services.localhost.com
}; 

Where should i paste the semicolon there ?

Posted: Sun Jan 23, 2005 12:51 pm
by Dukat
Dukat wrote:Every statement has to be terminated by a semicolon (;).
See also:
http://www.vulnscan.org/UnrealIRCd/unre ... linesblock

Posted: Sun Jan 23, 2005 12:54 pm
by Squall89
i managed it big thx to all !

anope for win32

Posted: Wed Feb 02, 2005 12:55 am
by bash109
i have anope up and running but when i try to use it i get no response from it no answer or anything is there something i have to do to get it to answer me???

Posted: Wed Feb 02, 2005 5:21 pm
by Ron2K
Please start a new question in a new thread.