Deluge systemd and mount issue

General support for problems installing or using Deluge
Post Reply
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Deluge systemd and mount issue

Post by raspdealer »

Hi there,

I've followed this guide: http://dev.deluge-torrent.org/wiki/User ... ce/systemd
And here is my file script:

Code: Select all

[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target
RequiresMountsFor=media-Lacie\x2dCloudBox.mount

[Service]
Type=simple
User=pi
Group=deluge
UMask=007

ExecStart=/usr/bin/deluged -d

Restart=on-failure

# Configures the time to wait before service is stopped forcefully.
TimeoutStopSec=300

[Install]
WantedBy=multi-user.target


But after each reboot, my file are in error.
As soon as I force a check, they are back... but annoying because I have a lot of them.

Any ideas?

Thanks
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge systemd and mount issue

Post by shamael »

noauto in fstab?
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: Deluge systemd and mount issue

Post by raspdealer »

Yes. Should I remove it? :?

Code: Select all

//192.168.1.111/Family /media/Lacie-CloudBox cifs password=,uid=1000,gid=1000,x-systemd.automount,noauto,sec=ntlm,iocharset=utf8 0 0
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge systemd and mount issue

Post by shamael »

In the unit file you say to start the service only if the mount is present. In the fstab it's not mounted automatically during a reboot.
--> sounds logic to have a failed service on boot and ok when the mount is reachable

Try to replace noauto with auto in your fstab. I guess this drive is necessary for your torrent file, if not simply remove the dependency

Code: Select all

RequiresMountsFor=media-Lacie\x2dCloudBox.mount
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: Deluge systemd and mount issue

Post by raspdealer »

I have this error now:
Nov 23 04:20:47 bananapi systemd[1]: [/etc/systemd/system/deluged.service:4] Failed to add required mount for, ignoring: media-Lacie\x2dCloudBox.mount

Is something wrong?
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge systemd and mount issue

Post by shamael »

What did you changed? Is the mount name correct ? check with

Code: Select all

sudo systemctl list-units
maybe the mount is not yet effective when the service is started, I get this issue with smartmontools.
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: Deluge systemd and mount issue

Post by raspdealer »

After removing ,x-systemd.automount from my fstab (I don't know why I had this)
And adding a sleep before launching deluge, it seems to work.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge systemd and mount issue

Post by shamael »

take a look at my last post and feedback please :)
http://forum.deluge-torrent.org/viewtop ... 03#p225403
Post Reply