[QBittorrent-native] Update 4.5.x+ (4 variations based on lib used)

Who doesn't love third-party apps? Get together and talk about them here.

Moderator: Lillian.W@AST

Post Reply
ivanyu
Posts: 14
youtube meble na wymiar Warszawa
Joined: Tue May 02, 2023 12:17 am

Re: [QBittorrent-native] Update 4.5.1 (4 variations based on lib used)

Post by ivanyu »

Thank you so much for your reply. I will post future questions to the forum.

If I use solution 2, when there is a newer version of qbittorrent-native, will the upgrade overwrite my manual settings?
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [QBittorrent-native] Update 4.5.1 (4 variations based on lib used)

Post by father.mande »

Hi,
Normally (if I did not do a mistake), during update of the APKG, just before updating, I will save (then restore after install of the new version)
... the qbittorrent-native.inc (so new DOWNLOAD_PATH (and keep it if update)
... the home folder (with .local and .config) so all settings of qbittorrent
... the bin folder ... used after update ONLY if the version in the save is greater than version in new APKG (ex. you update manually ... and new APKG is not)

So all your settings are saved and reused.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
ivanyu
Posts: 14
Joined: Tue May 02, 2023 12:17 am

Re: [QBittorrent-native] Update 4.5.1 (4 variations based on lib used)

Post by ivanyu »

I have changed the port inside /usr/local/AppCentral/qbittorrent-native/qbittorrent-native.inc and I have also changed the session config through QBT GUI menu settings.

However, the icon on ADM seems to remain at port 19080.

How can I update the icon port number on ADM?

Thank you very much.
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [QBittorrent-native] Update 4.5.1 (4 variations based on lib used)

Post by father.mande »

Hi,
ivanyu wrote:I have changed the port inside /usr/local/AppCentral/qbittorrent-native/qbittorrent-native.inc and I have also changed the session config through QBT GUI menu settings.
However, the icon on ADM seems to remain at port 19080.
How can I update the icon port number on ADM?
Thank you very much.
Asustor don't mange this possibility ... so only small hack can do the job
1)
... if you user the command qb_native_mngt change_web_port NEW8PORT (ex. 19081 or what you want > 1024 and not already used)
... ... this command : STOP qbittorrent, change port in qbittorrent-native.inc AND change also the port attached to ADM WebUI
... ... then automatically restart qbittorrent (take attention you must disconnect from ADM then reconnect to have change doing effect.
2)
... you do the change manually (in qbittorrent-native.inc)
... ... you must change port in app-config.json file in /usr/builtin/etc/appcentral AT your risk ... using your preferred editor (vi, vim, nano ... ADM or added using Entware APKG

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
ivanyu
Posts: 14
Joined: Tue May 02, 2023 12:17 am

Re: [QBittorrent-native] Update 4.5.x+ (4 variations based on lib used)

Post by ivanyu »

Updated to 4.5.3 with 2.0.9 Libtorrent using Internal Updater, works perfect!

Thanks.
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [QBittorrent-native] Update 4.5.x+ (4 variations based on lib used)

Post by father.mande »

Hi,
ivanyu wrote:Updated to 4.5.3 with 2.0.9 Libtorrent using Internal Updater, works perfect!
Thanks.
Thanks for experience return, I also update, and prepare (when my dev. NAS will be restarted (my fault at 600 km)) a new APKG for others users.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
ivanyu
Posts: 14
Joined: Tue May 02, 2023 12:17 am

Re: [QBittorrent-native] Update 4.5.x+ (4 variations based on lib used)

Post by ivanyu »

If I replace my Asustor system disk 1 (no raid, standalone disk), how can I copy over and migrate all qBittorrent settings so new disk can retain all the config and completed torrents?
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [QBittorrent-native] Update 4.5.x+ (4 variations based on lib used)

Post by father.mande »

Hi,
ivanyu wrote:If I replace my Asustor system disk 1 (no raid, standalone disk), how can I copy over and migrate all qBittorrent settings so new disk can retain all the config and completed torrents?

For the APKG itself :
... save (tar or what else) in /usr/local/AppCentral/qbittorrent-native
bin folder (to keep your last update)
home folder ... all your settings
qbittorrent-native.inc ... the file need to target correct version and DOWNLOAD_PATH variable
... save all your torrents from this DOWNLOAD_PATH default : /share/Download/qb_store (used external disk if large size)

... install APKG on new disk, stop (disable it immediately)

... return to /usr/local/AppCentral/qbittorrent-native
restore bin, home qbittorrent-native.inc (overwrite existing)

restore if need /share/Download/qb_store (or your own folder if you change target)
Download folder (share) is created at qbittorrent-native install.

restart (enable) qbittirrent-native

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
ivanyu
Posts: 14
Joined: Tue May 02, 2023 12:17 am

Re: [QBittorrent-native] Update 4.5.x+ (4 variations based on lib used)

Post by ivanyu »

It seems any new folder created by qbittorrent is permissioned 755, is there a way to default it to 777?

Thanks
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [QBittorrent-native] Update 4.5.x+ (4 variations based on lib used)

Post by father.mande »

Hi,
ivanyu wrote:It seems any new folder created by qbittorrent is permissioned 755, is there a way to default it to 777?
Thanks
Not sure that qbittorrent manage this directly from settings ...

I think we can try to add a umask in the hell starting qbittorrent (default in NAS is 0022 ... so create folder as 755 ...
using 0000 as umask can cerate folder with 777
test change :
stop qbittorrent
edit /usr/local/AppCentral/qbittorrent-native/CONTROL/start-stop.sh
... add umask 0000 after "start)"
... write and quit ... then restart qbittorrent

If this don't work ...
... we can add a shell script to run AFTER each torrent download (it's in settings) to change the access rigth .

I will try to test the 2 solutions soon, but I have few free time for the moment.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “Developer's Corner”