View previous topic :: View next topic |
Author |
Message |
ShEvA! n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Dec 2004 Posts: 15
|
Posted: Wed Dec 15, 2004 11:18 am Post subject: gift |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
setagllib n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Dec 2004 Posts: 53
|
Posted: Wed Dec 15, 2004 12:43 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ShEvA! n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Dec 2004 Posts: 15
|
Posted: Fri Dec 17, 2004 8:59 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cram Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/184775b13de4901b35d9b.gif)
Joined: 17 Nov 2002 Posts: 312 Location: Saskatoon, Canada
|
Posted: Sat Dec 18, 2004 1:58 am Post subject: |
|
|
do you have write permissions on the download directories? _________________ aaarggghhhh.
Good point Chewie. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ShEvA! n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Dec 2004 Posts: 15
|
Posted: Sat Dec 18, 2004 12:46 pm Post subject: |
|
|
I also thought the problem could be something like that, but I think I've configured correctly the r/w permissions |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Merlin-TC l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/8595921774006cb13a11cf.gif)
Joined: 16 May 2003 Posts: 603 Location: Germany
|
Posted: Tue Dec 28, 2004 1:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|