Preview file does not create from pictures

Hello,

I have share some pictures in NC 12.0.3.
When a User look to the share, I get in the logfile the following error from each picture.

file_get_contents(/***/preview/23349/128-128-crop.png): failed to open stream: No such file or directory at /volume1/web/nextcloud/lib/private/Files/Storage/Local.php#209

When I look at the path “/***/preview/23349/” I can not find the file “128-128-crop.png”.

Why does the file is not create?

TomW

Does no one have an idea?

Can you fill out the support template please:

Sorry to hear you’re facing problems :slight_frown:

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the following as you can (you can cut and paste this into your topic):


Nextcloud version (eg, 10.0.2):
Operating system and version (eg, Ubuntu 16.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 5.6):
Is this the first time you’ve seen this error?:

The output of your Nextcloud log in Admin > Logging:

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

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


Above, please indicate if you’re using any preview-related apps.

Hello JasonBayton,

Thank you for your help!

Nextcloud version (eg, 10.0.2): 12.0.2

Operating system and version (eg, Ubuntu 16.04): ? I use it on a Synology Diskstation DS216+ (DSM 6.1.3-15152 Update 3)

Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.25

PHP version (eg, 5.6): 7.0.16

Is this the first time you’ve seen this error?: YES

nextcloud.log

Apache24.log

Config.php

And now?
Have someone find a solution?

Tom

Looks like Apache isn’t configured properly:

https://wiki.apache.org/httpd/ClientDeniedByServerConfiguration

Can you validate you’ve edited apache.conf correctly?:

I will check it.

Here you can see the httpd24.conf
Can you please check it?

So, I have add the following code to the httpd24.conf

<Directory /volume1/web/nextcloud>
Require all granted
</Directory>
<Directory /var/services/web/nextcloud>
Require all granted
</Directory> 

The Error in the Apache24-error_log is gone.

client denied by server configuration: /var/services/web/nextcloud/data/.ocdata

But the Error in the Nextcloud.log is still there.

file_get_contents(/***/preview/23349/128-128-crop.png): failed to open stream: No such file or directory at /volume1/web/nextcloud/lib/private/Files/Storage/Local.php#209

In my shared directory are 203 pictures, from 66 pictures I see can the a preview file!?

Tom