Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XD is redownloading files that were previously seeding (maybe just a misconfiguration?) #98

Open
Elcoid opened this issue May 20, 2022 · 4 comments
Labels

Comments

@Elcoid
Copy link
Contributor

Elcoid commented May 20, 2022

info

git revision / version: v0.4.2-10-g9c5fe43

OS: OpenBSD 6.9

Architecture: amd64

problem

Hello,

I compiled XD in my home directory and successfully downloaded a few GBs of Linux ISOs over the last few months. Today I decided to install it in /usr/local/bin and copy the config file in /etc/xd, while leaving the storage folder in my home. However, when I start XD, the web interface shows that the torrents are at ~0% and are downloading, instead of being at 100% and seeding.

Before, my config was at /home/user/XD/torrents.ini and contained this:

[storage]
rootdir=storage
metadata=storage/metadata
downloads=storage/downloads
completed=storage/seeding

[bittorrent]
tracker-config=trackers.ini

I moved the storage folder directly in my home and renamed it torrents, yielding the following structure:

~
  + torrents
    + metadata
      + ...
    + downloads
    + seeding
      + ...

I moved the config files torrents.ini and trackers.ini in /etc/xd/ and changed the relevant sections in torrents.ini to this:

[storage]
rootdir=/home/user/torrents
metadata=/home/user/torrents/metadata
downloads=/home/user/torrents/downloads
completed=/home/user/torrents/seeding

[bittorrent]
tracker-config=/etc/xd/trackers.ini

Then I call XD like so:

XD /etc/xd/torrents.ini

The first time I ran XD after the switch, I saw a lot of messages with "pieces mismatch". I'm assuming it means it detected that the downloaded files didn't match their hash anymore, or something similar? But they're still the same files as before.
Is there something I did wrong? Thank you

@majestrate majestrate added the bug label May 20, 2022
@majestrate
Copy link
Owner

may be related to the change to an absolute path

@Elcoid
Copy link
Contributor Author

Elcoid commented May 21, 2022

I did a test to make sure the files were not corrupted. I stopped XD, copied a big file from a backup I had (which represents about 99% of the size of one of the torrents), and restarted XD. The progression didn't change and the torrent continues downloading as if nothing had happened. Should XD have detected that the file changed and adjusted the progression?

@majestrate
Copy link
Owner

majestrate commented May 21, 2022 via email

@majestrate
Copy link
Owner

majestrate commented May 21, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants