<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13906" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-08-18T11:35:41-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13906</id>

		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-08-18T11:35:41-04:00</updated>

		<published>2007-08-18T11:35:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75362#p75362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75362#p75362"/>
		<title type="html"><![CDATA[Error: too many open files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75362#p75362"><![CDATA[
thx, I'll change my hoster and try that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Sat Aug 18, 2007 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-08-15T10:35:11-04:00</updated>

		<published>2007-08-15T10:35:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75297#p75297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75297#p75297"/>
		<title type="html"><![CDATA[Error: too many open files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75297#p75297"><![CDATA[
I guess one option might be to replace the open and close-commands with a proc featuring some debugging code; ie, rename open to _open, create a proc named open that calls _open, and tries to figure out number of opened files, where it was called from, and such.<br><br>Also, remember that sockets also make use of file descriptors, including the http-package..<br>Not sure this part might be to blame, but might be worth investigating:<div class="codebox"><p>Code: </p><pre><code>variable newquest ""package require httpsetudef flag weatherset agent "Mozilla/4.75 (X11; U; Linux 2.2.17; i586; Nav)"bind pub - !qread pub_wbind pub - !qinsert pub_ibind pub - !qcorrect pub_cproc pub_w {nick uhand handle chan input} {    global botnick agent datadir newquest if {![isop $nick $chan]} {mxirc_notc $nick "Du musst Op sein, um diese Funktion auszuführen"return}mxirc_quick_notc $nick "Neue Fragen werden eingelesen. Sollte der Befehl nicht funktionieren, probier zunächst !rehash."    set query "http://moxquiz.mo.funpic.de/fragen/neue_fragen.txt"    set http [::http::config -useragent $agent]    set http [::http::geturl $query]    set html [::http::data $http] set questtime "[unixtime].txt" set fname "$datadir/backup/$questtime" set newquest $fname set fp [open $fname "a"]foreach line [split $html "\n"] {puts $fp $line}close $fp</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Aug 15, 2007 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-08-15T10:27:31-04:00</updated>

		<published>2007-08-15T10:27:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75294#p75294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75294#p75294"/>
		<title type="html"><![CDATA[Error: too many open files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75294#p75294"><![CDATA[
I know the error lies within: <a href="http://moxquiz.mo.funpic.de/test/moxquizz.txt" class="postlink">http://moxquiz.mo.funpic.de/test/moxquizz.txt</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Wed Aug 15, 2007 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-08-14T19:59:26-04:00</updated>

		<published>2007-08-14T19:59:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75282#p75282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75282#p75282"/>
		<title type="html"><![CDATA[Error: too many open files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75282#p75282"><![CDATA[
<blockquote class="uncited"><div>Thanks!<br><br><br>I consulted the bot-hoster, who told me the problem lies within the script. Is there a way to convince him of the opposite?</div></blockquote>Unload all scripts; test one by one to see for certain which is the offender.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Aug 14, 2007 7:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-08-14T15:11:32-04:00</updated>

		<published>2007-08-14T15:11:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75278#p75278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75278#p75278"/>
		<title type="html"><![CDATA[Error: too many open files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75278#p75278"><![CDATA[
Thanks!<br><br><br>I consulted the bot-hoster, who told me the problem lies within the script. Is there a way to convince him of the opposite?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Tue Aug 14, 2007 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-08-14T14:29:46-04:00</updated>

		<published>2007-08-14T14:29:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75277#p75277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75277#p75277"/>
		<title type="html"><![CDATA[Error: too many open files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75277#p75277"><![CDATA[
I had a quick look at the script, it seems to properly close every file it opens. I guess the problem is from the machine hosting your Eggdrop.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Aug 14, 2007 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-08-14T07:20:43-04:00</updated>

		<published>2007-08-14T07:20:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75271#p75271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75271#p75271"/>
		<title type="html"><![CDATA[Error: too many open files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75271#p75271"><![CDATA[
Hi,<br><br>I get the following errors all the time:<br><blockquote class="uncited"><div>14/08/07@05:03.21&gt; : couldn't execute "/usr/bin/ncftpput": <span style="color:red">too many open files</span><br>    while executing<br>"exec /usr/bin/ncftpput -V -a -m -f /home/eggdrop/moxquiz/scripts/ftpserver.ftp /logs/timestats/ ~/$webscore"<br>    (procedure "mx_userspeedsave" line 368)<br>    invoked from within<br>"mx_userspeedsave"<br>    (procedure "moxquiz_pubm" line 656)<br>    invoked from within<br>"moxquiz_pubm $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"<br><br><br>14/08/07@05:03.27&gt; : couldn't execute "/usr/bin/ncftpput": too many open files<br>    while executing<br>"exec /usr/bin/ncftpput -V -a -m -f /home/eggdrop/moxquiz/scripts/ftpserver.ftp / ~/mox.html"<br>    (procedure "mx_html" line 118)<br>    invoked from within<br>"mx_html $newnick $host $handle $channel"<br>    (procedure "moxquiz_on_nickchanged" line 10)<br>    invoked from within<br>"moxquiz_on_nickchanged $_stnm1 $_stnm2 $_stnm3 $_stnm4 $_stnm5"<br><br><br>14/08/07@05:05.44&gt; : couldn't execute "/usr/bin/ncftpput": too many open files<br>    while executing<br>"exec /usr/bin/ncftpput -V -a -m -f /home/eggdrop/moxquiz/scripts/ftpserver.ftp / ~/mox.html"<br>    (procedure "mx_html" line 118)<br>    invoked from within<br>"mx_html $botnick "" "" $quizconf(quizchannel)"<br>    (procedure "moxquiz_after_part" line 3)<br>    invoked from within<br>"moxquiz_after_part"<br><br><br>14/08/07@05:05.45&gt; : couldn't execute "/usr/bin/ncftpput": too many open files<br>    while executing<br>"exec /usr/bin/ncftpput -V -a -m -f /home/eggdrop/moxquiz/scripts/ftpserver.ftp / ~/mox.html"<br>    (procedure "mx_html" line 118)<br>    invoked from within<br>"mx_html $botnick "" "" $quizconf(quizchannel)"<br>    (procedure "moxquiz_after_part" line 3)<br>    invoked from within<br>"moxquiz_after_part"<br><br>.<br>.<br>.<br><br>14/08/07@11:10.29&gt; : <span style="color:red">moxquiz.mo.funpic.de: unknown host.</span><br>ncftpput: cannot open moxquiz.mo.funpic.de: unknown host.<br>    while executing<br>"exec /usr/bin/ncftpput -V -a -m -f /home/eggdrop/moxquiz/scripts/ftpserver.ftp / ~/mox.html"<br>    (procedure "mx_html" line 118)<br>    invoked from within<br>"mx_html $botnick "" "" $quizconf(quizchannel)"<br>    (procedure "moxquiz_after_part" line 3)<br>    invoked from within<br>"moxquiz_after_part"</div></blockquote><span style="color:red">too many open files</span><br>The error occurs on random locations in the script. Unfortunately I can't find a file in the script that isn't closed after use.  Reducing the files being opened doesn't seem to help. Is there a way to avoid the bot freezing due to this error other than restarting it all the time?<br><br><span style="color:red">moxquiz.mo.funpic.de: unknown host.</span><br>this one is probably easier: how can I avoid to send a file to my webspace (per ftp) which ist temporarily down?<br><br><br>I hope my questions aren't too unspecific. If needed, here's the script: <a href="http://moxquiz.mo.funpic.de/test/moxquizz.txt" class="postlink">http://moxquiz.mo.funpic.de/test/moxquizz.txt</a><br> <br><br>Thanks for your help!<br><br>-typ-<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Tue Aug 14, 2007 7:20 am</p><hr />
]]></content>
	</entry>
	</feed>
