You are here

Why qBittorrent has breaking change on update?

5 posts / 0 new
Last post
Kikka1225
Kikka1225's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 2008-11-16 16:09
Why qBittorrent has breaking change on update?

You changed the path from:

  1. qBittorrentPortable\Data\settings\AppData_qBittorrent to qBittorrentPortable\Data\qBittorrent\config

  2. qBittorrentPortable\Data\settings\LocalAppData_qBittorrent to qBittorrentPortable\Data\qBittorrent\data

These changes can cause users to lose their old data and settings.

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 31 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Installer Moves

The installer moves these files automatically on upgrade from an older version. The move is so the profile switch can be used and the settings don't have to be moved to and from the local paths: https://portableapps.com/node/71406

Sometimes, the impossible can become possible, if you're awesome!

Kikka1225
Kikka1225's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 2008-11-16 16:09
Logical flaw

This upgrade logic has problems with destructive upgrades when the target program has not exited properly (e.g. power failure).

I recommend that for all future upgrade packages, first check to see if the target program has completed the normal exit procedure before proceeding with the update. If the program has not exited properly, complete the exit procedure before installing the update.

No M$! - Open your source! Make people's lives easier!

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 31 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Last Session

If a power outage occurred while qBittorrent was running and then you upgraded before running it again, only the changes made in the last session would be lost. The stuff you had prior to that would be preserved and updated path wise to the new locations. So, in this highly unlikely scenario, you'd only lose the last bits of stuff from torrenting that session. Are you saying this exact scenario happened to you? If so, you could manually copy the files from the local locations into the portable locations.

Sometimes, the impossible can become possible, if you're awesome!

Kikka1225
Kikka1225's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 2008-11-16 16:09
Yes, it happens to me. And often to other apps too.

It made me think that I had somehow lost data again, and then I tried to scan the disk, etc. to recover the data.
Only to finally realize it was a change in mapping that caused the data not to apply.

Since it is possible to trigger the update program when the platform starts up. Therefore, it stands to reason that all users who experience similar power outages or unintentional program shutdowns for whatever reason will run into problems like this. It's definitely not a low probability event.

No M$! - Open your source! Make people's lives easier!

Log in or register to post comments