Nextcloud version (eg, 20.0.5): 21.0.1 Operating system and version *(eg, Ubuntu 20.04)*: Ubuntu 20.04 Apache or nginx version *(eg, Apache 2.4.25)*: apache 2.4.41 PHP version *(eg, 7.4)*:
replace me` 8.03
The issue you are facing: after upgrading from NC 21.0 to 21.0.1, phone uploads don’t register correctly anymore, they don’t provide thumbnails, and when you open them they say error loading xxx.jpg. using external storage. files are uploaded correctly and not damaged, but ui won’t display anymore and can’t load.
Is this the first time you’ve seen this error? (Y/N): y
Steps to replicate it: upgrade to 21.0.1 and take a picture, let autoupload load it and go to web ui and try to view picture.
The output of your Nextcloud log in Admin > Logging:
{"reqId":"jlPQVxC1cWrKBSadOxfQ","level":3,"time":"2021-04-13T15:45:46+00:00","remoteAddr":"192.168.50.1","user":"xxxxx","app":"PHP","method":"GET","url":"/nextcloud/index.php/core/preview?fileId=4465&x=1920&y=1080&a=true","message":{"Exception":"Error","Message":"getimagesize(): Corrupt JPEG data: 17 extraneous bytes before marker at /var/www/html/nextcloud/lib/private/legacy/OC_Image.php#575","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Image.php","line":575,"function":"getimagesize"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Image.php","line":52,"function":"loadFromFile","class":"OC_Image","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\Image","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":244,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":140,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":109,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"21.0.1.1","id":"6075bcc0da941"}```
The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):
GNU nano 4.8 config.php
<?php
$CONFIG = array (
'instanceid' => 'ocdjiospwj6q',
'passwordsalt' => 'xxxx',
'secret' => '8PTTH1/xxxx+xxxxxxxxxxxxxxxxx+QYYBE/MmOTh4apI',
'trusted_domains' =>
array (
0 => '192.168.50.6',
1 => 'xxxx.duckdns.org',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '21.0.1.1',
'overwrite.cli.url' => 'http://192.168.50.80/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'xxxxx!',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'xxxx',
'mail_domain' => 'gmail.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '587',
'mail_smtpname' => 'xxxx@gmail.com',
'mail_smtppassword' => 'xxxxx',
'updater.secret' => '$2y$10$F8suNQYPcNMPs6yO6mKbE.wPPNtD2ytIULfeI7vZu.AoCiwDn9DQ6',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
);
```
The output of your Apache/nginx/system log in `/var/log/____`:
```
xxxx@nc:/var/log/apache2$ sudo nano access.log
GNU nano 4.8 access.log
192.168.50.1 - - [13/Apr/2021:00:02:45 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 5425 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:45 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 5421 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:45 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 5421 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:45 +0000] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 5192 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:45 +0000] "PROPFIND /nextcloud/remote.php/webdav/.Contacts-Backup/ HTTP/1.1" 207 1053 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:46 +0000] "PROPFIND /nextcloud/remote.php/webdav/.Contacts-Backup/2021-04-11_13-10-41.vcf HTTP/1.1" 207 1568 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:46 +0000] "PROPFIND /nextcloud/remote.php/webdav/.Contacts-Backup/2021-04-12_13-01-05.vcf HTTP/1.1" 207 1568 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:53 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 5427 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:53 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 5423 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:53 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 5429 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:53 +0000] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 5192 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:54 +0000] "PROPFIND /nextcloud/remote.php/webdav/.Contacts-Backup/ HTTP/1.1" 207 1053 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:02:54 +0000] "PROPFIND /nextcloud/remote.php/webdav/.Contacts-Backup/2021-04-12_13-46-50.vcf HTTP/1.1" 207 1568 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:05:07 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 4737 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:05:07 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 4735 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:05:09 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 4733 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:56 +0000] "GET /nextcloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 5543 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:56 +0000] "DELETE /nextcloud/ocs/v2.php/apps/notifications/api/v2/push HTTP/1.1" 200 5065 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:56 +0000] "GET /nextcloud/index.php/avatar/xxxx/336 HTTP/1.1" 200 10006 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:57 +0000] "GET /nextcloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 5543 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:58 +0000] "DELETE /nextcloud/ocs/v2.php/apps/notifications/api/v2/push HTTP/1.1" 200 928 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:58 +0000] "GET /nextcloud/status.php HTTP/1.1" 200 1104 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:58 +0000] "GET /nextcloud/ocs/v2.php/cloud/capabilities?format=json HTTP/1.1" 304 254 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:58 +0000] "GET /nextcloud/ocs/v2.php/apps/user_status/api/v1/predefined_statuses?format=json HTTP/1.1" 200 5138 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:59 +0000] "GET /nextcloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1406 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:59 +0000] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 1513 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:59 +0000] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 10996 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:07:59 +0000] "GET /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2F&reshares=true&subfiles=true HTTP/1.1" 200 928 "-" "Mozilla/5.0 (Android) Nextcloud-android/3>
172.58.45.203 - - [13/Apr/2021:00:08:00 +0000] "PROPFIND /nextcloud/remote.php/webdav/.Contacts-Backup/ HTTP/1.1" 207 1507 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:00 +0000] "PROPFIND /nextcloud/remote.php/webdav/.Contacts-Backup/ HTTP/1.1" 207 4703 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:00 +0000] "GET /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2F.Contacts-Backup%2F&reshares=true&subfiles=true HTTP/1.1" 200 928 "-" "Mozilla/5.0 (Android) >
172.58.45.203 - - [13/Apr/2021:00:08:03 +0000] "GET /nextcloud/status.php HTTP/1.1" 200 1104 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:03 +0000] "GET /nextcloud/ocs/v2.php/cloud/capabilities?format=json HTTP/1.1" 304 254 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:03 +0000] "GET /nextcloud/ocs/v2.php/apps/user_status/api/v1/predefined_statuses?format=json HTTP/1.1" 200 5138 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:03 +0000] "GET /nextcloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1406 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:03 +0000] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 1513 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:04 +0000] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 10996 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:04 +0000] "GET /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2F&reshares=true&subfiles=true HTTP/1.1" 200 928 "-" "Mozilla/5.0 (Android) Nextcloud-android/3>
172.58.45.203 - - [13/Apr/2021:00:08:04 +0000] "PROPFIND /nextcloud/remote.php/webdav/ScottPhotos/ HTTP/1.1" 207 5644 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:04 +0000] "PROPFIND /nextcloud/remote.php/webdav/ScottPhotos/ HTTP/1.1" 207 5526 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:05 +0000] "GET /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2FScottPhotos%2F&reshares=true&subfiles=true HTTP/1.1" 200 928 "-" "Mozilla/5.0 (Android) Nextc>
172.58.45.203 - - [13/Apr/2021:00:08:05 +0000] "PROPFIND /nextcloud/remote.php/webdav/ScottPhotos/2021/ HTTP/1.1" 207 1511 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:05 +0000] "PROPFIND /nextcloud/remote.php/webdav/ScottPhotos/2021/ HTTP/1.1" 207 5647 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:06 +0000] "GET /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2FScottPhotos%2F2021%2F&reshares=true&subfiles=true HTTP/1.1" 200 1997 "-" "Mozilla/5.0 (Androi>
172.58.45.203 - - [13/Apr/2021:00:08:06 +0000] "PROPFIND /nextcloud/remote.php/webdav/ScottPhotos/2021/04/ HTTP/1.1" 207 1611 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:06 +0000] "PROPFIND /nextcloud/remote.php/webdav/ScottPhotos/2021/04/ HTTP/1.1" 207 43006 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
172.58.45.203 - - [13/Apr/2021:00:08:07 +0000] "GET /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2FScottPhotos%2F2021%2F04%2F&reshares=true&subfiles=true HTTP/1.1" 200 928 "-" "Mozilla/5.0 (An>
::1 - - [13/Apr/2021:00:08:12 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f (internal dummy connection)"
192.168.50.1 - - [13/Apr/2021:00:20:08 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 4737 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:20:08 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 4739 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
192.168.50.1 - - [13/Apr/2021:00:20:09 +0000] "GET /nextcloud/index.php/204 HTTP/1.1" 204 4739 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.15.1"
```