# Photos not shown in "your photos"

**URL:** <https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527>\
**Category:** ℹ️ Support\
**Tags:** photos-app\
**Created:** [July 5, 2020, 10:20am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527 "2020-07-05T10:20:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 5, 2020, 10:20am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/1 "2020-07-05T10:20:43Z")

</div>

Nextcloud version 19 on Openmediavault 5  
Nginx 1.18.0  
PHP version 7.3.14-1~deb10u1  
Nextcloud running in docker type: linuxserver/letsencrypt & linuxserver/nextcloud

The issue i am facing:  
When i open “photos” i dont see any of my picutres under “my photos”.  
I can navigate from there to “your albums” and then manually open the subfolder with my photos. I can then see and open the photos.  
Shouldnt the images automatically be added to the “my photos” gallery with thumbnails?  
Also how can i make a folder quickly accessible under the photos? I do not want to manually navigate through all the folder structure every time.

Is this the first time you’ve seen this error? _(Y/N)_: N

Steps to replicate it:

1. Open photos

The output of your Nextcloud log in **Admin \> Logging** :  
…nothing related in there

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'trusted_proxies' =>
  array (
    0 => 'letsencrypt',
  ),
  'overwritewebroot' => '/nextcloud',
  'overwrite.cli.url' => 'https://myurl/nextcloud',
  'trusted_domains' =>
  array (
    0 => 'myurl',
    1 => '192.168.1.35',
  ),
  'overwritehost' => 'myurl:9191',
  'instanceid' => 'ocbz98gqkqvs',
  'passwordsalt' => 'x',
  'secret' => 'x',
  'dbtype' => 'mysql',
  'version' => '19.0.0.12',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextclouddb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_mon',
  'dbpassword' => 'x',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'port' => 6379,
  ),
);

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
2020/07/04 11:37:14 [error] 405#405: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: x, server: _, request: "GET /status.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "x:9191"

```

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 7, 2020, 8:56am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/2 "2020-07-07T08:56:09Z")

</div>

As nobody seems to have an answer. Is my expectation wrong that images should show up under “my photos” as thumbs?  
Maybe i just have a wrong idea of how it should look?

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 7, 2020, 9:00am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/3 "2020-07-07T09:00:59Z")

</div>

> [@mon](#):
>
> The issue i am facing:  
> When i open “photos” i dont see any of my picutres under “my photos”.  
> I can navigate from there to “your albums” and then manually open the subfolder with my photos. I can then see and open the photos

Normally you see all photos of your nextcloud.

You can see the function on a test account at [https://try.nextcloud.com](https://try.nextcloud.com)  
Create a 60-minutes-account and upload your own photos for testing.  
Please post diferences.

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 7, 2020, 9:04am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/4 "2020-07-07T09:04:04Z")

</div>

Ok so my expectation was right (just tried).  
What could be the reason for that not working on my installation then?

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 7, 2020, 9:12am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/5 "2020-07-07T09:12:53Z")

</div>

Please open the Photos-website [https://demo1.nextcloud.com/apps/photos/](https://demo1.nextcloud.com/apps/photos/) (your website) and use in Firefox the network analysis (F12). You get this (without pictures).

 ![1](https://help.nextcloud.com/uploads/default/original/3X/c/d/cd912276650ba47083c63084520c794941efd3e5.jpeg)

After that please press reload and then scroll through the http-requests at the button. use the tab “Netzwerkanalye” or “network analysis???” Perhaps there is somethink not “http 200”

 ![2](https://help.nextcloud.com/uploads/default/original/3X/6/c/6c548b7e8d76464165bf7a43e2f332219b61b31c.png)

HTML of the first picture (second entry):

\<i`mg data-v-bd62cb82="" src="/core/preview?fileId=3943402&amp;x=256&amp;y=256&amp;a=false&amp;v=&amp;quot;30af36455361c52520faf6b6f1d27c62&amp;quot;" alt="Vineyard.jpg" aria-describedby="image-3943402" style="">`

Perhaps it is a preview problem.  
Please create a public share with pictures and test the previews (klick right top) like this example [https://nc.nl.tab.digital/s/t8YKLcaz8zLTGdH](https://nc.nl.tab.digital/s/t8YKLcaz8zLTGdH)

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 8, 2020, 10:47am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/6 "2020-07-08T10:47:00Z")

</div>

In fact there is 1 line with a 404 error related to preview:

```auto
Request URL: https://myurl:9191/nextcloud/core/preview?fileId=23&x=256&y=256&a=false&v=&quot;1b01f29adaa834a5ae96b13f2aa6fb92&quot;
Request Method: GET
Status Code: 404 
Remote Address: myIP:9191
Referrer Policy: no-referrer
cache-control: no-cache, no-store, must-revalidate
content-length: 2
content-security-policy: default-src 'none';base-uri 'none';manifest-src 'self'
content-type: application/json; charset=utf-8
date: Wed, 08 Jul 2020 10:43:06 GMT
expires: Thu, 19 Nov 1981 08:52:00 GMT
feature-policy: autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none'
pragma: no-cache
server: nginx/1.18.0
status: 404
:authority: myurl:9191
:method: GET
:path: /nextcloud/core/preview?fileId=23&x=256&y=256&a=false&v=&quot;1b01f29adaa834a5ae96b13f2aa6fb92&quot;
:scheme: https
accept: image/webp,image/apng,image/*,*/*;q=0.8
accept-encoding: gzip, deflate, br
accept-language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
cookie: nc_sameSiteCookielax=true; nc_sameSiteCookiestrict=true; nc_username=x; oc_sessionPassphrase=x
sec-fetch-dest: image
sec-fetch-mode: no-cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
fileId: 23
x: 256
y: 256
a: false
v: 
quot;1b01f29adaa834a5ae96b13f2aa6fb92: 
quot;:

```

Might have the same reason as this support thread i found: [Error 404 for preview on file creation](https://help.nextcloud.com/t/error-404-for-preview-on-file-creation/80494)

Trying to generate a public share in my photo folders brings up a permission error:

> Das Weiterverteilen ist nicht erlaubt/ Distribution not permitted

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 8, 2020, 5:50pm UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/7 "2020-07-08T17:50:07Z")

</div>

Share-API usage is enabled by the way…

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 9, 2020, 8:15am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/8 "2020-07-09T08:15:15Z")

</div>

No real idea. Why are you using not a name of the server and the standard port 443? Perhaps this is the problem. Can you preview in public shares? Perhaps you can send me a public share with pictures with a PM.

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 9, 2020, 1:43pm UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/9 "2020-07-09T13:43:22Z")

</div>

What do you mean by “not a name of the server”?  
I was using 443 before with the same problem. I migrated to a custom port to secure the installation a bit more from port scanners. I can migrate back to 443 if you think it makes a difference.

I cannot create a public share in my photo storage location as stated in my last comment. No idea why.  
I can create a public share outside of there and send you a link yes. I will do that now.

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 9, 2020, 2:56pm UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/10 "2020-07-09T14:56:02Z")

</div>

I just tried to manually generate Foto previews from console:

```
occ preview:generate-all --path="mon/files/JulyPaddy/Fotos" -vvv

```

With this result:

```auto
2020-07-09T14:48:57+00:00 In Root.php line 205:
2020-07-09T14:48:57+00:00                                  
2020-07-09T14:48:57+00:00 [OCP\Files\NotFoundException]  
2020-07-09T14:48:57+00:00 /mon/files/JulyPaddy/Fotos     
2020-07-09T14:48:57+00:00                                  
2020-07-09T14:48:57+00:00 
2020-07-09T14:48:57+00:00 Exception trace:
2020-07-09T14:48:57+00:00 at /config/www/nextcloud/lib/private/Files/Node/Root.php:205
2020-07-09T14:48:57+00:00 OC\Files\Node\Root->get() at /config/www/nextcloud/lib/private/Files/Node/Folder.php:138
2020-07-09T14:48:57+00:00 OC\Files\Node\Folder->get() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:144
2020-07-09T14:48:57+00:00 OCA\PreviewGenerator\Command\Generate->generatePathPreviews() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:115
2020-07-09T14:48:57+00:00 OCA\PreviewGenerator\Command\Generate->execute() at /config/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
2020-07-09T14:48:57+00:00 Symfony\Component\Console\Command\Command->run() at /config/www/nextcloud/3rdparty/symfony/console/Application.php:1012
2020-07-09T14:48:57+00:00 Symfony\Component\Console\Application->doRunCommand() at /config/www/nextcloud/3rdparty/symfony/console/Application.php:272
2020-07-09T14:48:57+00:00 Symfony\Component\Console\Application->doRun() at /config/www/nextcloud/3rdparty/symfony/console/Application.php:148
2020-07-09T14:48:57+00:00 Symfony\Component\Console\Application->run() at /config/www/nextcloud/lib/private/Console/Application.php:215
2020-07-09T14:48:57+00:00 OC\Console\Application->run() at /config/www/nextcloud/console.php:100
2020-07-09T14:48:57+00:00 require_once() at /config/www/nextcloud/occ:11
2020-07-09T14:48:57+00:00 
2020-07-09T14:48:57+00:00 preview:generate-all [-p|--path [PATH]] [--] [<user_id>]

```

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 10, 2020, 7:42am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/11 "2020-07-10T07:42:00Z")

</div>

> [@mon](#):
>
> `/mon/files/JulyPaddy/Fotos`

I had a look at the PHP code in Root.php line 205 and it seems like this error points to an issue with the path. Nextcloud cannot find the path.  
This is strange as i can navigate with Nextcloud to the photos via the file browser.  
I really dont know what to do with this.

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 10, 2020, 7:50am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/12 "2020-07-10T07:50:56Z")

</div>

Please test

```auto
occ preview:generate-all --vvv

```

and post all errors.

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 10, 2020, 8:15am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/13 "2020-07-10T08:15:31Z")

</div>

No errors. It starts to generate previews in one of my folders and then suddenly does not continue. No error at all.  
When i start it again it continues a little further down the folder structure. I can do this over and over and it continues just a bit more every time.

Sounds strange i know. But that’s the behaviour i can see.

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 10, 2020, 9:01am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/14 "2020-07-10T09:01:55Z")

</div>

I restarted the process like 10 times and now got an error:

```
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 11526280 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 649

```

Addition:  
After checking the log in nextcloud it turns out that this error is thrown everytime that preview-generate-all stops. Just the console does not report this error everytime.

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 10, 2020, 9:33am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/15 "2020-07-10T09:33:25Z")

</div>

I think normally 512 MB is enough.

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 10, 2020, 9:44am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/16 "2020-07-10T09:44:29Z")

</div>

Well ok 😉 So what is not normal here then?

I changed it to 1024MB now. Still getting the error:

```
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 5529760 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 649
```

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 10, 2020, 9:53am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/17 "2020-07-10T09:53:43Z")

</div>

…and even with 2048M:

```
PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 10641088 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 649
```

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 10, 2020, 10:12am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/18 "2020-07-10T10:12:40Z")

</div>

I also checked memory usage of the php7 thread and it goes up to 27% which is about 2 Gig of RAM usage. So in fact it really uses up the memory.  
So preview-generate seems to need more memory the bigger the folder structure is. It is not that huge for me. Something around 2 TB of different type of data (photos, movies, apps …).  
Is that normal behaviour?

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [July 10, 2020, 10:17am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/19 "2020-07-10T10:17:48Z")

</div>

Ok. Perhaps a problem with php and FastCGI / php-fpm

```auto
11:37:14 [error] 405#405: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: x, server: _, request: "GET /status.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "x:9191

```

[https://serverfault.com/questions/517190/nginx-1-fastcgi-sent-in-stderr-primary-script-unknown](https://serverfault.com/questions/517190/nginx-1-fastcgi-sent-in-stderr-primary-script-unknown)

---

<div class="post-metadata">

**Author:** ![mon](https://help.nextcloud.com/letter_avatar/mon/32/6_22734026db12803ebb3e059622ac3534.png) [@mon](https://help.nextcloud.com/u/mon)\
**Post date:** [July 10, 2020, 10:29am UTC](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527/20 "2020-07-10T10:29:00Z")

</div>

I cannot really see a solution that works for me there 😕

[Next page](https://help.nextcloud.com/t/photos-not-shown-in-your-photos/86527.md?page=2)
