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

Imported data from Windows to Linux, but cannot change torrent locations #20865

Open
LEOcab opened this issue May 19, 2024 · 6 comments
Open

Comments

@LEOcab
Copy link

LEOcab commented May 19, 2024

qBittorrent & operating system versions

qBittorrent v4.6.4 (64-bit)
Endeavour OS (I don't know how to check version)

What is the problem?

I imported my torrent data from Windows to Linux. My torrents show up on the list as "Missing Files" (as expected), but I am unable to change the torrent locations to the new Linux locations. "Set Location" doesn't seem to do anything. The currently set locations seem to be Linux paths mixed with Windows paths, for example: /home/user/Downloads/S:\

Related forum thread: https://forum.qbittorrent.org/viewtopic.php?t=11417

Steps to reproduce

Moved files as instructed by the forum:
from (Windows) %localappdata%\qbittorrent -> ~/.local/share/qBittorrent/
and (Windows) %appdata%\qbittorrent -> ~/.config/qBittorrent

Then try to change torrent locations via either "Set location" or "Torrent options".

Additional context

I'm not a Github guy but I am a super seeder and torrent enthusiast so please don't delete this. I have YEARS worth of stuff I'm still seeding and I really don't want to start over. My entire self-esteem as a person comes from my long list of high seed ratios in qBittorrent. I cannot let Microsoft take that from me. PLEASE HELP ME.

Log(s) & preferences file(s)

All settings are default.

@glassez
Copy link
Member

glassez commented May 20, 2024

"Set Location" doesn't seem to do anything.

So it should provide some messages in log that can be helpful. (Damn, why is everyone ignoring to provide a log in the Issue report?)

@xavier2k6
Copy link
Member

(Damn, why is everyone ignoring to provide a log in the Issue report?)

Downfall of not enforcing it as a requirement.

@LEOcab
Copy link
Author

LEOcab commented May 22, 2024

"Set Location" doesn't seem to do anything.

So it should provide some messages in log that can be helpful. (Damn, why is everyone ignoring to provide a log in the Issue report?)

Ah! Logs. Right. Those exist. Apologies. I found it, though, and here's what it has to say about me trying to set location:

(N) 2024-05-22T16:21:30 - Enqueued torrent move. Torrent: "My Torrent". Source: "/home/user/Downloads/S:\". Destination: "/mnt/host-special" (N) 2024-05-22T16:21:30 - Start moving torrent. Torrent: "My Torrent". Destination: "/mnt/host-special" (W) 2024-05-22T16:21:33 - Failed to move torrent. Torrent: "My Torrent". Source: "/home/user/Downloads/S:\". Destination: "/mnt/host-special". Reason: "My Torrent.torrent storage move failed. mkdir (/home/user/Downloads/S:\/My Torrent.torrent\WORKSHOP/BAKSCRIPT/gl\urls): Invalid argument" (N) 2024-05-22T16:21:40 - Torrent resumed. Torrent: "My Torrent" (N) 2024-05-22T16:21:40 - Torrent paused. Torrent: "My Torrent"

For some reason it's trying to 'mkdir' in the old directory (/home/user/Downloads/S:) instead of the new one (/mnt/host-special/). Not that it should, considering all of the files are already downloaded...

Where are the paths located? What file? Is there any way to manually edit it with a hex editor or something? This seems like it'd be such a simple fix if I could just replace those damn paths myself

@glassez
Copy link
Member

glassez commented May 24, 2024

I just tried to reproduce it and I can't do. Perhaps there are some other unaccounted-for aspects...

24.05.2024 12:40 - Failed to restore torrent. Files were probably moved or storage isn't accessible. Torrent: "bittorrent-v1-v2-hybrid-test". Reason: "bittorrent-v1-v2-hybrid-test fast resume rejected. file_stat(/home/glassez/devel/build-qBittorrent/debug/C:\Users\glassez\Devel\qbittorrent\profiles\qBittorrent_test4\downloads/bittorrent-v1-v2-hybrid-test/Darkroom (Stellar, 1994, Amiga ECS) HQ.mp4): mismatching file size"

24.05.2024 12:41 - Enqueued torrent move. Torrent: "bittorrent-v1-v2-hybrid-test". Source: "/home/glassez/devel/build-qBittorrent/debug/C:\Users\glassez\Devel\qbittorrent\profiles\qBittorrent_test4\downloads". Destination: "/home/glassez/devel/qBittorrent-profile/qBittorrent/downloads"

24.05.2024 12:41 - Start moving torrent. Torrent: "bittorrent-v1-v2-hybrid-test". Destination: "/home/glassez/devel/qBittorrent-profile/qBittorrent/downloads"

24.05.2024 12:41 - Moved torrent successfully. Torrent: "bittorrent-v1-v2-hybrid-test". Destination: "/home/glassez/devel/qBittorrent-profile/qBittorrent/downloads"

@LEOcab
Copy link
Author

LEOcab commented May 27, 2024

I just tried to reproduce it and I can't do. Perhaps there are some other unaccounted-for aspects...

24.05.2024 12:40 - Failed to restore torrent. Files were probably moved or storage isn't accessible. Torrent: "bittorrent-v1-v2-hybrid-test". Reason: "bittorrent-v1-v2-hybrid-test fast resume rejected. file_stat(/home/glassez/devel/build-qBittorrent/debug/C:\Users\glassez\Devel\qbittorrent\profiles\qBittorrent_test4\downloads/bittorrent-v1-v2-hybrid-test/Darkroom (Stellar, 1994, Amiga ECS) HQ.mp4): mismatching file size"

24.05.2024 12:41 - Enqueued torrent move. Torrent: "bittorrent-v1-v2-hybrid-test". Source: "/home/glassez/devel/build-qBittorrent/debug/C:\Users\glassez\Devel\qbittorrent\profiles\qBittorrent_test4\downloads". Destination: "/home/glassez/devel/qBittorrent-profile/qBittorrent/downloads"

24.05.2024 12:41 - Start moving torrent. Torrent: "bittorrent-v1-v2-hybrid-test". Destination: "/home/glassez/devel/qBittorrent-profile/qBittorrent/downloads"

24.05.2024 12:41 - Moved torrent successfully. Torrent: "bittorrent-v1-v2-hybrid-test". Destination: "/home/glassez/devel/qBittorrent-profile/qBittorrent/downloads"

It wouldn't have been that easy to "reproduce". This is a 10+ year old data folder with dozens of torrents that's been through numerous versions of qBittorrent. God knows what the fuck is wrong with it. If this hasn't happened to anybody else before then I'm just SOL unless somebody who actually knows how the code works wants to walk me through it.

@glassez
Copy link
Member

glassez commented May 29, 2024

unless somebody who actually knows how the code works wants to walk me through it.

It's not clear what you want to get out of this. You even ignore to specify the detailed information about your qBittorrent, which is required for a correct Issue, and which is easily accessible through the "Help > About" menu. Note that qBittorrent can use different libtorrent branches (1.2 or 2.0) that can have different behavior.

It wouldn't have been that easy to "reproduce". This is a 10+ year old data folder with dozens of torrents that's been through numerous versions of qBittorrent.

Isn't it reproducible for any of your torrents that you're trying to move to Linux?

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

No branches or pull requests

3 participants