IRCop Error
Moderator: Supporters
IRCop Error
Hello everyone,
I just started working with UnrealIRCd and installed version 5.2.1.1. It seems to set up just fine, however I am having a problem getting control of the server with the /oper command.
I know this question has been asked and answered a thousand times and i have read a lot of the answers, but still can't solve the problem.
The server runs and I can log into it with a TLS connection. I am using my own SSL certificate rather than the one that was generated by UnrealIRCd at install. I have changed the config file to reflect this.
When I try to get Operator status with the /oper command this error is returned:
ERROR: There is a non-existant oper::operclass specified for your oper block
The operclasses are the same as what came at install. I added my name and password to the oper block along with a hostmask of just * for now. i have also tried a hostmask of *@* Same error.
I know the server is looking at my name because if i use an undefined name it just tells me there are no O Lines for my host which I expected.
This can't be that hard to set up! I run my own Apache web servers and I don't have any trouble configuring them.
Any help would be appreciated.
I just started working with UnrealIRCd and installed version 5.2.1.1. It seems to set up just fine, however I am having a problem getting control of the server with the /oper command.
I know this question has been asked and answered a thousand times and i have read a lot of the answers, but still can't solve the problem.
The server runs and I can log into it with a TLS connection. I am using my own SSL certificate rather than the one that was generated by UnrealIRCd at install. I have changed the config file to reflect this.
When I try to get Operator status with the /oper command this error is returned:
ERROR: There is a non-existant oper::operclass specified for your oper block
The operclasses are the same as what came at install. I added my name and password to the oper block along with a hostmask of just * for now. i have also tried a hostmask of *@* Same error.
I know the server is looking at my name because if i use an undefined name it just tells me there are no O Lines for my host which I expected.
This can't be that hard to set up! I run my own Apache web servers and I don't have any trouble configuring them.
Any help would be appreciated.
Re: IRCop Error
Please post your oper {} block here.
Re: IRCop Error
make sure you include operclass.default.conf in your unrealircde.conf, and in your oper block: operclass netadmin-with-override;
here you can see an example of oper block: https://www.unrealircd.org/docs/Oper_block
here you can see an example of oper block: https://www.unrealircd.org/docs/Oper_block
Re: IRCop Error
Thanks for your reply.
There is an Include statement for operclass.default.conf
My oper block currently is:
/* For a list of oper flags, see doc/unreal32docs.html#operblock
* [HIGHLY recommended to read]
*/
oper leoracherry {
class opers;
mask *;
password "123456";
operclass netadmin;
swhois "a Network Administrator";
};
This appears to cover all the required elements.
There is an Include statement for operclass.default.conf
My oper block currently is:
/* For a list of oper flags, see doc/unreal32docs.html#operblock
* [HIGHLY recommended to read]
*/
oper leoracherry {
class opers;
mask *;
password "123456";
operclass netadmin;
swhois "a Network Administrator";
};
This appears to cover all the required elements.
Re: IRCop Error
Here is an example for an operblock from https://www.unrealircd.org/docs/Oper_block
oper <name> {
/* Required items: */
mask <hostmask>;
password <password>;
class <class-name>;
operclass <operclass-name>;
/* Optional items to further limit who can /OPER */
require-modes <modes>
maxlogins <num>;
/* Optional items to define what will be set upon successful /OPER */
vhost <new virtual hostname>;
swhois <whois info>;
modes <modes>;
snomask <snomask>;
};
Take a look and edit your operblock correctly
Greets Han`
oper <name> {
/* Required items: */
mask <hostmask>;
password <password>;
class <class-name>;
operclass <operclass-name>;
/* Optional items to further limit who can /OPER */
require-modes <modes>
maxlogins <num>;
/* Optional items to define what will be set upon successful /OPER */
vhost <new virtual hostname>;
swhois <whois info>;
modes <modes>;
snomask <snomask>;
};
Take a look and edit your operblock correctly
Greets Han`
Last edited by Han` on Sat Sep 18, 2021 3:41 pm, edited 2 times in total.
Re: IRCop Error
you mixing things.
this is not a conf from unreal5, for sure. maybe thats the issue here../* For a list of oper flags, see doc/unreal32docs.html#operblock
* [HIGHLY recommended to read]
*/
Re: IRCop Error
My oper block appears to match the documentation for the required elements. I doubt the order of them matters.
I read all this documentation and have looked at my oper block until my eyeballs are falling out. Sending me documentation I have already seen doesn't help. I've spent a week off and on trying to figure this out There is an opers class in my operclass.default.conf. I copied that block from globop to use for testing. I've also tried every other operclass in that file. The error remains the same.
I have rehashed. The only thing I left out of my original post is that I am running this on Windows 10. Yes, I have included the Windows modules.
I will work on the optional items when I have solved the server control problem.
I posted here looking for more help than the documentation I already have provides.
I read all this documentation and have looked at my oper block until my eyeballs are falling out. Sending me documentation I have already seen doesn't help. I've spent a week off and on trying to figure this out There is an opers class in my operclass.default.conf. I copied that block from globop to use for testing. I've also tried every other operclass in that file. The error remains the same.
I have rehashed. The only thing I left out of my original post is that I am running this on Windows 10. Yes, I have included the Windows modules.
I will work on the optional items when I have solved the server control problem.
I posted here looking for more help than the documentation I already have provides.
Re: IRCop Error
you are not using the proper example.conf from the install i presume.
there is not link for unreal3.2 docu in unreal5 configs.
see here:
https://github.com/unrealircd/unrealirc ... ample.conf
do you have line#52 in your config? so includeing the operclass default? (which i wouldnt change in your case.. see my comment below)
the "class opers;" and the operclass are two different things..
there is not link for unreal3.2 docu in unreal5 configs.
see here:
https://github.com/unrealircd/unrealirc ... ample.conf
do you have line#52 in your config? so includeing the operclass default? (which i wouldnt change in your case.. see my comment below)
the "class opers;" and the operclass are two different things..
Re: IRCop Error
I can't see any problem with your config. Please try:
- check ircd.log (because the rehash may fail and you don't know it, i've seen such issue before),
- change the "class" option to "clients", or whatever class name you have in your unrealircd.conf. I don't see why would it matter, but it's best to check anyway,
- break the "operclass.default.conf" file contents, maybe adding some garbage at the end. This way you'll see whether this file is actually loaded. (Of course re-check ircd.log after that.)
- check ircd.log (because the rehash may fail and you don't know it, i've seen such issue before),
- change the "class" option to "clients", or whatever class name you have in your unrealircd.conf. I don't see why would it matter, but it's best to check anyway,
- break the "operclass.default.conf" file contents, maybe adding some garbage at the end. This way you'll see whether this file is actually loaded. (Of course re-check ircd.log after that.)
Re: IRCop Error
I have no idea what this means. I am using the version 5 conf files. I am starting with version 5.Lord255 wrote: ↑Sat Sep 18, 2021 5:21 pm you are not using the proper example.conf from the install i presume.
there is not link for unreal3.2 docu in unreal5 configs.
see here:
https://github.com/unrealircd/unrealirc ... ample.conf
do you have line#52 in your config? so includeing the operclass default? (which i wouldnt change in your case.. see my comment below)
the "class opers;" and the operclass are two different things..
As I said, operclass.default.conf is specified as an Include. It is being loaded.
I've seen all the documentation. I don't need any more links to any more docs.
Re: IRCop Error
I have tried changing the class option to everything else defined in the operclass config one at a time. The result is the same. The rehash is working because I can unload the server and restart it which is an automatic rehash. ircd.log is empty. The log is in server.log.k4be wrote: ↑Sat Sep 18, 2021 5:24 pm I can't see any problem with your config. Please try:
- check ircd.log (because the rehash may fail and you don't know it, i've seen such issue before),
- change the "class" option to "clients", or whatever class name you have in your unrealircd.conf. I don't see why would it matter, but it's best to check anyway,
- break the "operclass.default.conf" file contents, maybe adding some garbage at the end. This way you'll see whether this file is actually loaded. (Of course re-check ircd.log after that.)
Re: IRCop Error
Leora wrote: ↑Sat Sep 18, 2021 6:52 pmI have no idea what this means. I am using the version 5 conf files. I am starting with version 5.Lord255 wrote: ↑Sat Sep 18, 2021 5:21 pm you are not using the proper example.conf from the install i presume.
there is not link for unreal3.2 docu in unreal5 configs.
see here:
https://github.com/unrealircd/unrealirc ... ample.conf
do you have line#52 in your config? so includeing the operclass default? (which i wouldnt change in your case.. see my comment below)
the "class opers;" and the operclass are two different things..
As I said, operclass.default.conf is specified as an Include. It is being loaded.
I've seen all the documentation. I don't need any more links to any more docs.
you are not listening well and you don't follow docus and the hints which we are giving?
why? look at what you have pasted before:
see this? do you see the reference for doc/unreal32docs.html ?My oper block currently is:
/* For a list of oper flags, see doc/unreal32docs.html#operblock
* [HIGHLY recommended to read]
*/
oper leoracherry {
class opers;
mask *;
password "123456";
operclass netadmin;
swhois "a Network Administrator";
};
and now look at the example.conf which is for UNREAL5:
https://github.com/unrealircd/unrealirc ... ample.conf
so.. again.. you definitely not using the conf you would need to and you are terrible at following advises.
(i just wonder what else can be broken in your conf.. it would be better if you would start using a proper conf and use the default operclass conf, so dont change it at all, cuz everything is good in it for yourself.)
( see: https://github.com/unrealircd/unrealirc ... ample.conf
this is a conf from unreal3.2; that has links to old docu.. )
---------------------------------------
and for this one:
The rehash is working because I can unload the server and restart it which is an automatic rehash. ircd.log is empty. The log is in server.log.
Code: Select all
cache
lib
bin
doc
conf
unrealircd <--
modules
source -> ......../src/unrealircd-5.2.1.1
tmp
logs
data
Code: Select all
$ ./unrealircd
This script expects a parameter. Use:
unrealircd configtest Test the configuration file
unrealircd start Start the IRC Server
unrealircd stop Stop (kill) the IRC Server
unrealircd rehash Reload the configuration file
unrealircd reloadtls Reload the SSL/TLS certificates
unrealircd restart Restart the IRC Server (stop+start)
unrealircd upgrade Upgrade UnrealIRCd to the latest version
unrealircd upgrade-conf Upgrade the configuration file from UnrealIRCd
3.2.x/4.x to 5.x format
unrealircd mkpasswd Hash a password
unrealircd version Display the UnrealIRCd version
unrealircd module Install and uninstall 3rd party modules
unrealircd croncheck For use in crontab: this checks if the server
is running. If not, the server is started.
unrealircd genlinkblock Generate link { } block for the other side.
unrealircd gencloak Display 3 random cloak keys
unrealircd spkifp Display SPKI Fingerprint
Code: Select all
$ ./unrealircd rehash
Rehashing UnrealIRCd
also: idk why you change default behavior if you just started with this (or idk? seems so..), since ircd.log is the default log file.. server.log..? what is this? a jboss/wildfly? anyway..
we cannot guess what you are doing or how does your config looks like, but i bet you use an old conf and you need to not change things at first time..
(whenever you will have a working ircd, you can tweek and mess around, but..)
Re: IRCop Error
right. sorry. windows.. yeah, idk if there is a cmd tool though for windows or not. (i think it should. or a batch script? ) anyway. right. not this simple as i mentioned above.
Re: IRCop Error
The reference to version 3.2 is only a comment. I probably copied it when I copied a sample oper block. It doesn't matter. I started with all version 5 files. I've gone back to that, rebuilding unrealircd.conf with a brand new version 5 file including the vhost line. i have changed unrealircd so that the word netadmin isn't in it at all. The error persists the same way. The log file that shows the error is server.log and it says the missing operclass is netadmin.Lord255 wrote: ↑Sat Sep 18, 2021 11:09 pmLeora wrote: ↑Sat Sep 18, 2021 6:52 pmI have no idea what this means. I am using the version 5 conf files. I am starting with version 5.Lord255 wrote: ↑Sat Sep 18, 2021 5:21 pm you are not using the proper example.conf from the install i presume.
there is not link for unreal3.2 docu in unreal5 configs.
see here:
https://github.com/unrealircd/unrealirc ... ample.conf
do you have line#52 in your config? so includeing the operclass default? (which i wouldnt change in your case.. see my comment below)
the "class opers;" and the operclass are two different things..
As I said, operclass.default.conf is specified as an Include. It is being loaded.
I've seen all the documentation. I don't need any more links to any more docs.
you are not listening well and you don't follow docus and the hints which we are giving?
why? look at what you have pasted before:
see this? do you see the reference for doc/unreal32docs.html ?My oper block currently is:
/* For a list of oper flags, see doc/unreal32docs.html#operblock
* [HIGHLY recommended to read]
*/
oper leoracherry {
class opers;
mask *;
password "123456";
operclass netadmin;
swhois "a Network Administrator";
};
and now look at the example.conf which is for UNREAL5:
https://github.com/unrealircd/unrealirc ... ample.conf
so.. again.. you definitely not using the conf you would need to and you are terrible at following advises.
(i just wonder what else can be broken in your conf.. it would be better if you would start using a proper conf and use the default operclass conf, so dont change it at all, cuz everything is good in it for yourself.)
( see: https://github.com/unrealircd/unrealirc ... ample.conf
this is a conf from unreal3.2; that has links to old docu.. )
---------------------------------------
and for this one:The rehash is working because I can unload the server and restart it which is an automatic rehash. ircd.log is empty. The log is in server.log.see that script in the unrealircd folder?Code: Select all
cache lib bin doc conf unrealircd <-- modules source -> ......../src/unrealircd-5.2.1.1 tmp logs data
you dont have to restart your ircd all the time. rehash is there.Code: Select all
$ ./unrealircd This script expects a parameter. Use: unrealircd configtest Test the configuration file unrealircd start Start the IRC Server unrealircd stop Stop (kill) the IRC Server unrealircd rehash Reload the configuration file unrealircd reloadtls Reload the SSL/TLS certificates unrealircd restart Restart the IRC Server (stop+start) unrealircd upgrade Upgrade UnrealIRCd to the latest version unrealircd upgrade-conf Upgrade the configuration file from UnrealIRCd 3.2.x/4.x to 5.x format unrealircd mkpasswd Hash a password unrealircd version Display the UnrealIRCd version unrealircd module Install and uninstall 3rd party modules unrealircd croncheck For use in crontab: this checks if the server is running. If not, the server is started. unrealircd genlinkblock Generate link { } block for the other side. unrealircd gencloak Display 3 random cloak keys unrealircd spkifp Display SPKI Fingerprint
just like that.Code: Select all
$ ./unrealircd rehash Rehashing UnrealIRCd
also: idk why you change default behavior if you just started with this (or idk? seems so..), since ircd.log is the default log file.. server.log..? what is this? a jboss/wildfly? anyway..
we cannot guess what you are doing or how does your config looks like, but i bet you use an old conf and you need to not change things at first time..
(whenever you will have a working ircd, you can tweek and mess around, but..)
With the updated unrealircd.conf i am using the SSL certificate that installed with version 5 instead of my own. It still connects fine with TLS.
I've tried this a hundred different ways and the error is always the same.