Skip to content

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

Description

@Elcoid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions