qBittorrent login issue Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
PANDUS
Posts: 2
Joined: Wed Nov 20, 2019 5:05 am

Re: qBittorrent login issue

Post by PANDUS »

issue fixed below
Last edited by PANDUS on Mon Jan 13, 2020 3:49 am, edited 2 times in total.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: qBittorrent login issue

Post by MichaIng »

The config file did not exist? That is strange since it is explicitly created :?:

Code: Select all

/home/qbittorrent/.config/qBittorrent/qBittorrent.conf
I'll retest a fresh install later, currently I can't see a reason why this fails, besides the mentioned Chromium login issue on Stretch systems.

qbittorrent-nox default
Note that this must be executed as user qbittorrent, which is what the service runs as, so:
sudo -u qbittorrent qbittorrent-nox default should be it, if the above file indeed was not created as expected.
sneakers-the-rat
Posts: 1
Joined: Sat Nov 30, 2019 6:15 am

Re: qBittorrent login issue

Post by sneakers-the-rat »

Figured this out, in case anyone is still having issues here:

The systemd file is

Code: Select all

/etc/systemd/system/qbittorrent.service
which is, by default

Code: Select all

[Unit]
Description=qBittorrent (DietPi)
After=network.target

[Service]
User=qbittorrent
Group=dietpi
RemainAfterExit=yes
ExecStart=/usr/bin/qbittorrent-nox --webui-port=8080

[Install]
WantedBy=multi-user.target
So the service is run as qbittorrent user by default, so the relevant prefs file is in

Code: Select all

/home/qbittorrent/.config/qBittorrent/
so just hit up a quick

Code: Select all

cp -r ~/.config/qBittorrent/ /home/qbittorrent/.config
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: qBittorrent login issue

Post by MichaIng »

Hey guys, I found the bug. We used useradd -p "$GLOBAL_PW" to create the user, but this takes the password not as "raw" but as encrypted. So when login fails, please do:

Code: Select all

chpasswd <<< 'qbittorrent:yourPassword'
echo -n 'yourPassword' | md5sum | mawk '{print $1}' # Copy this string (hashed password)
nano /home/qbittorrent/.config/qBittorrent/qBittorrent.conf
Add the hashed password here:
WebUI\Password_ha1=@ByteArray(yourHashedPassword)
PANDUS
Posts: 2
Joined: Wed Nov 20, 2019 5:05 am

Re: qBittorrent login issue

Post by PANDUS »

Visp wrote: Sun Nov 03, 2019 11:45 am well... In my installation there was no configuration file, and the login didn't work.
So I've taken the following steps to make it work:

1.- Connect by SSH to your device.
2.- Execute:

Code: Select all

qbittorrent-nox default
The default user name and password will now appear, and the service will be running on port 8080. Access to your __IP__:8080, with the credentials that qbitorrent has indicated, login and change the password from the configuration.

Now you can kill the qbitorrent-nox service (Ctrl+C) and restart the device services:

Code: Select all

dietpi-services restart
Now you can access to the service with:

user: qbittorrent
passwd: __YOURPASSWORD__


I hope I've explained well.... :x
Thanks! Just installed the latest today and this is still an issue, after reading all the other threads I found this suggestion. It was the only thing that worked to let me in though the webui. Much appreciated! 8)
User avatar
lpuerto
Posts: 10
Joined: Fri Mar 02, 2018 9:40 pm

Re: qBittorrent login issue

Post by lpuerto »

I've been fighting with this problem for a while now and finally yesterday after inspect the qBittorrent.conf on my home folder and the qBittorrent home folder i figure out that every time I restarted the service the password was resent to mygobalpassword :cry: :? :x

Damnit!

So for me the username was: qbittorrent
and the password: myglobalpassword

Now I can log in normally.
Post Reply