Page 1 of 1

3.2.x > 4.0.1 Upgrade *.motd question

Posted: Sun Feb 07, 2016 7:32 am
by afterlife
Hi Guys,

I have just made the jump from v 3.2.10.4 to 4.0.1. I have converted the configuration file and can get unreal to launch.
However I cannot make it find my motd files, despite my best efforts, they were working correctly prior to upgrading.
Note: I've also tried specifying relative path as well as the full path, i.e. "/srv/irc/ircd.motd" in the configuration file, this doesn't seem to help either.

Error message on startup:

Code: Select all

Starting UnrealIRCd
[snip] v4.0.1
  using TRE 0.8.0 (BSD)
  using OpenSSL 1.0.1e-fips 11 Feb 2013
  using libcurl/7.45.0 c-ares/1.10.0
Loading IRCd configuration..

[warning] /srv/irc/conf/unrealircd.conf:201: files::motd: ircd.motd: No such file or directory
[warning] /srv/irc/conf/unrealircd.conf:204: files::opermotd: oper.motd: No such file or directory
[warning] /srv/irc/conf/unrealircd.conf:213: files::rules: ircd.rules: No such file or directory

Configuration loaded without any problems.
Loading tunefile..
Initializing SSL..
Dynamic configuration initialized.. booting IRCd.
UnrealIRCd is now listening on the following addresses/ports:
IPv4: *:6667(SSL)
IPv6: *:6667(SSL)
UnrealIRCd started.
Location of files

Code: Select all

[unrealusr@ircserver]$ grep -i motd conf/unrealircd.conf
/* MOTD files */
        motd ircd.motd;

[unrealusr@ircserver]$ file /srv/irc/ircd.motd
ircd.motd: ASCII text

Code: Select all

[unrealusr@ircserver]$ uname -a
Linux ircserver 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Any ideas?

Re: 3.2.x > 4.0.1 Upgrade *.motd question

Posted: Sun Feb 07, 2016 9:26 am
by afterlife
Answered my own question haha, persistence is 99% of achieving success after all.

Didn't realise paths are all relative to unrealircd.conf and not the install directory!

Changed

Code: Select all

unrealusr@ircserver]$ grep -i motd conf/unrealircd.conf
/* MOTD files */
        motd ircd.motd;
to

Code: Select all

unrealusr@ircserver]$ grep -i motd conf/unrealircd.conf
/* MOTD files */
        motd ../ircd.motd;
Now it works, however the PID file still throws a warning (despite working)

Code: Select all

# /etc/init.d/ircd restart
Restarting UnrealIRCd
cat: /srv/irc/data/unrealircd.pid: No such file or directory
Starting UnrealIRCd
... so if anyone can enlighten me about that, I'd be grateful :)

Re: 3.2.x > 4.0.1 Upgrade *.motd question

Posted: Wed Mar 02, 2016 11:48 am
by Syzop
The MOTD (and similar files) are expected to be in the conf/ directory, so the same directory as your unrealircd.conf. Because documentation on this was insufficient I've updated the example.conf on this a while ago, but after 4.0.1 release, and created a MOTD and Rules wiki article.
If you want the files to be located elsewhere then you would have to alter the paths, as you did. Strange that you are saying specifying an absolute path did not work, though.

As for the pidfile problem.. this should work fine out of the box. Could you paste your files { } block? I suspect that's the source of the problem.. not necessarily your configuration but the way unrealircd processes it.