/filestore in a NAS can see the previews

59 views
Skip to first unread message

Charlie Alonso

unread,
Sep 14, 2021, 10:33:43 AM9/14/21
to ResourceSpace
HI Folks.

I did a fresh installation of ResourceSpace 9.6 in a Ubuntu 20.04 server and got a NAS for the filestore. Everything its working fine when i get the Filestore in a mounted internal Disk on the server but when i move the filestore to a SMB mounted in /media/filestore, folder that i created and chown to the www-data user and chmod to 777, RS can read the preview images created by staticsync in automatic ingest process.

I'm pretty sure it's something worn with the permission or the way i mount the smb resource in the /etc/fstab. I checked the files in the filesystem and the preview jpg even the mp4 files for the video preview is created, i guess staticsync its running as root and that's why can write in the shared but dont know why www-data cant read

Any advice?

Pedro L

unread,
Sep 16, 2021, 5:09:57 AM9/16/21
to ResourceSpace
When you create the Volumn SMB if it is Linux, make sure you have assigned the user www-data as access (RW), if it is in Windows TB.

At the time of setting the SMB resource, make sure that the physical directory that exists on the machine has rights www-data, and then when mounting the unit forcing the user for those who give privileges.

Example:
sudo mount -t cifs -o username = $ {user}, password = $ {password}, uid = $ (ID -U), GID = $ (ID -G) // Server-Address / Folder / Home / WWW / Filestore

But my recommendation would be done by NFS if we work with Linux  ;-)

Charlie Alonso

unread,
Sep 16, 2021, 8:07:17 AM9/16/21
to ResourceSpace
Hi Peter...

Yes that's what exactly try to do

I create the /filestroe directory into /media/filestore in Ubuntu 20.04 system and do a Chown -R www-data:www-data /media/filestore before mounting anything there.
I did the same as /media/ingest to use this folder as a Staticsync folder.

A list of the folders looks like that

drwxr-xr-x  4 root     root     4096 Sep 16 12:57 ./
drwxr-xr-x 21 root     root     4096 Aug 12 11:31 ../
drwxrwxrwx  2 www-data www-data    0 Sep 16  2021 filestore/
drwxrwxrwx  2 www-data www-data    0 Sep 16  2021 ingesta/

The lines i use to mount the shared storage in the fstab are

//192.168.8.244/filestore  /media/filestore  cifs  username=user,password=password,uid=33,gid=33,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlmssp  0  0
//192.168.8.244/ingesta  /media/ingesta  cifs  username=user,password=password,uid=33,gid=33,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlmssp  0  0

And finally i did a symbolic link to the web folder

ln -s /media/filestore /var/www/html/rs/filestore

But when i point the filestore to the NAS mounted shared i got the preview like this

image.png

The right one it was ingested with the filestore pointing to /storage/filestore that are local storage in the linux server

Apparently the permission of both folders are the same

root@archivo:/# ll /storage/filestore/
total 28
drwxrwxrwx 7 www-data www-data 4096 Sep 10 18:09 ./
drwxr-xr-x 4 root     root     4096 Sep 10 18:02 ../
drwxrwxrwx 2 www-data www-data 4096 Sep 10 18:02 1_ad66cb4dae65ee5/
drwxrwxrwx 2 www-data www-data 4096 Sep 10 18:05 2_0fdce9c773106bb/
drwxrwxrwx 2 www-data www-data 4096 Sep 10 18:09 3_9ed2be35e58a2d4/
drwxrwxrwx 4 www-data www-data 4096 Sep 16 13:20 system/
drwxrwxrwx 4 www-data www-data 4096 Sep 10 18:02 tmp/
root@archivo:/# ll /media/filestore/
total 4
drwxrwxrwx 2 www-data www-data    0 Sep 16  2021 ./
drwxr-xr-x 4 root     root     4096 Sep 16 12:57 ../
drwxrwxrwx 2 www-data www-data    0 Sep 16  2021 3_9ed2be35e58a2d4/
drwxrwxrwx 2 www-data www-data    0 Sep 16  2021 4_b51910240dd8b26/
drwxrwxrwx 2 www-data www-data    0 Sep 16  2021 system/
drwxrwxrwx 2 www-data www-data    0 Sep 16  2021 tmp/







--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/resourcespace/81a74ddb-edaa-4721-8503-3b6e9921411en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages