[Solved] Multimedia folder as a symlink and ynh_multimedia_build_main_dir helper

Hi,

I’ve made a symlink in order to use an external hard drive for my multimedia folder, here is my configuration:

ls -al /home/yunohost.multimedia
drwxrwxr-x+  7 root     root 4096 May 31 12:01 .
drwxr-xr-x  20 root     root 4096 May 31 16:52 ..
...
lrwxrwxrwx   1 root     root   16 May 31 12:01 share -> /mnt/data/share/
...
ls -al /mnt/data
total 32
drwxr-xr-x  5 root                root        4096 Jan  5 18:44 .
drwxr-xr-x  4 root                root        4096 Dec 27  2019 ..
drwxrwxr-x+ 7 root                root        4096 Nov 24  2020 share

Everything was ok until I tried to update or install any application that use the multimedia folder. And more precisely the ynh_multimedia_build_main_dir helper.

It seems that setfacl has some trouble with multiple symlinks or something like this.

Did I miss something ? What am I doing wrong ?

Maybe I should directly symlink /home/yunohost.multimedia instead of /home/yunohost.multimedia/share ?

What do you think ?

Thanks !
Simon

We don’t know what your problem is … do you have any logs to share ?

erf yep sorry,

an example here https://paste.yunohost.org/raw/deconubuyu

Well I try to move my symlink like this, but I still have the same problem

admin@artichaud:~$ ls -al /home
total 76
drwxr-xr-x  19 root          root          4096 Jul  5 11:56 .
drwxr-xr-x  23 root          root          4096 Jun 23 10:34 ..
drwxr-x---  20 admin                  1007 4096 Jun 18 15:19 admin

...

lrwxrwxrwx   1 root          root            30 Jul  5 11:56 yunohost.multimedia -> /mnt/data/yunohost.multimedia/
lrwxrwxrwx   1 root          root            32 May 31 16:52 yunohost.transmission -> /mnt/data/yunohost.transmission/
admin@artichaud:~$ ls -al /mnt/data
total 32
drwxr-xr-x  5 root root      4096 Jul  5 11:55 .
drwxr-xr-x  4 root root      4096 Dec 27  2019 ..
drwxr-xr-x  2 root root     16384 Dec 27  2019 lost+found
drwxrwxr-x+ 8 root root      4096 Jul  5 11:55 yunohost.multimedia
drw-r-----+ 5  131 www-data  4096 Dec 27  2019 yunohost.transmission

https://paste.yunohost.org/raw/acogaxapoj

Can’t figure out why my symlink does not work anymore, it has been configured this way since a while, (may be 2 years) without any problem :confused:

Finally, I found what was broken. If someone has the same kind of issue here is what was problem:

Some symlinks in my multimedia folder were broken.

I found them using find /your/multimedia/directory -xtype l

And then you can delete them using find /Documents/directory -xtype l -delete