Page 1 of 2

server went down and wont start .. no errors

Posted: Fri May 20, 2005 2:35 am
by X10tion
i had my Unreal for a month now .. it was all fine and i set it up my self .. had a friend help me with some bits of settings .. it was all fine till today morning it was down ..

whenever i connect i get connection refused .

went to my shell and started IRCD .. all i got was

Code: Select all

* Loading IRCd configuration ..
[error] Could not load config file unrealircd.conf
[error] IRCd configuration failed to load
it doesnt show any error
looked for logs .. checked config.log and ircd.log and there was nothing out of order ..

any hints on what wud have happened ?

Posted: Fri May 20, 2005 3:00 am
by aquanight
Welll, since config files don't just get up and walk away, someone (as in, a human, like you or someone else that has access to the system/account) had to have (re)moved it. I would suggest do a search of the system (or at least whatever part(s) of it you can access). If necessary, you may have to just create a new one.

Posted: Fri May 20, 2005 3:04 am
by X10tion
i checked already and the file is right there and not changed

it is the same as the way i set it up back a month ago

Posted: Fri May 20, 2005 3:08 am
by aquanight
hm.. probably a permission error then. Might need to check your permissions on everything (eg login to shell try: cat unrealircd.conf > /dev/null if that fails then the ircd is definately not going to be able to read it).

Posted: Fri May 20, 2005 3:15 am
by X10tion
i did that cat unrealircd.conf it showed me the conf file then when i ( /dev/null )

Code: Select all

root@alpha [~/Unreal3.2]# /dev/null
-bash: /dev/null: Permission denied
but how come when i am using the root ??
is there a way to get over it ?? and also why it stopped working when it did b4 ?

Posted: Fri May 20, 2005 3:18 am
by aquanight
er...

/dev/null isn't a command...

anyway, try doing the cat unrealircd.conf as the user the ircd runs as

Posted: Fri May 20, 2005 3:21 am
by X10tion
woops sorry about the dev/ part

and as i told u when i do cat unrealircd.conf and it showed me the lines that i have in my unrealircd.conf

that means it opened it .. and has permission to do so

Posted: Fri May 20, 2005 3:23 am
by X10tion
thats what i did

Code: Select all

root@alpha [~/Unreal3.2]# cat unrealircd.conf
thats what it showed

Code: Select all


previous codes cut so i dun paste the whole file 
        anti-flood {
                nick-flood 3:60;
        };

        spamfilter {
                ban-time 1d;
                ban-reason "Spam/Advertising";
                virus-help-channel "#help";
        };
};

# That's all the configuring you have to do!

Posted: Fri May 20, 2005 3:25 am
by aquanight
Well you did that as root. Root naturally bypasses all privilege checks (which is why it's dangerous to use root for everyday mucking). You need to do that as the user the ircd runs as (eg if you have an 'ircd' user, switch to that a' la: su - ircd (or if the ircd user has an invalid shell and you have sudo: sudo -u ircd /bin/sh -l)) - unless of course you're running your ircd as root in which case I'd call you insane (see above) :P .

Posted: Fri May 20, 2005 3:28 am
by X10tion
hmm .. call me insane :/

is there a way to fix it ? :(

Posted: Fri May 20, 2005 3:30 am
by aquanight
Hm. So that throws permission errors out the window. Only thing left I can think of is if the filename is correct. Also, if you recently upgraded from an older version some new required directives may need to be added.

Posted: Fri May 20, 2005 3:34 am
by X10tion
nope
no updates no nothing :(

i just woke up connected to it and it was down .. went to start it and it wont start :(

Posted: Fri May 20, 2005 3:34 am
by aquanight
Something else I just thought of: you may need to add a log block with the errors target. Maybe that'll produce a bit more useful output :P . (See http://www.vulnscan.org/UnrealIrcd/unre ... l#logblock for how to do that.)

Posted: Fri May 20, 2005 3:38 am
by X10tion
uhmm thanks .. i will do that first thing in the morning i cant stay up any more .. its already 6:40 am :/

i have to wake in less than 2 hours .. sorry for wasting ur time .. will get the logs and paste them here tommorow

Posted: Fri May 20, 2005 8:32 am
by X10tion
here is my log block

Code: Select all

log "ircd.log" {
        maxsize 2097152;
        flags {
                oper;
                kline;
                connects;
                server-connects;
                kills;
                errors;
                sadmin-commands;
                chg-commands;
                oper-override;
                spamfilter;
        };
};
i dont know why it wont log errors :S