egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script sw108i kills my bot

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
m4s
Halfop


Joined: 30 Jan 2017
Posts: 52

PostPosted: Wed Oct 09, 2019 12:52 pm    Post subject: Script sw108i kills my bot Reply with quote

Hi,

I started to use this script last week but it 'kills' my bot. In the eggdrop.log I found this:
* TERMINATE SIGNAL -- SIGNING OFF.

Can someone have a look pls?
https://pastebin.com/aSDJ27j7

Thank You!
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2846

PostPosted: Wed Oct 09, 2019 4:19 pm    Post subject: Reply with quote

That log-entry suggests your eggdrop process is actively being killed off on your host (not uncommonly by an admin using the kill command, or a resource-management system). I can't find anything in the script that would cause your eggdrop to send a SIGTERM signal to itself - could be a coincidence that your admin started killing your eggdrop after you started using the script?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
m4s
Halfop


Joined: 30 Jan 2017
Posts: 52

PostPosted: Thu Oct 10, 2019 12:36 pm    Post subject: Reply with quote

nml375 wrote:
That log-entry suggests your eggdrop process is actively being killed off on your host (not uncommonly by an admin using the kill command, or a resource-management system). I can't find anything in the script that would cause your eggdrop to send a SIGTERM signal to itself - could be a coincidence that your admin started killing your eggdrop after you started using the script?


Thanks for your reply nml375. This is strange.
When I realized my eggdrop is not on irc I checked the running processes (ps -A) and the eggdrop as a process was among the running processes.

???
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2846

PostPosted: Thu Oct 10, 2019 5:19 pm    Post subject: Reply with quote

Had another look at that script...
There is a potential deadlock in the "rnduser" proc; where the script will pick a random nickname in the list of channel members, and make sure it's not present in the list of bots. If it is, it will pick a new one and repeat the test... This loop will continue until it manages to find a channel member not in the list. Still, it'd only be a real issue where the list of channel members solely consists of nicks in the list of bots...

All in all, though there's a lot that could be tidied up in that script, I can't see any real reason for it causing your eggdrop to crash...

As for "* TERMINATE SIGNAL -- SIGNING OFF'", this would only be logged if your eggdrop process did receive the SIGTERM signal.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1042

PostPosted: Thu Oct 10, 2019 8:49 pm    Post subject: Reply with quote

nml375 wrote:

...
This loop will continue until it manages to find a channel member not in the list.
...

As for "* TERMINATE SIGNAL -- SIGNING OFF'", this would only be logged if your eggdrop process did receive the SIGTERM signal.


Could it be that the script is doing something - perhaps getting stuck in a loop - and the shell detects a lot of resources consumed, and kills the process that is consuming them?

I believe that I saw this person on IRC describe this problem, and I think I remember that the bot is on a free shell. One that is known to have automated scripts to detect rules violations (too many bots, etc.) , so I wouldn't be surprised if they have something automated to detect a process that is using too much of resources.

This is very curious though:
Quote:

When I realized my eggdrop is not on irc I checked the running processes (ps -A) and the eggdrop as a process was among the running processes.


Are we to assume that bot was started again by crontab and botchk?

Well ok.
Whatever started it... what's keeping bot from logging into the irc server?
That's mysterious.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
m4s
Halfop


Joined: 30 Jan 2017
Posts: 52

PostPosted: Fri Oct 11, 2019 1:30 am    Post subject: Reply with quote

willyw wrote:

...
I believe that I saw this person on IRC describe this problem, and I think I remember that the bot is on a free shell. One that is known to have automated scripts to detect rules violations (too many bots, etc.) , so I wouldn't be surprised if they have something automated to detect a process that is using too much of resources.



Right, I was on freenode and described my problem on #xshellz and on #eggdrop. Smile And yes, I have been using a free shell since 2017.
I always use the autobotchk to create a crontab line so the bot started automatically after the kill.

Perhaps I have to ask someone in the Script request section to write a new script for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber