Im getting error IRCd configuration failed to load

If you hit any installation issues or cannot connect to your freshly installed UnrealIRCd then this forum is for you.

Moderator: Supporters

Post Reply
jamieduk
Posts: 5
Joined: Sat Jan 18, 2025 11:06 am

Im getting error IRCd configuration failed to load

Post by jamieduk »

Ok I have a couple issues

Im using ubuntu arm 64Bit Ubunto on a raspberry pi 5 (16 gb) The latest when a link used for example

wget https://www.unrealircd.org/downloads/un ... est.tar.gz

gives file unrealircd-6.1.9.1

on the forum it asks which is the latest version to pass human checking but is the actual latest, so the file that allows dl of latest needs updating!

My main issue (the reason I signed up here)

is this is my default config and modules list im getting error i dont know how to resolve!

Mod List

Code: Select all

loadmodule "channels.so";        // Channel management
loadmodule "clients.so";         // Client management
loadmodule "modes.so";           // Mode handling
loadmodule "user.so";            // User management
loadmodule "oper.so";            // Operator management
loadmodule "ban.so";             // Ban management
loadmodule "ssl.so";             // SSL support (if using SSL)
loadmodule "nickserv.so";        // NickServ (if using)
loadmodule "operserv.so";        // OperServ (if using)
loadmodule "memstats.so";        // Optional memory stats
loadmodule "gline.so";           // Global ban management
loadmodule "auth.so";            // Authentication management
loadmodule "extbans.so";         // Extended bans support
loadmodule "sasl.so";            // SASL support for authentication
loadmodule "monitor.so";         // Server monitoring
loadmodule "help.so";            // Help system for the IRC server

Conf that fails the test!

Code: Select all

// UnrealIRCd configuration file
// This is a complete configuration example for a basic IRC server.

//////////////////////////////////////////////////
// General Server Settings

set {
    server-name "jnetreloaded.local";           // Your server's hostname or domain
    network-name "jnet";        // Your network's name
    admin {
        "Admin Name";                        // Admin name
        "[email protected]";                 // Admin email
        "Admin";                       // Admin title (optional)
    };
    // Configuration for listening on ports
    listen *:6667;                          // Non-SSL (plain) IRC port
    listen *:6697 {                         // SSL port
        options { ssl; };
    };
};

// SSL Certificates - Uncomment and set your own certificates
set {
    ssl {
        certificate "conf/ssl/server.crt";   // Path to your SSL certificate
        key "conf/ssl/server.key";           // Path to your SSL private key
    };
};

// Server Operation Mode
set {
    // This sets the server's maximum clients
    maxclients 500;
    // This will set your server to be an IRC server (not a leaf)
    class clients { 
        pingfreq 90;
        sendq 1000000;
        maxclients 500;
        recvq 500000;
    };
};

// Channels - Auto join channel settings
channel "#welcome" {
    topic "Welcome To The J~Net IRC!";
    modes "+nt";  // Channel modes: n = no external messages, t = topic set by ops
};

// Oper Accounts
oper Admin {
    class clients;
    from {
        userhost *@*;
    };
    password "password";               // Oper password
    flags { netadmin; };                    // Grants server operator privileges
};

// Server Link Settings - For linking to other UnrealIRCd servers
link "irc.example.com" {
    username *;
    hostname *;
    bind-ip *;
    port 7000;
    hub *;
    password-connect "linkpassword";
    password-receive "linkpassword";
};

// Automatic K-Line (ban) for spam prevention (Optional)
set {
    kline {
        mask *!*@*.spam.com;                // Block spammer IPs or domain names
        reason "Spam detected";
        time 3600;                          // 1 hour ban
    };
};

// Admin Notices
set {
    admin-notice "Welcome to J~Net Network! For support, email [email protected]";
};

// Uplink settings (leave this as is if not linking to other servers)
set {
    uplink {
        host "irc.example.com";
        port 7000;
        password "linkpassword";
    };
};

// Disable some features if you want to limit server functions (Optional)
set {
    // Disable user registration if you don't want new users registering nicknames
    allow-registrations no; // yes
};

// User Mode Settings (Optional)
user-mode {
    set { 
        max-nick-length 30;                 // Maximum nickname length
    };
};

// Define Services (If you're using services like NickServ, ChanServ, etc.)
// To be enabled only if you are running IRC services on this server
services {
    host "localhost";
    port 9999;
    password "servicepassword";  // Replace with your service password
};

// Logging Configuration
log {
    file "logs/ircd.log" {
        level info;  // Set the log level (info, debug, etc.)
        maxsize 50M; // Maximum size of log file before rotating
    };
};

// Bans and Protection (Optional but recommended)
set {
    // Anti-flooding settings
    flood {
        connection 10;       // Maximum connections per 5 seconds
        nickflood 5;         // Maximum nick changes per 5 seconds
    };

    // Block attempts to exploit server features
    protect {
        chanban-on-join yes;
        invite-exempt yes;
    };
};

// Set up a simple motd (Message of the Day) to be displayed on connect
motd {
    file "motd.txt";     // File path for the motd message
};


The error output (not telling me the 1 reason it fails the most so I can fix it without requiring help.

Code: Select all

jay@jnetreloaded:~$ unrealircd configtest
 _   _                      _ ___________  _____     _ 
| | | |                    | |_   _| ___ \/  __ \   | |
| | | |_ __  _ __ ___  __ _| | | | | |_/ /| /  \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | |    / | |    / _` |
| |_| | | | | | |  __/ (_| | |_| |_| |\ \ | \__/\ (_| |
 \___/|_| |_|_|  \___|\__,_|_|\___/\_| \_| \____/\__,_|
                           v6.1.9.1

UnrealIRCd is brought to you by Bram Matthys (Syzop),
Krzysztof Beresztant (k4be), Gottem and i

UnrealIRCd is free and Open Source software. If you can, consider making a donation at https://www.unrealircd.org/index/donations to support us.

UnrealIRCd is using the following libraries:
* OpenSSL 3.0.13 30 Jan 2024
* libsodium 1.0.18
* c-ares 1.34.3
* PCRE2 10.42 2022-12-11
* jansson 2.14

This server can handle 16384 concurrent sockets (16134 clients + 250 reserve)

[info] Loading IRCd configuration..
[info] Testing IRCd configuration..
[error] ERROR: efunction 'do_join' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'join_channel' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'can_join' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'do_mode' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'set_mode' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'set_channel_mode' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'set_channel_topic' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'cmd_umode' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'register_user' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'tkl_hash' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] ERROR: efunction 'tkl_typetochar' not found, you probably did not load all required modules! (hint: see modules.default.conf)
[error] [--efunction errors truncated to prevent flooding--]
[error] IRCd configuration failed to pass testing
[error] IRCd configuration failed to load

extra info (Added to my bashrc so it can open without specifing the dir in command to start / test

Code: Select all

 export PATH="/home/$USER/unrealircd/:$PATH"
Also no actual example config file was supplied so please help me fix this and always try and provide example config files as this wuold make a fast easy setup! this includes the basic required modules file should also exist both config and modules examples missing! and in error nothing i can use to actually fix it without requiring help!


Please help me with all these issues, I remember using this years ago and had same issues then as now And i expect things to just work out of the box with minimal setup, also anything required or customised should be quized during setup process like alot is and is apreciated, it just needs this to help fill these missing files ready to config test and start!

I feel these changes will drasticcally improve this amazingsoftware!
Please help with the main issue of server failing to start and to the owner devs team please add the ideas of mine to your new update, update the latest file so it is actually the latest and il be so happy! ty

PS : Im using the latest version and is correct online site, just the forum is out of date with question of what latest version isalso i noticed the examples that were in fact supplied will also check to see if its anything obvious! but still no replies on this post yet :/
CrazyCat
Posts: 244
Joined: Thu Apr 28, 2005 1:05 pm
Location: France
Contact:

Re: Im getting error IRCd configuration failed to load

Post by CrazyCat »

Seems like your unrealircd.conf lack the include "modules.default.conf"; directive.
jamieduk
Posts: 5
Joined: Sat Jan 18, 2025 11:06 am

Re: Im getting error IRCd configuration failed to load

Post by jamieduk »

how do i add that can you show example and where to put the missing line and il try it?
Valware
Official supporter
Posts: 54
Joined: Wed Mar 31, 2021 3:17 am
Location: Internet
Contact:

Re: Im getting error IRCd configuration failed to load

Post by Valware »

Hey. Not sure what you mean when you said the configuration files aren't provided, the examples are in

Code: Select all

unrealircd/conf/examples/
in multiple languages which itself includes all the required modules for UnrealIRCd to run, as mentioned in the documentation. You should have copied this file to be your unrealircd.conf and edited that instead.

Please ensure to read the documentation as when followed takes 20 minutes or less to set up your server from start to finish. You can find the documentation via the main website, through a link on the left of the page.

I'm not sure how you got your current config if you think it wasn't provided already, but it seems you might have followed old or outdated or incorrect instructions from somewhere else. The correct instructions are in the documentation which is super easy to find and follow.
Got an idea for a module? Don't be shy! Come talk to me on #unreal-support
Like the support I provide? Consider supporting me with a donation.
Valware
Official supporter
Posts: 54
Joined: Wed Mar 31, 2021 3:17 am
Location: Internet
Contact:

Re: Im getting error IRCd configuration failed to load

Post by Valware »

Got an idea for a module? Don't be shy! Come talk to me on #unreal-support
Like the support I provide? Consider supporting me with a donation.
jamieduk
Posts: 5
Joined: Sat Jan 18, 2025 11:06 am

Re: Im getting error IRCd configuration failed to load

Post by jamieduk »

yes im using them examples still get error! you said im missing something "Seems like your unrealircd.conf lack the include "modules.default.conf"; directive." show exampleof that 1line immising and il add it!
Jellis
Posts: 12
Joined: Tue Nov 29, 2016 4:45 pm

Re: Im getting error IRCd configuration failed to load

Post by Jellis »

CrazyCat wrote: Sat Jan 18, 2025 2:49 pm Seems like your unrealircd.conf lack the include "modules.default.conf"; directive.
Dit you actually try this? Just add the line:

include "modules.default.conf";

In your unrealircd.conf?
jamieduk
Posts: 5
Joined: Sat Jan 18, 2025 11:06 am

Re: Im getting error IRCd configuration failed to load

Post by jamieduk »

I just tried it now and get this new error

Code: Select all

jay@jnetreloaded:~/unrealircd/bin$ ~/unrealircd/unrealircd start
Starting UnrealIRCd
 _   _                      _ ___________  _____     _ 
| | | |                    | |_   _| ___ \/  __ \   | |
| | | |_ __  _ __ ___  __ _| | | | | |_/ /| /  \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | |    / | |    / _` |
| |_| | | | | | |  __/ (_| | |_| |_| |\ \ | \__/\ (_| |
 \___/|_| |_|_|  \___|\__,_|_|\___/\_| \_| \____/\__,_|
                           v6.1.9.1

UnrealIRCd is brought to you by Bram Matthys (Syzop),
Krzysztof Beresztant (k4be), Gottem and i

UnrealIRCd is free and Open Source software. If you can, consider making a donation at https://www.unrealircd.org/index/donations to support us.

UnrealIRCd is using the following libraries:
* OpenSSL 3.0.13 30 Jan 2024
* libsodium 1.0.18
* c-ares 1.34.3
* PCRE2 10.42 2022-12-11
* jansson 2.14

This server can handle 16384 concurrent sockets (16134 clients + 250 reserve)

[info] Loading IRCd configuration..
[info] Testing IRCd configuration..
[error] /home/jay/unrealircd/conf/unrealircd.conf:116: Unknown directive 'log::file'
[error] /home/jay/unrealircd/conf/unrealircd.conf:115: Your log block contains no sources and no destinations.
[error] The log block changed between UnrealIRCd 5 and UnrealIRCd 6, see https://www.unrealircd.org/docs/FAQ#old-log-block on how to convert it to the new syntax.
[error] /home/jay/unrealircd/conf/unrealircd.conf:8: unknown directive set::server-name
[error] /home/jay/unrealircd/conf/unrealircd.conf:10: unknown directive set::admin
[error] /home/jay/unrealircd/conf/unrealircd.conf:16: unknown directive set::listen
[error] /home/jay/unrealircd/conf/unrealircd.conf:17: unknown directive set::listen
[error] /home/jay/unrealircd/conf/unrealircd.conf:25: set::ssl::certificate: could not open '/home/jay/unrealircd/conf/conf/ssl/server.crt': No such file or directory
[error] /home/jay/unrealircd/conf/unrealircd.conf:26: set::ssl::key: could not open '/home/jay/unrealircd/conf/conf/ssl/server.key': No such file or directory
[error] /home/jay/unrealircd/conf/unrealircd.conf:33: unknown directive set::maxclients
[error] /home/jay/unrealircd/conf/unrealircd.conf:35: unknown directive set::class
[error] /home/jay/unrealircd/conf/unrealircd.conf:72: unknown directive set::kline
[error] /home/jay/unrealircd/conf/unrealircd.conf:81: unknown directive set::admin-notice
[error] /home/jay/unrealircd/conf/unrealircd.conf:86: unknown directive set::uplink
[error] /home/jay/unrealircd/conf/unrealircd.conf:96: unknown directive set::allow-registrations
[error] /home/jay/unrealircd/conf/unrealircd.conf:125: unknown directive set::flood
[error] /home/jay/unrealircd/conf/unrealircd.conf:131: unknown directive set::protect
[error] /home/jay/unrealircd/conf/unrealircd.conf:44: unknown directive channel
[error] /home/jay/unrealircd/conf/unrealircd.conf:52: Unknown directive 'oper::from'
[info] /home/jay/unrealircd/conf/unrealircd.conf:55: oper::password: Advice: it is not recommended to use plaintext passwords in the config file. You can replace this password with the following password hash:
[info] password "$argon2id$v=19$m=6144,t=2,p=2$jhyaiefZwcsORZBsL15xBw$3ilLig+V1tw4F/ZzufHAaSNW/Pv48QjCsX22bp/Il1E";
[error] /home/jay/unrealircd/conf/unrealircd.conf:56: Unknown directive 'oper::flags'
[error] /home/jay/unrealircd/conf/unrealircd.conf:50: oper::match is missing
[error] /home/jay/unrealircd/conf/unrealircd.conf:50: oper::operclass is missing
[error] /home/jay/unrealircd/conf/unrealircd.conf:61: Unknown directive 'link::username'
[error] /home/jay/unrealircd/conf/unrealircd.conf:62: Unknown directive 'link::hostname'
[error] /home/jay/unrealircd/conf/unrealircd.conf:63: Unknown directive 'link::bind-ip'
[error] /home/jay/unrealircd/conf/unrealircd.conf:64: Unknown directive 'link::port'
[error] /home/jay/unrealircd/conf/unrealircd.conf:66: Unknown directive 'link::password-connect'
[error] /home/jay/unrealircd/conf/unrealircd.conf:67: Unknown directive 'link::password-receive'
[error] /home/jay/unrealircd/conf/unrealircd.conf:60: link block needs at least an incoming or outgoing section.
[error] /home/jay/unrealircd/conf/unrealircd.conf:60: link::password is missing
[error] /home/jay/unrealircd/conf/unrealircd.conf:60: link::class is missing
[error] /home/jay/unrealircd/conf/unrealircd.conf:100: unknown directive user-mode
[error] /home/jay/unrealircd/conf/unrealircd.conf:108: unknown directive services
[error] /home/jay/unrealircd/conf/unrealircd.conf:138: unknown directive motd
[error] me {} block is missing
[error] admin {} block is missing
[error] listen {} block is missing
[error] set::kline-address is missing
[error] set::default-server is missing
[error] set::help-channel is missing
[error] 39 errors encountered
[error] IRCd configuration failed to pass testing
[error] IRCd configuration failed to load
=====================================================
UnrealIRCd failed to start. Check above for possible errors.
If you don't understand the problem, then have a look at our:
* FAQ (Frequently Asked Questions): https://www.unrealircd.org/docs/FAQ
* Documentation: https://www.unrealircd.org/docs/
jamieduk
Posts: 5
Joined: Sat Jan 18, 2025 11:06 am

Re: Im getting error IRCd configuration failed to load

Post by jamieduk »

dw i resolved it got it working finally! ty for help!
Post Reply