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 

eggdrop start then nothing
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Linux
Halfop


Joined: 04 Apr 2004
Posts: 71
Location: Under The Sky

PostPosted: Thu Nov 10, 2005 6:09 am    Post subject: Reply with quote

you mean to say when you start bot with '-n' it works fine and without '-n' it wont work? (i.e. as mention in the very first post that "without -n it does nothing, no telnet, no connection to irc server")
_________________
I'm an idiot, At least this one [bug] took about 5 minutes to find...
Back to top
View user's profile Send private message
Larkspeed
Voice


Joined: 04 Nov 2005
Posts: 9

PostPosted: Thu Nov 10, 2005 7:34 am    Post subject: Reply with quote

yup thats exactly it

right now my bot is sitting in my channel doing everything it should do but to achieve that I have it running in a second console that I can't close or the bot quits.

without the -n it start' without errors but no connections at all in or out
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Nov 10, 2005 11:14 am    Post subject: Reply with quote

I did a test myself today and started a bot with the -n switch, closed the the Telnet session (SecureCRT) and the bot remained connected to the Network and functioned as expected.; in fact it's still connected after 5 hrs.

Your problem, going by my test, therefore has nothing to do with eggdrop in my opinion.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Larkspeed
Voice


Joined: 04 Nov 2005
Posts: 9

PostPosted: Thu Nov 10, 2005 11:46 am    Post subject: Reply with quote

ok so you can detach from a telnet session without the session fully terminating. great

but it still does not change the fact that when I run the bot and I Don't use the -n switch which is the correct way to run the bot it does not work.

I don't want it running in a second console with the -n switch on so it is outputing everything to the screen I want it to run in the background like it is supposed to.

I can run it in a screen session with the -n switch and detach from the screen which is effectivly the same thing you are doing just a different way.

However doing it this way I cannot use the botcheck script to make sure the bot is running and restart it if it crashes.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Nov 10, 2005 11:01 pm    Post subject: Reply with quote

As far as I can determine, this has nothing to do with eggdrop. The problem is being caused elsewhere.

Either reinstall tcl8.4 or downgrade to tcl8.3.

Try running the bot with only default scripts (or none).
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Larkspeed
Voice


Joined: 04 Nov 2005
Posts: 9

PostPosted: Fri Nov 11, 2005 4:57 am    Post subject: Reply with quote

you know what I give up

There realy is no point

if anything other than the bot itself was at fault it would not work at all rather than only not work when it is in the background.

I'll just scrap eggdrop entirly and use a different bot
Back to top
View user's profile Send private message
prim3
Voice


Joined: 18 Nov 2005
Posts: 8

PostPosted: Fri Nov 18, 2005 10:04 pm    Post subject: Reply with quote

Hi,

I installed yesterday a eggdrop and got the next error on connect:

[03:03] === xxxxxxxx: 0 channels, 0 users.
[03:03] main: entering loop
[03:03] Trying server 194.109.129.220:6667
[03:03] * Last context: tclhash.c/238 []
[03:03] * Please REPORT this BUG!
[03:03] * Check doc/BUG-REPORT on how to do so.
[03:03] * Wrote DEBUG
[03:03] * SEGMENT VIOLATION -- CRASHING!
Segmentation fault (core dumped)

anyone an idea what to do? Sad

try'ed multiple server, no result...
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Nov 19, 2005 12:20 am    Post subject: Reply with quote

as the message says, report this bug (not that someone would bother anyway, they hadn't released a new version for ages and I doubt anyone's working on fixing bugs)
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
prim3
Voice


Joined: 18 Nov 2005
Posts: 8

PostPosted: Sat Nov 19, 2005 7:45 am    Post subject: Reply with quote

so... what should/could i do then? use a older version then?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Nov 19, 2005 1:08 pm    Post subject: Reply with quote

get rid of any scripts you might be using and try again
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat Dec 31, 2005 1:20 pm    Post subject: Reply with quote

I just helped a sysadmin tracking down the background problem. It seems this because of version missmatching of TCL. Thinking of the nature of the error its no wonder installing and using TCL 8.3 also solves the problem, but thats strictly seen a workaround and no solution.
However I found out that there were 2 TCL versions installed, one in /usr/lib and one in /usr/local/lib. the one in /usr/lib had no header files, version was 8.4.9 and was configured as threaded. In /usr/local/lib there was 8.4.12 configured as non-threaded and with header files. However the configure script detected the TCL in /usr/local/lib, found its headers and compiled. But the system checked the libary first in /usr/lib and ran a non-threaded eggdrop on an old threaded TCL.

Solution A: (the user solution)
use 'export LD_LIBRARY_PATH=/usr/local/lib' to point to the libarary that the bot actually is compiled with. Use the configure --with-tcllib= and --with-tclinc= switchs to change which TCL eggdrop is compiled with.

Solution B: (the root solution)
locate and delete the second TCL installation and preferable install it into the system default prefix (which is /usr and not /usr/local for debian as example). 'whereis tcl' or 'locate tcl8.4' might help you finding duplicates.

PS: no garantue every background connect failure is related to this, but it likely is the main reason. If people can confirm this solution it might be added to the FAQ ^-^.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...


Last edited by De Kus on Sat Dec 31, 2005 5:56 pm; edited 3 times in total
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Dec 31, 2005 1:23 pm    Post subject: Reply with quote

how did you know that?
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat Dec 31, 2005 1:25 pm    Post subject: Reply with quote

demond wrote:
how did you know that?

How did I know what?
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Dec 31, 2005 1:41 pm    Post subject: Reply with quote

that the crash that guy experienced was due to threaded libtcl

btw, there is no such thing threaded eggdrop
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat Dec 31, 2005 2:05 pm    Post subject: Reply with quote

this is no solution for the crash, but for the original topic which is about eggdrop working in foreground but fails to handle network connections in background. Same problem occured in tclsh so I tried to track it down, since I knew it was sure it must be because of TCL.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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