Zero byte files uploaded by iOS app auto photo upload

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 18.0.2): 19.0.3 (Docker nextcloud:19-apache)
Operating system and version (eg, Ubuntu 20.04): Ubuntu Server 18.04.5
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 with Apache/2.4.29 reverse proxy
PHP version (eg, 7.1): 7.4.10

The issue you are facing:

Photos uploaded automatically via the iOS Nextcloud app sometimes end up zero byte files on the server. No attempt is made to resume or re-transfer the files. Viewing the details of one of the files in the app results in an app crash.

The same photos can be uploaded manually with no issue. I checked the server’s data folder and the affected files are indeed zero bytes.

The issue is intermittent and has been happening for a little while. The oldest zero byte file is 2 months old which probably puts it around the time I upgraded to NC19.

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

Steps to replicate it:

  1. Take photo
  2. Allow app to auto upload

The output of your Nextcloud log in Admin > Logging:
Nothing relevant, nextcloud log has rolled out since the last zero byte upload a few days ago.

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

    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "127.0.0.1:8080",
            "2": "***REMOVED SENSITIVE VALUE***"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "19.0.3.1",
        "overwrite.cli.url": "http:\/\/127.0.0.1:8080",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 0,
        "updater.release.channel": "stable",
        "theme": "",
        "app_install_overwrite": [
            "keeweb"
        ]
    },

The output of your Apache/nginx/system log in /var/log/____:
I found these entries in the container log where the last zero byte file was uploaded and then where my laptop Nextcloud client downloaded it.

172.18.0.1 - karl [27/Sep/2020:01:02:23 +0000] "PUT /remote.php/webdav/Pictures/iPhone%20Sync/2020-09-26_1224_7305.jpg HTTP/1.1" 201 950 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.6"
172.18.0.1 - karl [27/Sep/2020:01:02:26 +0000] "PUT /remote.php/webdav/Pictures/iPhone%20Sync/2020-09-26_1224_7305.jpg HTTP/1.1" 204 893 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/3.0.6"
172.18.0.1 - karl [27/Sep/2020:01:02:50 +0000] "GET /remote.php/dav/files/karl/Pictures/iPhone%20Sync/2020-09-26_1224_7305.jpg HTTP/1.1" 200 831 "-" "Mozilla/5.0 (Windows) mirall/3.0.1stable-Win64 (build 20200828) (Nextcloud)"
1 Like

I have/had a similar issue:

Since using the Test Flight version (i.e. some kind of beta test), the issue finally disappeared.