Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Defaut user/password doesn't work on FreeNAS 11.3

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

NKari

Neophyte
Joined
Mar 29, 2020
Messages
7
Hello !

First of all, I have seen the "Qbittorrent default password/username does not work" post but it doesn't
help me and I don't want to use it for myself as it's marked as [Solved].


I didn't work on Linux for almost 20 years and I'm quite lost with the FreeBSD/FreeNAS/Plugins specifities... Then, if my question seems to be trivia, I hope that you will be good enough to enlight me and help me find my way through the things I haven't undertood.

The problem :

I have install the qBittorent plugin on a FreeNAS 11.3 and it's working but I can't log in the webUI with admin / adminadmin .

I have try to restart the service with service qbittorrent-nox restart as root but I got :
qbittorrent-nox does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable


I have read about editing the ~/.config/qBittorrent/qBittorrent.conf file, but there is no such file.

There is a qbittorrent user but the qbitooreent-nox process is running under the root user. And I can't sudo qbittorrent to try those things with the good (?) user.

Here, I'm lost... The path and setup of the plugin are not what I'm reading in qBittorrent's documentations and I don't want to mess up a plugin that was not easy to install. Most of all, I don't want to mess it up and make it work only to the next update...

Is qbittorrent runnig as a service ? How can I change the webUI's admin's password ? Who is this mysterious admin ? To be or not to be root ?

Your help is welcome ! ^^
 

Alecmascot

Neophyte Sage
Joined
Mar 18, 2014
Messages
554
Have you tried this :
 

NKari

Neophyte
Joined
Mar 29, 2020
Messages
7
Have you tried this :
Did I missed the revelant part ? Because I read thing s about rights permissions on a manual install, I don't see anythnig about the webUI or the plugin setup.
 

Alecmascot

Neophyte Sage
Joined
Mar 18, 2014
Messages
554
If the plugin is not working for you then try the manual method....
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,434
have try to restart the service with service qbittorrent-nox restart as root
Are you running that command in the jail?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,434
Try service qbittorrent-nox onestart
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,434
Run ee /etc/rc.d/qbittorrent-nox from inside the jail and copy the contents below into the editor and save it. Try starting the service after that and it should run.

Code:
#!/bin/sh
# File name is qbittorrent-nox
# Place this file into /etc/rc.d
# Edit /etc/rc.conf to include qbittorrent_enable=YES
# By default qbittorrent-nox runs using root,
# if you want to run qbittorrent-nox as another user,
# include qbittorrent_user=username to /etc/rc.conf
# Before you can run qbittorrent as daemon,
# you will need to run it as process:
# su username qbittorrent-nox and accept license agreement

# PROVIDE: qbittorrent-nox
# BEFORE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name=qbittorrent-nox
rcvar=qbittorrent_enable

pid="pgrep qbittorrent-nox"
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"

start_cmd="${name}_start"
stop_cmd="${name}_stop"

load_rc_config $name
: ${qbittorrent_enable:=NO}
: ${qbittorrent_user:=root}

qbittorrent-nox_start()
{
    if ${pid} >/dev/null
    then
        echo "${name} is already running"
    else
        echo "Starting ${name}"
        su ${qbittorrent_user} -c "qbittorrent-nox -d" 
    fi
}

qbittorrent-nox_stop()
{
    if ${pid} >/dev/null
    then
        echo "Stopping ${name}"
        kill $(${pid})
        sleep 1
    else
        echo "${name} is not running"
    fi
}

run_rc_command "$1"
 

NKari

Neophyte
Joined
Mar 29, 2020
Messages
7
Ok, I did that but nothing change.

I did some testing :
- sending qbittorrent-nox stop (or start or restart) do nothing : no message and the webUI is still here (even with stop)
- using the qbittorrent-nox binary (in /usr/local/bin) do the same thing : nothing
- my conf file is almost empty :
/root/.config/qBittorrent/qBittorent.conf

[LegalNotice]
Accepted=true
In last resort, I stop the plugin to check that the webUI is offline this way. This work normaly !

And I start the plugin again. And now I can connect to the webUI with the default password :'''''(

Maybe I had used the restart button in the jail page and not the stop/start button in the plugin page...
Maybe it's your script that change every thing ? Then I try to rename your file, stop / start the plugin and ... it's still working...

I hate to not understand what my computer do... It's not a cat, I'm supposed to understand what it does and why...
 

NKari

Neophyte
Joined
Mar 29, 2020
Messages
7
New discovery !

When I use the restart button of the plugin, I can't log in.

When I use Stop then Start buttons, I can log in.

Is anyone able to explain that ?
 

Seren

Junior Member
Joined
Feb 18, 2016
Messages
20
FYI, the qBittorrent configuration is stored in the jail at "/.config/qBittorrent".

So on the main filesystem it would be at something like: "/mnt/mainpool/iocage/jails/qbittorrent/root/.config/qBittorrent".
 
Top