Accès aux téléchargements Transmission depuis Nextcloud

Bonjour à tous,

J’ai Nextcloud et Transmission d’installés sur mon instance Yunohost et je voudrais pouvoir accéder aux torrents téléchargés avec Transmission depuis Nextcloud.

Mes versions :
yunohost 3.0.0.1
yunohost-admin 3.0.0
moulinette 3.0.0
ssowat 3.0.0
nextcloud 13.0.2
transmission 2.92

Transmission a bien créé des liens symboliques dans /home/yunohost.multimedia/share/ mais ils n’apparaissent pas dans nextcloud :confused:

# ls -al /home/yunohost.multimedia/share/
total 20
drwxrwxr-x+ 5 root root 4096 Apr 27 11:48 .
drwxrwxr-x+ 5 root root 4096 Apr 27 11:48 ..
drwxrwxr-x+ 2 root root 4096 Aug 19 10:23 Music
drwxrwxr-x+ 2 root root 4096 Apr 27 11:48 Picture
lrwxrwxrwx  1 root root   37 Apr 27 11:48 Torrents -> /home/yunohost.transmission/completed
lrwxrwxrwx  1 root root   35 Apr 27 11:48 Torrent to download -> /home/yunohost.transmission/watched
drwxrwxr-x+ 2 root root 4096 Apr 27 11:48 Video

J’ai mis tous les droits d’écriture/lecture sur les dossiers de Transmission mais ça ne change rien :

# ls -al /home/yunohost.transmission
total 20
drwxrwxr-x+  5 debian-transmission www-data            4096 Apr 27 11:47 .
drwxr-xr-x  15 root                root                4096 Jul 25 12:20 ..
drwxrwxrwx+  4 debian-transmission www-data            4096 Jun 22 19:28 completed
drwxrwxrwx+  2 debian-transmission debian-transmission 4096 Jun 22 19:28 progress
drwxrwxrwx+  2 debian-transmission debian-transmission 4096 Apr 27 11:47 watched

J’imagine que le problème pourrait venir des proriétaire/groupe des dossiers completed etwatched, mais si je les change, c’est Transmission qui risque de plus marcher nan ?

Merci d’avance :slight_smile:
enuts_

Hi enuts, unfortunately, Nextcloud has a “problem”, should I say a personal problem ?, with symbolic links. That’s why you can’t see those directories from your Nextcloud.

I’m going to open an issue about that on the transmission repository. Maybe we could find a solution by reversing the symbolic links.
Meanwhile, you can see your files from the transmission panel, with the “Download” button at the top of the page.

1 Like

Hello @enuts,

J’ai eu le même souci que toi et j’ai rusé un petit peu : je passe par un partage samba. J’ai créé un utilisateur samba pour debian-transmission, j’ai ajouté le dossier completed dans la configuration de samba en autorisant debian-transmission à y accéder, et j’ai configuré le dossier completed comme stockage externe dans nextcloud. C’est pas le plus élégant mais ça marche !

1 Like

thanks for your help.

The idea was to access my downloads mounting my nextcloud storage on my ubuntu laptop.

I’m gonna try to reverse symbolic links as you mention, that should do the trick :slight_smile:

Merci pour ta réponse roukydesbois,

Comme j ele disais à Maniack_crudelis, l’idée était d’accéder à ces fichiers via le storage nextcloud monté sur mon pc ubuntu via les comptes en ligne d’ubuntu.

Comme je m’évite la configuration de samba et j’ai un truc de moins à maintenir :slight_smile:

1 Like

Slt,

Tu peux aussi rajouter un stockage externe qui pointe vers /home/yunohost.transmission comme ça tu accède directement a tes fichiers depuis nextcloud.

1 Like

you can solve this manually by mounting sub trees in the filesystem via mount --bind instead of symbolic links.

sudo su
cd /home/yunohost.multimedia/share
mkdir transmission-completed
mkdir transmission-watched
mount --bind /home/yunohost.transmission/completed/ ./transmission-completed/
mount --bind /home/yunohost.transmission/watched/ ./transmission-todl/

it works at least readonly, in case you want to add torrent files to automatically download them you maybe have to fiddle with the permissions a bit :slight_smile: haven’t tested yet.