Pagina 1 di 1

Problema service non si avvia

Inviato: sab ago 17, 2024 10:46 pm
da sito
Salve, ho installato qbittorrent-nox su raspberry pi4 seguendo questa guida ma facendo un po' di casino ovvero alla fine invece di configurare qbittorrent-nox con l'utente qbittorrent ho configurato l'utente di default, dunque per non dover riconfigurare tutto ho copiato la cartella della configurazione che avevo fatto dentro a quella dell'utente qbittorrent cambiado l'user ed il group ma nonostante questo il servizio viene caricato ma fallisce.

Codice: Seleziona tutto

sito@nas:/home/qbittorrent/.config/qBittorrent $ ls -l
total 24
-rw-rw-r-- 1 qbittorrent qbittorrent    4 Aug 17 17:05 categories.json
-rw-rw-r-- 1 qbittorrent qbittorrent  195 Aug 17 17:05 qBittorrent-data.conf
-rw-rw-r-- 1 qbittorrent qbittorrent 1980 Aug 17 22:28 qBittorrent.conf
-rw-r--r-- 1 qbittorrent qbittorrent 1998 Aug 17 17:05 qBittorrent.conf.bak
drwxrwxr-x 2 qbittorrent qbittorrent 4096 Aug 17 17:05 rss
-rw-rw-r-- 1 qbittorrent qbittorrent    4 Aug 17 17:05 watched_folders.json
sito@nas:/home/qbittorrent/.config/qBittorrent $ sudo systemctl status qbittorrent.service
× qbittorrent.service - BitTorrent Client
     Loaded: loaded (/etc/systemd/system/qbittorrent.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sat 2024-08-17 22:28:31 CEST; 2min 52s ago
   Duration: 225ms
    Process: 11631 ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080 (code=exited, status=0/SUCCESS)
   Main PID: 11632 (code=exited, status=1/FAILURE)
        CPU: 175ms
sito@nas:/home/qbittorrent/.config/qBittorrent $ sudo systemctl list-units --failed
  UNIT                LOAD   ACTIVE SUB    DESCRIPTION
● qbittorrent.service loaded failed failed BitTorrent Client

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
Se edito il file qbittorrent.service è uguale a quello della guida che ho seguito:

Codice: Seleziona tutto

[Unit]
Description=BitTorrent Client
After=network.target

[Service]
Type=forking
User=qbittorrent
Group=qbittorrent
UMask=002
ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080
Restart=on-failure

[Install]
WantedBy=multi-user.target
Ora c'è da dire che se avvio qbittorrent-nox col mio user funziona bene (/usr/bin/qbittorrent-nox -d --webui-port=8080), ma se riavvio il raspberry pi4 giustamente lui tenta di far partire il qbittorrent.service che per qualche motivo fallisce, forse ci sono dei permessi sbagliati nei file di configurazione?
Se non risolvo mi sa che devo togliere tutto e rifare un'installazione pulita ma volevo evitare.

Re: Problema service non si avvia

Inviato: dom ago 18, 2024 5:09 pm
da sito
Bene, ho capito che c'erano anche altri parecchi file di configurazione dentro cartelle nascoste dunque non valeva la pena tentare di metterci una pezza.
Ho eliminato utente e gruppo qbittorrent, cancellato la home di qbittorrent e rifatto tutto da capo.