Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gift
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ShEvA!
n00b
n00b


Joined: 13 Dec 2004
Posts: 15

PostPosted: Wed Dec 15, 2004 11:18 am    Post subject: gift Reply with quote

I have a problem while running gift+apollon connecting via the FastTrack plugin: i can get a list of files after a query, but each time I try to start a download gift returns an error on the console (I'm running it with the -v switch) with 0 bytes downloaded, then the connection with the remote host is lost
Back to top
View user's profile Send private message
setagllib
n00b
n00b


Joined: 15 Dec 2004
Posts: 53

PostPosted: Wed Dec 15, 2004 12:43 pm    Post subject: Reply with quote

You might be doing something really exotic in your iptables scripts, if you're using iptables at all. I don't know the FastTrack protocol itself so I can't really help there, but Google around.

Or somebody else might drop in and solve this.
_________________
My other computer is your Windows box.
Back to top
View user's profile Send private message
ShEvA!
n00b
n00b


Joined: 13 Dec 2004
Posts: 15

PostPosted: Fri Dec 17, 2004 8:59 pm    Post subject: Reply with quote

the exact error is something like this:

[21:50:34] giFT: daemon.c:427(start_download): new download (xxxxxxxxx.xxxx) (89758)
[21:50:35] *** GIFT-ERROR: unable to write state file buffer!

as I have said before, i can browse the files queried via the FastTrack plugin, but as soon as I try to start a download i get the error above. AFAIK iptables should not be even present in the system...any ideas on how to have gift working?
Back to top
View user's profile Send private message
cram
Guru
Guru


Joined: 17 Nov 2002
Posts: 312
Location: Saskatoon, Canada

PostPosted: Sat Dec 18, 2004 1:58 am    Post subject: Reply with quote

do you have write permissions on the download directories?
_________________
aaarggghhhh.
Good point Chewie.
Back to top
View user's profile Send private message
ShEvA!
n00b
n00b


Joined: 13 Dec 2004
Posts: 15

PostPosted: Sat Dec 18, 2004 12:46 pm    Post subject: Reply with quote

I also thought the problem could be something like that, but I think I've configured correctly the r/w permissions
Back to top
View user's profile Send private message
Merlin-TC
l33t
l33t


Joined: 16 May 2003
Posts: 603
Location: Germany

PostPosted: Tue Dec 28, 2004 1:16 pm    Post subject: Reply with quote

Did you find out how to solve the problem?

I know what the problem is now but don't know how to solve it yet.

The logfiles show that gift reads all the config files from the specified directory but still tries to write files to ~/.giFT/ which is still root.

EDIT

OK, got it to work now.

The trick is to edit the /etc/conf.d/gift file as well.

In there they set a user p2p which I suggest you use as well so it runs as it's own user.
Then change the sharedir to the following:
Code:
SHAREDIR="/home/p2p/.giFT"


You could also keep the /usr/share/giFT and change it there but I prefer to have it all in one location.

Then make sure that you copy all your gift config files into /home/p2p/.giFT.

Then edit the the giftd.conf file and now comes the important part.

Somehow it will set the homedir of gift to /root when you use ~ so use an absolute path like this:

Code:

incoming = /home/p2p/.giFT/incoming
completed = /home/p2p/.giFT/completed


After that it should finally work, start it with /etc/init.d/gift start

I guess there is a better solution but this one works without a flaw and that's what I wanted :)

If you want a nice GUI for KDE try Apollon, it will connect to the running gift core.[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
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