Google Photo Mount

Hello,
i've tried to mount google photo on my ubuntu server.
It seems it is mounted ok.
Then i made a photo library in my plex but scan doesn't find any picture.

I'm afraid it is a problem with permission, but i don't know how to solve

my mount command is
rclone -v mount --allow-other foto: /media/foto

Can anyone help me?

If you take one file, can you share the output of:

ls -al

You should be able to add --umask 000 or something if you want to open up permissions depending on how you feel on your server.

My server is only used by me so I don't care if permissions are a bit more broad.

Here is the uotput:
ls -la PSX_20190424_181927.jpg
-rw-r--r-- 1 root root 0 apr 24 17:28 PSX_20190424_181927.jpg

What does this do?
--umask 000

From that output, Plex should be able to see the file and read it.

This is a good little picture type tutorial on Linux permissions as they are a bit confusing at first.

https://www.guru99.com/file-permissions.html

Umask 000 makes a directory or file fully read / write for everyone:

[felix@gemini ~]$ ls -al test
-rw-rw-r-- 1 felix felix 0 Sep 19 09:55 test
[felix@gemini ~]$ umask 000
[felix@gemini ~]$ rm test
[felix@gemini ~]$ touch test
[felix@gemini ~]$ ls -al test
-rw-rw-rw- 1 felix felix 0 Sep 19 09:55 test

Since cloud storage has no concept of Linux permissions, you can set them via the mount command so the proper read/write/execute is on every directory / file. You can't modify them per se since so the umask sets them on the mount.

It seems that plex can watch inside foto dir.
I see it scans all dir, but doesn't find any picture.
This is strange?
Is it supposed this mount is working as gdrive one, so that plex can manage it?
I see this in plex during scanning, but no files found.

  • 16:18 Scanning by-day/2014/2014-12-06

  • 16:18 Scanning by-day/2014/2014-12-07

  • 16:18 Scanning by-day/2014/2014-12-08

  • 16:18 Scanning by-day/2014/2014-12-09

  • 16:18 Scanning by-day/2014/2014-12-10

  • 16:18 Scanning by-day/2014/2014-12-11

  • 16:18 Scanning by-day/2014/2014-12-12

  • 16:18 Scanning by-day/2014/2014-12-13

  • 16:18 Scanning by-day/2014/2014-12-14

  • 16:18 Scanning by-day/2014/2014-12-15

  • 16:18 Scanning by-day/2014/2014-12-16

  • 16:18 Scanning by-day/2014/2014-12-17

  • 16:18 Scanning by-day/2014/2014-12-18

  • 16:18 Scanning by-day/2014/2014-12-19

Plex doesn't know/care if it's a GDrive or not. It's just a mounted file system to Plex.

It finds no pictures I guess cause they are 0 bytes. If you check the output you shared.

Yes, you are right, but why?
So it is not right mounted?
What do you suggest?

All is 0 bites:

-rw-rw-rw- 1 root root 0 dic 27 2014 VID_20141227_151224.mp4
-rw-rw-rw- 1 root root 0 dic 30 2014 VID-20141230-WA0000.mp4
-rw-rw-rw- 1 root root 0 gen 23 2015 VID_20150123_161007.mp4
-rw-rw-rw- 1 root root 0 mar 15 2015 VID_20150315_181247.mp4
-rw-rw-rw- 1 root root 0 giu 22 2015 VID_20150622_202844.mp4
-rw-rw-rw- 1 root root 0 set 13 2015 VID_20150913_130441.mp4
-rw-rw-rw- 1 root root 0 ago 22 2016 VID_20160102_093813 {APf21DcGNB8qXSyeZ0x1ynlkZii7jATRBpuG6Yz0MdwaVQmoW6FcxtW2NbX6FG_C-wYaLc376Fn4jwWa-OMlyh5f8P98HmTsOA}.mp4
-rw-rw-rw- 1 root root 0 gen 2 2016 VID_20160102_093813 {APf21DeBBjdH3nfBO0Q6Vk3Qq2oE6o_-j13TO8OdyfTlW-COZF1mskfKTprkm08uwBfnPWTCbZI48bgbksU982g0xWddM05Yug}.mp4
-rw-rw-rw- 1 root root 0 giu 4 2016 VID_20160604_181358.mp4
-rw-rw-rw- 1 root root 0 ott 1 2016 VID_20161001_180159.mp4
-rw-rw-rw- 1 root root 0 giu 23 2017 VID_20170623_101049.mp4
-rw-rw-rw- 1 root root 0 giu 23 2017 VID_20170623_101111.mp4
-rw-rw-rw- 1 root root 0 giu 23 2017 VID_20170623_101900.mp4
-rw-rw-rw- 1 root root 0 set 22 2017 VID_20170922_184349.mp4
-rw-rw-rw- 1 root root 0 mar 19 2019 VID_20190319_111842.mp4
-rw-rw-rw- 1 root root 0 mar 19 2019 VID_20190319_111849.mp4
-rw-rw-rw- 1 root root 0 mar 19 2019 VID_20190319_111918.mp4
-rw-rw-rw- 1 root root 0 mar 19 2019 VID_20190319_111924.mp4
-rw-rw-rw- 1 root root 0 mar 19 2019 VID_20190319_141024.mp4
-rw-rw-rw- 1 root root 0 mar 19 2019 VID_20190319_141028.mp4
-rw-rw-rw- 1 root root 0 apr 22 00:23 VID_20190422_002245.mp4
-rw-rw-rw- 1 root root 0 mag 31 2016 WhatsApp-Image-20160531 (1).jpg
-rw-rw-rw- 1 root root 0 mag 31 2016 WhatsApp-Image-20160531.jpg
-rw-rw-rw- 1 root root 0 lug 6 2017 WhatsApp Image 2017-07-05 at 21.09.22.jpeg
-rw-rw-rw- 1 root root 0 mag 7 2018 WhatsApp Image 2018-05-06 at 11.11.47.jpeg
-rw-rw-rw- 1 root root 0 mag 7 2018 WhatsApp Image 2018-05-07 at 11.25.47.jpeg
-rw-rw-rw- 1 root root 0 mag 7 2018 WhatsApp Image 2018-05-07 at 13.06.11.jpeg
-rw-rw-rw- 1 root root 0 dic 23 2014 Year in Photos 2014.m4v

I'd assume you need this for a mount:

https://rclone.org/googlephotos/#size

I think this is what i was missing.
I'm just trying with --gphotos-read-size
Let's hope it is not too slow.
I've got thousands of pitcures.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.