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 

Help: too many open files

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
mr_fanatic
Voice


Joined: 31 Aug 2007
Posts: 11

PostPosted: Tue Jul 20, 2010 8:55 am    Post subject: Help: too many open files Reply with quote

Hello,

On the shell the bot automatically create a new file on which the channel it is on (currently 3). example: eggdrop.#chan1 eggdrop.#chan2 eggdrop.#chan3

My problem is that on the DCC chat it says "too many open files.. cannot write user file". Is there any settings on the config which makes it do that create a new file and how will i turn it off. I was playing around with the use-info settings for greeting user when they join channel. But now i turned that off and delete the eggdrop.#chan1 etc. file manually. After that i restart the bot and still it create a new file on the channel which it is on.

This is really annoying me, please advise.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jul 20, 2010 1:27 pm    Post subject: Reply with quote

Are you using some custom scripts? This kind of error is generally caused by scripts leaking file descriptors (opening files for reading and/or writing, but failing to close them later on).

A classic example of this:
Code:
...
set data [read [open "somefile" r]]
...


You could also try to use the ulimit command to check/update the number of concurrent files your processes may open:
Code:
# ulimit -n
1024
# ulimit -n 2048

Be adviced this might need elevated privileges though..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
mr_fanatic
Voice


Joined: 31 Aug 2007
Posts: 11

PostPosted: Tue Jul 20, 2010 6:05 pm    Post subject: Reply with quote

Thank you for the reply, after looking at the tcl loaded, the error comes from OTBN.tcl 2.3 by Overtech Technologies and the error it gives was on onjoin_out function. But i have no idea how to fixed it.
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 -> Eggdrop Help 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