qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.06k stars 3.89k forks source link

TrueNAS Core plugin displays incorrect initial password #20504

Open MrGekko1 opened 6 months ago

MrGekko1 commented 6 months ago

qBittorrent & operating system versions

qBittorrent: 4.6.3 Operating system: TrueNAS Core 13.0 (FreeBSD 13.1-RELEASE-p9)

What is the problem?

After installing the PLUGIN in TrueNAS core, in the install notes it displays the incorrect "adminadmin" password.

Steps to reproduce

I have installed the plugin as default.

  1. https://prnt.sc/_AJYnsvMgsC3
  2. https://prnt.sc/8ohyIt8z5Fsk
  3. https://prnt.sc/F87iyvHoNtZv
  4. https://prnt.sc/6IlTfe6lHYHP

UPDATE: I have tried changing the password in the conf file,but every time I restart the qbittorrnent service, it overwrites the conf file with the defult one.

Additional context

No response

Log(s) & preferences file(s)

No response

MrGorets commented 6 months ago

QQ. This problem appeared after qBittorrent version 4.5.5

After this version, there is no longer the default password "adminadmin", a one-time password is generated every time the service is started. Since it is impossible to view logs in TrueNAS Core when creating a jail, you will need to do a couple of additional actions.

1) Just install the plugin from the store 2) Turn off the plugin 3) Connect via ssh to the TrueNAS machine 4) Open the file on the path: nano /mnt/[pool]/iocage/jails/[plugin-name]/root/var/db/qbittorrent/conf/qBittorrent/config/qBittorrent.conf [pool] replace it with a pool where the plugin is located [plugin-name] replace with the name of the plugin that you specified when creating 5) Add or change [Preferences]. This is the user: admin and password: adminadmin

[Preferences]
WebUI\Password_PBKDF2="@ByteArray(svkw0mdbgLAjRK020R8jAg==:zXaISPGmCBXrbAS19Ffy1W9EqexjYhC9LjWBepmcTBp7kKXjN1DRk51Q5ixjl4cXY8fPuuBrP42RF772mLD5cA==)"
WebUI\Username=admin

5.1) If paragraph 5 does not work, then add these lines to [Preferences]:

WebUI\AuthSubnetWhitelist=[network]
WebUI\AuthSubnetWhitelistEnabled=true

[network] - replace it with the network number from where you will connect. Example: 192.168.1.0/24

6) Save the file and run the plugin. 7) Check it out.

MrGekko1 commented 5 months ago

Thank you for the reply. I have shut down the jail and amended the conf file like this:" [BitTorrent] Session\Port=1109 Session\QueueingSystemEnabled=false WebUI\AuthSubnetWhitelist=192.168.1.116 WebUI\AuthSubnetWhitelistEnabled=true WebUI\Password_PBKDF2="@ByteArray(svkw0mdbgLAjRK020R8jAg==:zXaISPGmCBXrbAS19Ffy1W9EqexjYhC9LjWBepmcTBp7kKXjN1DRk51Q5ixjl4cXY8fPuuBrP42RF772mLD5cA==)" WebUI\Username=admin

[Meta] MigrationVersion=6

[Network] Cookies=@Invalid() " Then I restarted the jail, opened a new browser in incognito mode and tried to log in, but it is not working. I have also tried it with "WebUI\AuthSubnetWhitelist=192.168.1.116/24", but no change, "Invalid Username or Password.".

MrGorets commented 5 months ago

Hi bro, I see a few mistakes in your config.

Important! The lines config I mentioned earlier should be in the [Preferences] section, not anywhere else.

I don't know your network hierarchy, but usually no one uses a 116 network with a 24 mask. Perhaps you confuse the network and IP address.

In the TrueNAS dashboard, the Interface window shows IP addresses with a mask like "192.168.1.10/24". You can calculate the network from this address, which in this case would be 192.168.1.0/24 (you can find more details online).

I suspect your network is 192.168.1.0/24 (note that the network usually has a 0 at the end).

You can also try deleting everything in the config file and leaving only the [Preferences] section. qbittorrent will create the necessary sections as it works.

MrGekko1 commented 5 months ago

Thank you so much. Finally it is working!

I hope soon it will be visible in the post install notes so other will not have the same issue.

For those who are not IT experts and just want to make it work again, this is my confing file:

[BitTorrent]
Session\Port=1109
Session\QueueingSystemEnabled=false

[Meta]
MigrationVersion=6

[Network]
Cookies=@Invalid()

[Preferences]
WebUI\Password_PBKDF2="@ByteArray(svkw0mdbgLAjRK020R8jAg==:zXaISPGmCBXrbAS19Ffy1W9EqexjYhC9LjWBepmcTBp7kKXjN1DRk51Q5ixj>
WebUI\Username=admin
WebUI\AuthSubnetWhitelist=192.168.1.0/24
WebUI\AuthSubnetWhitelistEnabled=true

From this point I was able to change password, and any other changes.