empus / armour

Armour -- an advanced eggdrop channel protection script for IRC
12 stars 11 forks source link

Issue while executing any cmd #120

Closed charls-a closed 1 year ago

charls-a commented 2 years ago

When i use any command, these warnings shows on console. In the paste i use: M cmds and M op #channel nick

[20:33:37] #charls_a# save Saving user file... [20:33:37] Writing user file... [20:33:36] Writing channel file... [20:33:43] triggering bind arm:coroexec arm:pubm:scan [20:33:43] triggered bind arm:coroexec arm:pubm:scan , user 0.558ms sys 0.000ms [20:33:43] triggering bind arm:pubm:binds [20:33:43] triggered bind arm:pubm:binds, user 0.128ms sys 0.000ms [20:33:43] triggering bind arm:pubm:all [20:33:43] triggered bind arm:pubm:all, user 0.075ms sys 0.000ms [20:33:43] Tcl error [arm:pubm:all]: invalid command name "arm:pubm:all" [20:33:43] triggering bind userdb:pub:cmd [20:33:43] triggered bind userdb:pub:cmd, user 0.316ms sys 0.000ms [20:33:43] (bgError): "invalid command name "arm:pubm:all"": [20:33:43] invalid command name "arm:pubm:all" [20:33:43] while executing [20:33:43] "arm:pubm:all $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5" [20:33:43] b(gError): errorCode: TCL LOOKUP COMMAND arm:pubm:all [20:35:44] triggering bind arm:coroexec arm:modeadd:v [20:35:44] triggered bind arm:coroexec arm:modeadd:v , user 0.072ms sys 0.011ms [20:35:44] triggering bind arm:coroexec arm:modeadd:v [20:35:44] triggered bind arm:coroexec arm:modeadd:v , user 0.009ms sys 0.002ms [20:35:44] triggering bind arm:coroexec arm:modeadd:v [20:35:44] triggered bind arm:coroexec arm:modeadd:v , user 0.007ms sys 0.001ms [20:38:33] triggering bind arm:coroexec arm:pubm:scan [20:38:33] triggered bind arm:coroexec arm:pubm:scan , user 0.212ms sys 0.000ms [20:38:33] triggering bind arm:pubm:binds [20:38:33] triggered bind arm:pubm:binds, user 0.010ms sys 0.000ms [20:38:33] triggering bind arm:pubm:all [20:38:33] triggered bind arm:pubm:all, user 0.029ms sys 0.000ms [20:38:33] Tcl error [arm:pubm:all]: invalid command name "arm:pubm:all" [20:38:33] triggering bind userdb:pub:cmd [20:38:33] triggered bind userdb:pub:cmd, user 0.214ms sys 0.000ms [20:38:33] (bgError): "invalid command name "arm:pubm:all"": [20:38:33] invalid command name "arm:pubm:all" [20:38:33] while executing [20:38:33] "arm:pubm:all $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5" [20:38:33] b(gError): errorCode: TCL LOOKUP COMMAND arm:pubm:all

empus commented 2 years ago

This suggests the script is not properly loaded. Please load it with that debug enabled and see what errors are preventing the successful load.

mjeveritt commented 2 years ago

Commenting https://github.com/empus/armour/blob/master/armour.conf.sample#L728 through L731 will allow the bot to crash if any of the 'submodules' within armour fail to load. This is what I did, to fix some path issues. However even with an 'apparently' fully loaded bot, I still get messages of the form b(gError): errorCode: TCL LOOKUP COMMAND arm:xxx:zzz too. Will attach further debug later.

empus commented 2 years ago

That prevents the bot from crashing and outputs the error.

This version hasn't had work done on it for a long time. I've been working on v4.0 which is not yet released, but has many changes and improvements.

See open & closed issues @ https://github.com/empus/armour/milestone/1

mjeveritt commented 2 years ago

That prevents the bot from crashing and outputs the error.

This version hasn't had work done on it for a long time. I've been working on v4.0 which is not yet released, but has many changes and improvements.

See open & closed issues @ https://github.com/empus/armour/milestone/1

Do you have a rough ETA for a beta version yet?

empus commented 2 years ago

Not really, but I could make one for you if you want to give it a go? See me in #armour on Undernet

mjeveritt commented 2 years ago

Not really, but I could make one for you if you want to give it a go? See me in #armour on Undernet

Been hangin a few days there .. nick 'verimittz'

charls-a commented 2 years ago

Ok, eggdrop reloaded

Din@carlosmendoza:~/Mandalorian$ ./eggdrop -nt Mandalorian

Eggdrop v1.9.1 (C) 1997 Robey Pointer (C) 1999-2021 Eggheads --- Loading eggdrop v1.9.1 (Tue Jan 25 2022) Listening for telnet connections on 0.0.0.0 port 9090 (all). Module loaded: blowfish Module loaded: dns Module loaded: channels Module loaded: server Module loaded: ctcp Module loaded: irc Module loaded: notes (with lang support) Module loaded: console (with lang support) Loading dccwhois.tcl... Loaded dccwhois.tcl Userinfo TCL v1.08 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ YOUTUBE TWITCH). use '.help userinfo' for commands. [@] Armour: loading ./armour/armour-3.5.1.tcl ... [@] Armour: loaded script configuration. [@] Armour: eggdrop binds restructured. [@] Armour: loaded command binds. [@] Armour: loading user database... [@] Armour: loaded user database. [@] Armour: loaded CIDR procedures. [@] Armour: loaded geolocation tools. [@] Armour: loaded asynchronous port scanner. [@] Armour: loaded thommey commandline port scanner. [@] Armour: loaded nmap scanner. [@] Armour: loaded gnuworld (mod.cservice) authentication. [@] Armour: loaded adaptive regex pattern builder. [@] Armour: loaded remote dnsbl & portscan procedures. [@] Armour: loaded user commands [@] Armour: loaded raw functions. [@] Armour: loaded scanner. [@] Armour: loaded floodnet detection. [@] Armour: loaded database functions. [@] Armour v3.5.1 Loaded (empus@undernet.org) Writing channel file... Userfile loaded, unpacking... === Mandalorian: 2 channels, 1 users.

NOTE: The -n flag is no longer used, it is as effective as Han without Chewie

ENTERING DCC CHAT SIMULATION

You can use the .su command to log into your Eggdrop account.

Connected to Mandalorian, running eggdrop v1.9.1


  / __/___ _ ___ _ ___/ /____ ___   ___
 / _/ / _ `// _ `// _  // __// _ \ / _ \
/___/ \_, / \_, / \_,_//_/   \___// .__/
     /___/ /___/                 /_/

{ www.eggheads.org | irc.libera.chat/#eggdrop }

Hey -HQ! My name is Mandalorian and I am running eggdrop v1.9.1, on Linux 4.15.0.

Local time is now 11:34

You are an owner of this bot. Only +n users can see this! For more info, see .help set motd. Please edit the motd file in your bot's 'text' directory. Use .help for basic help. Use .help for help on a specific command. Use .help all to get a full command list. Use .help somestring to list any help texts containing "somestring".

Have fun.

Commands start with '.' (like '.quit' or '.help') Everything else goes out to the party line.

You have no messages. -HQ joined the party line. [11:34:34] Trying server pipera.ro.eu.undernet.org:6667 [11:34:34] Connected to pipera.ro.eu.undernet.org [11:34:34] -NOTICE- Looking up your hostname [11:34:34] -NOTICE- Checking Ident [11:34:34] -NOTICE- Got ident response [11:34:40] -NOTICE- ** Your forward and reverse DNS do not match, ignoring hostname. [11:35:04] x:init:server: applied silence mask: +!@ [11:35:04] x:init:server: applied silence mask: +~!@.users.undernet.org [11:35:04] x:init:server: applied silence mask: +~!@undernet.org [11:35:04] x:init:server: applied silence mask: +~!@172.16.4.0/24 [11:35:04] -NOTICE- on 2 ca 2(4) ft 10(10) tr [11:35:09] Mandalorian joined #charls_a. [11:35:09] #charls_a: mode change '+v Mandalorian' by carlos_a!carlos@mendoza.es.administrador.de.canal-ayuda.com .console +d [11:35:41] #-HQ# console +d Set your console to #charls_a: mkcoblxsd (msgs, kicks/modes, cmds, misc, bots, linked bot msgs, files, server input, debug). .rehash [11:35:46] tcl: builtin dcc call: dcc:rehash -HQ 1 [11:35:46] #-HQ# rehash Rehashing. [11:35:46] Writing user file... [11:35:46] Writing channel file... [11:35:46] Rehashing ... [11:35:46] Writing channel file... [11:35:46] Listening for telnet connections on 2a04:dd01:13:3a::33 port 9090 (all). [11:35:46] Loading dccwhois.tcl... [11:35:46] Loaded dccwhois.tcl [11:35:46] Userinfo TCL v1.08 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ YOUTUBE TWITCH). [11:35:46] use '.help userinfo' for commands. [11:35:46] [@] Armour: loading ./armour/armour-3.5.1.tcl ... [11:35:46] [@] Armour: loaded script configuration. [11:35:46] [@] Armour: eggdrop binds restructured. [11:35:46] [@] Armour: loaded command binds. [11:35:46] [@] Armour: loading user database... [11:35:46] userdb:db:load: started [11:35:46] userdb:db:load: sql row: 1 carlos mendoza 500 {} {} {} {} {} 0 mypass {} EN [11:35:46] userdb:db:load: loaded 1 users into the userlist [11:35:46] userdb:killtimers: killed 0 timers and 0 utimers [11:35:46] [@] Armour: loaded user database. [11:35:46] [@] Armour: loaded CIDR procedures. [11:35:46] [@] Armour: loaded geolocation tools. [11:35:46] [@] Armour: loaded asynchronous port scanner. [11:35:46] [@] Armour: loaded thommey commandline port scanner. [11:35:46] [@] Armour: loaded nmap scanner. [11:35:46] [@] Armour: loaded gnuworld (mod.cservice) authentication. [11:35:46] [@] Armour: loaded adaptive regex pattern builder. [11:35:46] [@] Armour: loaded remote dnsbl & portscan procedures. [11:35:46] [@] Armour: loaded user commands [11:35:46] [@] Armour: loaded raw functions. [11:35:46] [@] Armour: loaded scanner. [11:35:46] [@] Armour: loaded floodnet detection. [11:35:46] [@] Armour: loaded database functions. [11:35:46] (Armour load error):./armour/armour-3.5.1.tcl: can't find package dns while executing "package require dns" (file "./armour/armour-3.5.1.tcl" line 11730) invoked from within "source $i" [11:35:46] [@] Armour v3.5.1 Loaded (empus@undernet.org) [11:35:46] Writing channel file... [11:35:46] Userfile loaded, unpacking... [11:35:46] triggering bind arm:coroexec arm:raw:endofwho [11:35:46] triggered bind arm:coroexec arm:raw:endofwho , user 0.426ms sys 0.000ms

empus commented 2 years ago

The error is showing that the dns package cannot be found. Install tcllib on the machine and that error should go away

mjeveritt commented 2 years ago

The error is showing that the dns package cannot be found. Install tcllib on the machine and that error should go away

I would be worth mentioning that in the Dependencies somewhere :)