NC11 to NC12_RC4: Preview files in Gallery Module are broken

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

Can you reliably replicate it? (If so, please outline steps): yes
Open the Gallery App

The issue you are facing:
Only a few previews are generated. The Preview Files were fine with NC11

The output of your Nextcloud log in *Admin > Logging:
Error PHP file_get_contents(//data/appdata_50769f0c76c51/preview/117554/1600-900-max.png): failed to open stream: No such file or directory at /var/www//lib/private/Files/Storage/Local.php#209 2017-08-01T09:51:45+0200
Error PHP file_get_contents(//data/appdata_50769f0c76c51/preview/117546/1024-768-max.png): failed to open stream: No such file or directory at /var/www//lib/private/Files/Storage/Local.php#209 2017-08-01T09:51:45+0200

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

php
$CONFIG = array (
‘datadirectory’ => ‘’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘12.0.1.3’,
‘installedat’ => ‘’,
‘lastupdatedat’ => ‘’,
‘dbname’ => ‘’,
‘dbhost’ => ‘localhost’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘’,
‘dbpassword’ => ‘’,
‘installed’ => true,
‘instanceid’ => ‘’,
‘maintenance’ => false,
‘forcessl’ => true,
‘overwriteprotocol’ => ‘https’,
‘filelocking.enabled’ => true,
‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
‘timeout’ => 0.0,
‘password’ => ‘’,
),
‘theme’ => ‘’,
‘loglevel’ => ‘2’,
‘logtimezone’ => ‘Europe/Berlin’,
‘hashingCost’ => 10,
‘defaultapp’ => ‘files’,
‘trusted_domains’ =>
array (
0 => ‘owncloud…org’,
1 => ‘…org’,
),
‘secret’ => ‘’,
‘debug’ => false,
‘mail_from_address’ => ‘nextcloud’,
‘mail_smtpmode’ => ‘php’,
‘mail_domain’ => ‘…org’,
‘appstore.experimental.enabled’ => true,
‘enable_previews’ => true,
‘preview_max_x’ => 2048,
‘preview_max_y’ => 2048,
‘preview_max_scale_factor’ => 2,
‘preview_max_filesize_image’ => 50,
‘enabledPreviewProviders’ =>
array (
0 => ‘OC\Preview\PNG’,
1 => ‘OC\Preview\JPEG’,
2 => ‘OC\Preview\GIF’,
3 => ‘OC\Preview\BMP’,
4 => ‘OC\Preview\XBitmap’,
5 => ‘OC\Preview\MP3’,
6 => ‘OC\Preview\TXT’,
7 => ‘OC\Preview\MarkDown’,
),
‘overwrite.cli.url’ => ‘https://owncloud…org’,
);

The output of your Apache/nginx/system log in /var/log/____:
No errors in the apache Log


a bug?
@rullzer, @georgehrke, @oparoz