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 

problems transferring userfile

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


Joined: 16 Apr 2008
Posts: 3

PostPosted: Wed Apr 16, 2008 8:42 pm    Post subject: problems transferring userfile Reply with quote

Im working with three bots, two on different computers on the same network, and a third on a seperate network. The two on the same network are linked, sharing, and transferring the user file fine. When I link the bot from the seperate network to the hub on the other network, it links, but I get an error when they try to share&transfer the userfile.
This is the error I see from the bot on the seperate network

Downloading user file from hub
[bot2(dcc)] [16:24] Ending sharing with hub (Can't send userfile to you
(internal error)).

This is what I see from the Hub

[20:29] Sending user file send request to bot2
[20:30] BAD FILE -- can't send userfile

Transfer and share mods are loaded, flags are right, so Im not sure really whats going on
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Thu Apr 17, 2008 2:16 am    Post subject: Reply with quote

what eggdrop version is the bot that you recived the message from? Please
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
whz
Voice


Joined: 16 Apr 2008
Posts: 3

PostPosted: Thu Apr 17, 2008 7:13 am    Post subject: Reply with quote

eggdrop v1.6.18
Back to top
View user's profile Send private message
whz
Voice


Joined: 16 Apr 2008
Posts: 3

PostPosted: Thu Apr 17, 2008 9:03 am    Post subject: Reply with quote

The other thing it might be is the firewall on the two bots on the other network, both of their telnet ports are open and have no problems linking with the third bot on the other network, but do they use another port for transfering user files? The third bot on the seperate nework is on the dmz computer.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Apr 17, 2008 10:22 am    Post subject: Reply with quote

It would seem your hub is unable to create or open the copy of your userfile that's to be sent. Checked system quotas, write permissions, and such?

Userfile transfers are done on random ports (pretty much like a dcc file transfer - in fact, you can use the same settings to restrict which ports are used for the userfile transfer as with dcc's).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
darthanubis
Voice


Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 3:09 pm    Post subject: Reply with quote

https://bugs.launchpad.net/ubuntu/+source/eggdrop/+bug/220327

I not sure if this is related. Sound like whats happening to me, except, once the userfile can't be transferred the hub crashes HARD. Then after that, once it queries the nonhub bot, it crashes hard again.

This behavior is with the .18 ubuntu packages as well as the .19 I compiled myself with the ssl patch.

The text files of the outputs from the crashes as well as backtraces are there at the above link. I did not want to drop a massive paste here. Embarassed
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Alchera
Revered One


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

PostPosted: Mon Apr 21, 2008 8:29 pm    Post subject: Reply with quote

Did you install eggdrop from source or did you use apt?

If installed via apt then start from scratch using source and the instructions on the main page.
_________________
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
darthanubis
Voice


Joined: 21 Apr 2008
Posts: 7

PostPosted: Mon Apr 21, 2008 11:22 pm    Post subject: Reply with quote

Alchera wrote:
Did you install eggdrop from source or did you use apt?


Both. Sad
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Tue Apr 22, 2008 4:41 am    Post subject: Reply with quote

was the source also from ubuntu? since the reason i asked the version, was i couldn't find the given error message in eggdrop1.6.18 source to check why this happens. Rolling Eyes looks like this might be down to ubuntu's changes to eggdrop source code.
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Apr 22, 2008 8:31 am    Post subject: Reply with quote

The error-message is present in the "standard" source..
It's raised whenever the userfile copy, that is to be "dcc'd", can't be opened. Or rather, whenever "raw_dcc_send(share_file, "*users", "(users)", share_file))" returns anything greater than 0 (in 1.6.18, see src/mod/share.mod/share.c:1913, and src/mod/transfer.mod/transfer.c:972/1241). More speciffic, DCCSEND_BADFN in this case.

That in turn is caused whenever the "fopen(filename, "r")" instruction in raw_dcc_send returns NULL. Unfortunately, the current code lacks means of getting any further information (some logdumping of errno would've been helpful).

My best suggestions would be to check tmp-paths, file system permissions, and such (are you starting it from the right directory, do you have write-permissions in current directory, etc)
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
darthanubis
Voice


Joined: 21 Apr 2008
Posts: 7

PostPosted: Tue Apr 22, 2008 10:40 am    Post subject: Reply with quote

TCL_no_TK wrote:
was the source also from ubuntu? since the reason i asked the version, was i couldn't find the given error message in eggdrop1.6.18 source to check why this happens. Rolling Eyes looks like this might be down to ubuntu's changes to eggdrop source code.


If figured since Eggdrop 1.9 just came out, and Ubuntu does not yet have the source for 1.9,I'd compile the source from the source. Basically no I did not use Ubuntu's .18 source to compile .19. Wink
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
darthanubis
Voice


Joined: 21 Apr 2008
Posts: 7

PostPosted: Tue Apr 22, 2008 10:43 am    Post subject: Reply with quote

nml375 wrote:
The error-message is present in the "standard" source..
It's raised whenever the userfile copy, that is to be "dcc'd", can't be opened. Or rather, whenever "raw_dcc_send(share_file, "*users", "(users)", share_file))" returns anything greater than 0 (in 1.6.18, see src/mod/share.mod/share.c:1913, and src/mod/transfer.mod/transfer.c:972/1241). More speciffic, DCCSEND_BADFN in this case.

That in turn is caused whenever the "fopen(filename, "r")" instruction in raw_dcc_send returns NULL. Unfortunately, the current code lacks means of getting any further information (some logdumping of errno would've been helpful).

My best suggestions would be to check tmp-paths, file system permissions, and such (are you starting it from the right directory, do you have write-permissions in current directory, etc)


Thank you! I'll check those things and update this thread.

Well, it was because leaf bot's telnet ports could not be reached. The hub would die on failed transmit. Embarassed

To test that theory, I created and ran a bot from the same machine, and successfully created a two bot botnet.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
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