Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files getting set to 0 in data folder #3056

Closed
mikelupe opened this issue Jan 12, 2017 · 82 comments
Closed

Files getting set to 0 in data folder #3056

mikelupe opened this issue Jan 12, 2017 · 82 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: filesystem high needs info

Comments

@mikelupe
Copy link

mikelupe commented Jan 12, 2017

Steps to reproduce

  1. find /srv/ncdata/ -size 0 -type f | wc -l
  2. Result: 215 files found
  3. No other way to reproduce, I suddenly realized I had lost a file to zero and did some investigation, as some other nextcloud forum's users wrote about the same issue in https://help.nextcloud.com/t/files-become-zero-bytes/7214

Expected behaviour

Files should not randomly getting set to 0

Actual behaviour

Hi guys,

I'm one of those losing files to zeros. I thought it's better to continue in here, rather than spamming the forum's thread about this issue.

I'm on NC11RC1 since yesterday and I do have 215 files in the data folder set to zero - but I for sure already had one file on NC11 final that was set to zero and I had to restore it from a backup. Maybe the other 214 were lost too already on NC11 final.

a) 13 files related to one (and only one) frequent user's data
10 files in ncdata/ncuser01/files/01_Daten/
File extensions: .ini .txt .docx .exe .cfg .bin
3 files:
ncdata/ncuser01/files_versions/MyCloud/Tesfile01.txt.v1474618386
ncdata/ncuser01/files_trashbin/files/New Text Document.txt.d1475085009
ncdata/ncuser01/files_trashbin/files/New Text Document.txt.d1480781891

b) 199 files related to "updater-data" in the data folder
187 files in ncdata/updater-50793ab339aa5/
6 files in ncdata/updater-data/checkpoint/9.0.0.19-570dfac02c766/apps/
6 files in ncdata/updater-data/checkpoint/9.0.1.3-573246e809595/apps/

c) 3 other files in data root:
ncdata/.ocdata
ncdata/index.html
ncdata/appdata_50793ab339aa5/preview/16024/64-64-crop.png

It's midnight now, and I came home from work at 10pm, so please don't ask for more infos now.

Thanks, kind regards

Server configuration

Debian Jessie 8.6 (x64) - SMP Debian 4.8.11-1~bpo8+1 (2016-12-14) x86_64 GNU/Linux
Apache/2.4.25 (Debian)
mysql Ver 15.1 Distrib 10.0.28-MariaDB
PHP 5.6.29-0+deb8u1
NC 11.0.1 RC1 (beta)
Updated from NC11 final with Webgui updater
**Original clean manual installation of Nextcloud 9 (from nextcloud.com download) and then additionally migrated data from an old owncloud installation (which itself came the long way from OC 3.X) **

Signing status:

Signing status Integrity checker has been disabled. Integrity cannot be verified.`

List of activated apps:

App list

Enabled:

  • activity: 2.4.1
  • admin_audit: 1.1.0
  • announcementcenter: 3.0.0
  • apporder: 0.3.3
  • audioplayer: 1.4.0
  • bookmarks: 0.9.1
  • calendar: 1.4.1
  • comments: 1.1.0
  • contacts: 1.5.2
  • dav: 1.1.1
  • external: true
  • federatedfilesharing: 1.1.1
  • federation: 1.1.1
  • files: 1.6.1
  • files_accesscontrol: 1.1.2
  • files_automatedtagging: 1.1.1
  • files_external: 1.1.2
  • files_pdfviewer: 1.0.1
  • files_retention: 1.0.1
  • files_sharing: 1.1.1
  • files_texteditor: 2.2
  • files_trashbin: 1.1.0
  • files_versions: 1.4.0
  • files_videoplayer: 1.0.0
  • gallery: 16.0.0
  • gpxedit: 0.0.3
  • gpxpod: 2.0.0
  • keeweb: 0.3.0
  • logreader: 2.0.0
  • lookup_server_connector: 1.0.0
  • mozilla_sync: true
  • nextcloud_announcements: 1.0
  • notes: 2.1.0
  • notifications: 1.0.1
  • ocsms: 1.11.4
  • password_policy: 1.1.0
  • polls: 0.7.2
  • provisioning_api: 1.1.0
  • qownnotesapi: 16.12.0
  • rainloop: 4.26.0
  • richdocuments: 1.1.25
  • serverinfo: 1.1.1
  • sharebymail: 1.0.1
  • spreed: 1.1.2
  • spreedme: 0.3.5
  • survey_client: 0.1.5
  • systemtags: 1.1.3
  • tasks: 0.9.4
  • templateeditor: 0.2
  • theming: 1.1.1
  • twofactor_backupcodes: 1.0.0
  • updatenotification: 1.1.1
  • user_ldap: 1.1.1
  • workflowengine: 1.1.1
    Disabled:
  • encryption
  • files_markdown
  • firstrunwizard
  • mail
  • user_external
  • user_saml

The content of config/config.php:

Config report
{
    "system": {
        "datadirectory": "\/srv\/ncdata",
        "dbtype": "mysql",
        "version": "11.0.1.1",
        "installedat": "1331029597.1919",
        "lastupdatedat": "1343136183.1441",
        "installed": true,
        "loglevel": 2,
        "instanceid": "50793ab339aa5",
        "ldapIgnoreNamingRules": false,
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "theme": "",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "valid.smtp.host.xxx",
        "mail_smtpport": "465",
        "mail_smtptimeout": 30,
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "allow_user_to_change_display_name": true,
        "enable_avatars": true,
        "knowledgebaseenabled": false,
        "enable_certificate_management": true,
        "trusted_domains": [
            "localhost",
            "*someIP*",
            "some.dom.tld"
        ],
        "appcodechecker": false,
        "custom_csp_policy": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *",
        "share_folder": "\/Shared",
        "mail_from_address": "somevalidemail",
        "mail_domain": "dom.tld",
        "dbname": "nextcloud",
        "dbhost": "localhost",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "forcessl": true,
        "defaultapp": "files",
        "mail_smtpsecure": "ssl",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "appstoreenabled": true,
        "appstoreurl": "https:\/\/apps.nextcloud.com\/api\/v0",
        "appstore.experimental.enabled": true,
        "trashbin_retention_obligation": "auto",
        "updater.release.channel": "beta",
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Are you using external storage, if yes which one: No

Are you using encryption: no

Are you using an external user-backend, if yes which one: ActiveDirectory (but not really used, still local users)

LDAP config
</details>

### Client configuration
**Browser:** Firefox 50.1.0
**Operating system:** Debian 8.6 KDE Plasma / Windows 7 

### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>

Errorlog from when?

</details>

#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>

Nextcloud log from when?

</details>

#### Browser log
<details>
<summary>Browser log</summary>

From when?```

@nickvergessen
Copy link
Member

Thanks for the detailed report!

Is there anything in the nextcloud.log or in your apache/nginx error.log?

@mikelupe
Copy link
Author

Sorry the formatting mess...

I'll have to investigate the logs when I'll find some time. The problem is, the only trigger for me to realize there's zeros coming was when opening a file in Collabora, CODE got stuck. Then I saw the file went zero, but didn't have the time to investigate further (besides of restoring the file from backup). The "big" research I did with finding the 215 files was much later, like 2 days later or so...

@Sanookmakmak
Copy link

I also have that issue.

Unfortunately i can't say when it happened. Therefore i'm unable to look at the log files.

I only can warn everyone about this behavior!
Check from time to time if files in your data folder becomes 0 bytes.
find $nextcloud_data_folder -size 0 -type f

Here are some more users of Nextcloud with that zero bytes bug:
https://help.nextcloud.com/t/files-become-zero-bytes/7214

@tflidd
Copy link
Contributor

tflidd commented Jan 14, 2017

For one of the users it could have been the client which overwrites the file:
https://help.nextcloud.com/t/files-become-zero-bytes/7214/3

Does this only concern users who sync their files with the nc-client? All longer existing setups with upgrade history? Zero files also happen on local storage, non shared files & folders? If you share a bit more about the other configs, it's easier to find a pattern.

@mikelupe
Copy link
Author

mikelupe commented Jan 14, 2017

@tflidd - well, for me it's indeed just for the only user syncing with desktop clients (Linux & Windows). All other user's files haven't been touched appearently. Local storage only, non shared files or folders. Quite "simple and small" personal setup. I didn't do the check on the company's NC yet though.

@Sanookmakmak - let's try to approach this issue in a calm way. Creating some panic doesn't help. Please give some closer insight on the zeroed files. I know it's boring - that's how it felt when I created the issue yesterday. But maybe this way we can advance faster on it.

thanks

@Sanookmakmak
Copy link

I can only say that i use the Linux and Windows client, sorry. I've uploaded the files about half a year ago and i really don't have an idea when and why the files have been zeroed. I found them coincidentally. But i will keep an eye on it if it happens again.

And i don't have a backup because Nextcloud is my backup solution. That's why i feel i little bit panic :-(

@mikelupe
Copy link
Author

I see - Be careful, it's "dangerous" and not recommended to use OC or NC as the sole backup solution, even if you would use the "versions" app. The NC server data should always be backupped. That's what the big cloud providers also do. Otherwise they would be in big trouble.

Can you provide some information about the system setup?

Operating System
Kernel (uname -a)
Webserver engine ("apachectl -V" e.g.)
Database ("mysql --version" e.g.)
PHP Version ("php --version")

Thanks

@Sanookmakmak
Copy link

Sanookmakmak commented Jan 14, 2017

This information is from today, but the issue could also happened half a year ago and of course there were older versions installed. As i told before, i can't say when those files were zeroed.

Operating System
Ubuntu 16.041 x64 Server
Clients: Linux Mint 18 with Owncloud client 2.2.4 of SuSE repo
Windows 7 with Nextcloud client 2.2.4 build 2

Kernel (uname -a)
Linux server 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Webserver engine (apachectl -V)

Server version: Apache/2.4.18 (Ubuntu)
Server built:   2016-07-14T12:32:26
Server's Module Magic Number: 20120211:52
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"

Database (mysql --version)
mysql Ver 15.1 Distrib 10.0.28-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

PHP Version (php --version)

PHP 7.0.13-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.13-0ubuntu0.16.04.1, Copyright (c) 1999-2016, by Zend Technologies

@mikelupe
Copy link
Author

mikelupe commented Jan 14, 2017

Great. If you find the time, could you analyze your "find $nextcloud_data_folder -size 0 -type f" command in an editor and filter down the major folders of the affected files (more or less as I did in the issue description).

And "sudo -u www-data php /var/www/your_nc_folder/occ app:list" - so the devs and ops got even more stuff to work with :)

@Sanookmakmak
Copy link

find $nextcloud_data_folder -size 0 -type f

./Archiv/Musikarchiv/Artists/K-O/Miles Davis/Blue Bird - Legendary Savoy Sessions/Miles Davis - Parker's Mood (feat. Charlie Parker).mp3

php occ app:list

Enabled:
  - activity: 2.4.1
  - admin_audit: 1.1.0
  - announcementcenter: 3.0.0
  - apporder: 0.3.3
  - audioplayer: 1.4.0
  - bookmarks: 0.9.1
  - calendar: 1.4.1
  - comments: 1.1.0
  - contacts: 1.5.2
  - dav: 1.1.1
  - direct_menu: 0.10.0
  - federatedfilesharing: 1.1.1
  - federation: 1.1.1
  - files: 1.6.1
  - files_accesscontrol: 1.1.2
  - files_automatedtagging: 1.1.1
  - files_downloadactivity: 1.0.0
  - files_external: 1.1.2
  - files_markdown: 1.0.0
  - files_pdfviewer: 1.0.1
  - files_reader: 0.8.1
  - files_retention: 1.0.1
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - firstrunwizard: 2.0
  - gallery: 16.0.0
  - gpxedit: 0.0.3
  - gpxpod: 2.0.0
  - keeweb: 0.3.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - mail: 0.6.2
  - news: 10.1.0
  - nextcloud_announcements: 1.0
  - notifications: 1.0.1
  - ocr: 2.0.0
  - ocsms: 1.11.4
  - ojsxc: 3.0.2
  - password_policy: 1.1.0
  - provisioning_api: 1.1.0
  - richdocuments: 1.1.25
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - spreed: 1.1.2
  - spreedme: 0.3.5
  - survey_client: 0.1.5
  - systemtags: 1.1.3
  - tasks: 0.9.4
  - theming: 1.1.1
  - twofactor_backupcodes: 1.0.0
  - twofactor_totp: 0.5.0
  - twofactor_u2f: 0.1.0
  - updatenotification: 1.1.1
  - user_ldap: 1.1.1
  - user_saml: 1.2.2
  - workflowengine: 1.1.1

@nickvergessen
Copy link
Member

@icewind1991 @rullzer any idea? Seems like filesystem or syncing causes an issue.

@feisar
Copy link

feisar commented Jan 17, 2017

I've posted a script here https://help.nextcloud.com/t/files-become-zero-bytes/7214/17 which will help alert close to the time it happens. The Apache logs don't seem to help much, I caught them when one file was zero'd and they just showed one client putting and the other getting.

Anyone know which log file is going to be best to look at and would turning on debugging help?

@nickvergessen
Copy link
Member

Can you post those two lines? The GET and the PUT?

@feisar
Copy link

feisar commented Jan 24, 2017

Sure,

The last good backup of the file in question was on the evening of the Jan 1st, by the evening of the 2nd it was zero bytes.

So entries from web logs from the 1st and 2nd of Jan should cover it, I have the following:

(49 is my desktop, 34 is my laptop)

192.168.0.34 - me [02/Jan/2017:10:18:02 +0000] "GET /remote.php/webdav/Documents/Passwords/passwords.kdb HTTP/1.1" 200 123515 "-" "Mozilla/5.0 (Linux) mirall/2.2.4"
192.168.0.34 - me [02/Jan/2017:10:24:07 +0000] "PUT /remote.php/webdav/Documents/Passwords/passwords.kdb HTTP/1.1" 204 1117 "-" "Mozilla/5.0 (Linux) mirall/2.2.4"
192.168.0.49 - me [02/Jan/2017:10:24:24 +0000] "GET /remote.php/webdav/Documents/Passwords/passwords.kdb HTTP/1.1" 200 4734 "-" "Mozilla/5.0 (Linux) mirall/2.2.4"

And here's what looks relevant from the nextcloud.log

{"reqId":"Lkxh6CnAZ4QR+Y6jP+eo","remoteAddr":"192.168.0.49","app":"admin_audit","message":"Login attempt: "me"","level":1,
"time":"2017-01-02T10:17:10+00:00","method":"PROPFIND","url":"/remote.php/webdav/","user":"--","version":"9.0.55.2"}
{"reqId":"Lkxh6CnAZ4QR+Y6jP+eo","remoteAddr":"192.168.0.49","app":"admin_audit","message":"Login successful: "me"","level"
:1,"time":"2017-01-02T10:17:10+00:00","method":"PROPFIND","url":"/remote.php/webdav/","user":"me","version":"9.0.55.2"
}
{"reqId":"O6K8tsA1LpcV4MucFfoB","remoteAddr":"192.168.0.34","app":"admin_audit","message":"Login attempt: "me"","level":1,
"time":"2017-01-02T10:17:47+00:00","method":"PROPFIND","url":"/remote.php/webdav/","user":"--","version":"9.0.55.2"}
{"reqId":"O6K8tsA1LpcV4MucFfoB","remoteAddr":"192.168.0.34","app":"admin_audit","message":"Login successful: "me"","level"
:1,"time":"2017-01-02T10:17:47+00:00","method":"PROPFIND","url":"/remote.php/webdav/","user":"me","version":"9.0.55.2"
}
{"reqId":"kutzpgoHBgNmYs0iM98J","remoteAddr":"192.168.0.34","app":"admin_audit","message":"File accessed: "/Documents/Passwords/passwords.kdb"","level":1,"time":"2017-01-02T10:18:02+00:00","method":"GET","url":"/remote.php/webdav/Documents/Passwords/passwords.kdb","user":"me","version":"9.0.55.2"}
...
{"reqId":"SJceIZsYT6112ImWuKvD","remoteAddr":"192.168.0.34","app":"admin_audit","message":"File updated: "/Documents/Passwords/passwords.kdb"","level":1,"time":"2017-01-02T10:24:09+00:00","method":"PUT","url":"/remote.php/webdav/Documents/Passwords/passwords.kdb","user":"me","version":"9.0.55.2"}
{"reqId":"SJceIZsYT6112ImWuKvD","remoteAddr":"192.168.0.34","app":"admin_audit","message":"File written to: "/Documents/Passwords/passwords.kdb"","level":1,"time":"2017-01-02T10:24:09+00:00","method":"PUT","url":"/remote.php/webdav/Documents/Passwords/passwords.kdb","user":"me","version":"9.0.55.2"}
...
{"reqId":"w9GMJE8VNhqyuat1UT5X","remoteAddr":"","app":"cron","message":"Run OC\Command\CommandJob job with ID 137","level":0,"time":"2017-01-02T10:30:02+00:00","method":"--","url":"--","user":"--"}
{"reqId":"w9GMJE8VNhqyuat1UT5X","remoteAddr":"","app":"files_versions","message":"Mark to expire /Documents/Passwords/passwords.kdb next version should be 1482250718 or smaller. (prevTimestamp: 1482337118; step: 86400","level":1,"time":"2017-01-02T10:30:02+00:00","method":"--","url":"--","user":"--"}
{"reqId":"w9GMJE8VNhqyuat1UT5X","remoteAddr":"","app":"files_versions","message":"Mark to expire /Documents/Passwords/passwords.kdb next version should be 1479453393 or smaller. (prevTimestamp: 1480058193; step: 604800","level":1,"time":"2017-01-02T10:30:02+00:00","method":"--","url":"--","user":"--"}
{"reqId":"w9GMJE8VNhqyuat1UT5X","remoteAddr":"","app":"files_versions","message":"Expire: /Documents/Passwords/passwords.kdb.v1482337032","level":1,"time":"2017-01-02T10:30:02+00:00","method":"--","url":"--","user":"--"}
{"reqId":"w9GMJE8VNhqyuat1UT5X","remoteAddr":"","app":"files_versions","message":"Expire: /Documents/Passwords/passwords.kdb.v1479646724","level":1,"time":"2017-01-02T10:30:02+00:00","method":"--","url":"--","user":"--"}
{"reqId":"w9GMJE8VNhqyuat1UT5X","remoteAddr":"","app":"cron","message":"Finished OC\Command\CommandJob job with ID 137","level":0,"time":"2017-01-02T10:30:02+00:00","method":"--","url":"--","user":"--"}
...

@icewind1991
Copy link
Member

Without any further info I'm inclined to believe that this is a client side issue, either a bug in the sync client or some situation on the client seed causing the sync client to see a 0 byte file.

To further investigate the situation you can try applying this patch which will log the stacktrace anytime a 0 byte file is written

@MorrisJobke
Copy link
Member

No feedback since half a year. I will close this. Once you have more details we can of course reopen this ticket.

@FeralFox
Copy link

I had the same problem in 2012 and in 2015 (inbetween and after that I stopped using Owncloud/Nextcloud for file sync). I found several issues like this. I wanted to link to the issue below, that seems to have some more details according to this phenomenon.
Could a first workaround be an option to forbid the client to sync any files with 0 bytes?
owncloud/client#4583

The first report of this is from 2013:
owncloud/client#1218

I have hosted Owncloud on all-inkl.com, so I can't say much about the server setup. I used the owncloud client on windows for synchronization. I found several pdf-files synced down to 0 bytes. On my computers as well as on the server. Furthermore, I could not restore old versions of these files.

@stratege1401
Copy link

stratege1401 commented Feb 14, 2018

hello, experienced something similar today on NC 13.0.0 ( originally 12.0.5 updated to 13.0.0 without errors )

Nextcloud server 13.0.0 (12.0.5 updated)
based A8-6500 8GO RAID6 8*6TO
4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
/ apache 2.4.29 / php 7.0.27 / 10.1.26-MariaDB / mysqlnd 5.0.12
/ phpadmin 4.6.6deb4 / Redis server v=3.2.6 / HTTP2 / Python 2.7.13

Created a few days ago some folder, and copy/past files/pic to it
also open and modified files directly from GUI for txt files
and i got this in GUI logging:

Info | files_versions | Expire: /test_raw/TRAVAILENCOURS_MELIRE.txt.v1518400652 | 2018-02-14T12:15:03+0100
-- | -- | -- | --
Info | files_versions | Expire: /test_raw/TRAVAILENCOURS_MELIRE.txt.v1518400674 | 2018-02-14T12:15:03+0100
Info | files_versions | Expire: /test_raw/TRAVAILENCOURS_MELIRE.txt.v1518400719 | 2018-02-14T12:15:03+0100
Info | files_versions | Expire: /test_raw/TRAVAILENCOURS_MELIRE.txt.v1518400731 | 2018-02-14T12:15:03+0100
Info | files_versions | Mark to expire /test_raw/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400 | 2018-02-14T12:15:03+0100
Info | files_versions | Mark to expire /test_raw/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400 | 2018-02-14T12:15:03+0100
Info | files_versions | Mark to expire /test_raw/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400 | 2018-02-14T12:15:03+0100
Info | files_versions | Mark to expire /test_raw/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400 | 2018-02-14T12:15:03+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518292863 | 2018-02-14T03:39:40+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518293056 | 2018-02-14T03:39:40+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518293304 | 2018-02-14T03:39:40+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518293316 | 2018-02-14T03:39:40+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518293322 | 2018-02-14T03:39:40+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518297813 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518297823 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518297831 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298004 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298011 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298102 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298139 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298151 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298162 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298169 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298186 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298196 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298243 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298252 | 2018-02-14T03:39:39+0100
Info | files_versions | Expire: /Hardnas/Structure.txt.v1518298260 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100
Info | files_versions | Mark to expire /Hardnas/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400 | 2018-02-14T03:39:39+0100

and from nextcloud.log file:

qId":"5R2zWJgL6QxHtEpHNsDR","level":3,"time":"2018-02-13T18:34:42+00:00","remoteAddr":"90.112.162.211","user":"nextadmin","app":"core","method":"POST","url":"\/index.php\/settings\/ajax\/enableapp.php","message":"Could not download app camerarawpreviews","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"SspLYznfi8MM6X2CiqUk","level":3,"time":"2018-02-13T18:34:49+00:00","remoteAddr":"90.112.162.211","user":"nextadmin","app":"core","method":"POST","url":"\/index.php\/settings\/ajax\/uninstallapp.php","message":"can't remove app CameraRawPreviews. It is not installed.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"EKy2kOj2Hs1OtcJWSXcy","level":3,"time":"2018-02-13T18:34:52+00:00","remoteAddr":"90.112.162.211","user":"nextadmin","app":"core","method":"POST","url":"\/index.php\/settings\/ajax\/uninstallapp.php","message":"can't remove app CameraRawPreviews. It is not installed.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/Hardnas\/Structure.txt next version should be 1518211889 or smaller. (prevTimestamp: 1518298289; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298260","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298252","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298243","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298196","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298186","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298169","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298162","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298151","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298139","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298102","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298011","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518298004","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518297831","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518297823","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:39+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518297813","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:40+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518293322","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:40+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518293316","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:40+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518293304","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:40+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518293056","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"FMrJEyepRcDVvsqRIpem","level":1,"time":"2018-02-14T02:39:40+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/Hardnas\/Structure.txt.v1518292863","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.140 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/test_raw\/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/test_raw\/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/test_raw\/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Mark to expire \/test_raw\/TRAVAILENCOURS_MELIRE.txt next version should be 1518314339 or smaller. (prevTimestamp: 1518400739; step: 86400","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/test_raw\/TRAVAILENCOURS_MELIRE.txt.v1518400731","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/test_raw\/TRAVAILENCOURS_MELIRE.txt.v1518400719","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/test_raw\/TRAVAILENCOURS_MELIRE.txt.v1518400674","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}
{"reqId":"uZntwgct5QIfS4Mu3ieF","level":1,"time":"2018-02-14T11:15:03+00:00","remoteAddr":"90.112.162.211","user":"--","app":"files_versions","method":"GET","url":"\/cron.php","message":"Expire: \/test_raw\/TRAVAILENCOURS_MELIRE.txt.v1518400652","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.167 Safari\/537.36","version":"13.0.0.14"}

@dece
Copy link

dece commented Mar 22, 2018

This also happens to me on a regular basis. The files seems to get 0ed on the server storage, not on the client side. A touch on those files to force the upload of valid contents resolve it but I'm afraid it may not always do.

Please reopen this issue as it is really frightening to get files erased randomly. I'm available to do some tests if needed. For what it's worth it happened on several files when moved from a subfolder to another, in the same synced folder.

I use a Windows client and several Linux clients (stable repository). Client version (Windows): 2.3.3. Server version: 12.0.4, on Debian Stretch.

@tflidd
Copy link
Contributor

tflidd commented Mar 22, 2018

Did you try to add the extended logging from #3056 (comment)?
And please try with the latest NC 12 version, not that it was accidentally fixed:
https://nextcloud.com/changelog/#latest12

@mikelupe
Copy link
Author

I fortunately didn't have these problems anymore, after my last clean-up (about an year ago). It think it was a combination of Linux/Windows desktop clients and an old Linux owncloud client, but I'm not 100% sure of it. Sorry - I can't remember and am not able to describe the solving. It was one of these moments of "oh ok, it didn't happen anymore".

@dece
Copy link

dece commented Mar 31, 2018

@tflidd NC12 does not fix the issue, for 6 shared folders I have empty files appearing in 3 tonight, several days after the upgrade. I will try to enable extended logging tomorrow.

@dece
Copy link

dece commented Apr 5, 2018

This patch seems to cause an issue:

{"reqId":"peDOLrsekBLqkxn50o5W","level":3,"time":"2018-04-05T19:30:23+00:00","remoteAddr":"192.168.1.1","user":"<edited>","app":"PHP","method":"GET","url":"\/remote.php\/dav\/files\/<edit>.jpeg","message":"Undefined variable: stream at \/var\/www\/nuaj\/lib\/private\/Files\/View.php#1003","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.3.3 (Nextcloud)","version":"13.0.1.1"}

@tflidd
Copy link
Contributor

tflidd commented Apr 5, 2018

@icewind1991 it was your patch, can you take a look?

@tflidd
Copy link
Contributor

tflidd commented May 12, 2018

The topic on the forum is still active:
https://help.nextcloud.com/t/files-become-zero-bytes/7214

I looked through my setup as well and found a lot of 0-bytes files. I have to hunt them down and check in older backups, if I can find the actual files again and perhaps find why this happened. Reopening.

@tflidd tflidd reopened this May 12, 2018
@DMW007
Copy link

DMW007 commented Apr 23, 2021

@Subito I'm not using Nextcloud on iOS but on Android. Some of the 0 byte files were pictures. But most of the files were never written to NC from a mobile device. Like LibreOffice files. Those files were mostly synced by the Linux/Windows desktop client. Since the issue seems to affect the WebDAV interface, I guess this should be reproduceable on all desktop and mobile clients. In my config fastcgi_request_buffering off is set, so I should be affected of exactly this issue in the mentioned ticket.

So I tried to put an Ubuntu 20.10 Server iso image (998MB) and a zip archive with 206MB in my Nextcloud sync folder on Windows 10. This worked well, they have their expected file size in the nextcloud data dir of the account. I'll try to do the same with Linux.

To make sure that those clients are really affected, I think we need to capture the requests between the sync client and the server to see if the Transfer-Encoding: chunked header is present. According to this comment, it should always fail in low latency and high bandwitch environments. This is the case for me, my NC server is in the local network. Client and server are connected with a 1GB wired connection.

@DMW007
Copy link

DMW007 commented May 11, 2021

I noticed a new 0 byte file: WhatsApp Images/IMG-20201230-WA0006.jpeg. This image was automatically uploaded using the Android app. The mobile device (an older Samsung Galaxy S4) showed a conflict. It was not possible to handle that properly, the app started to hang. But according to the last write time on the Nextcloud server, this happened before anything was choosen in the Nextcloud app conflict dialog.

As a result, it seems that the Android app is (also) responsible for destroying files with 0 byte content.

@enoch85
Copy link
Member

enoch85 commented Jun 17, 2021

We added this in the Nextcloud VM to easily check for 0-byte files:

nextcloud/vm#2026

@dannyb2100
Copy link

dannyb2100 commented Jul 22, 2021

Been having the same issue - when uploading a file through webdav all files were being zero-ed.

Having just checked and uploading through the web interface does not cause the problem.

Interesting!

So it seems my client is causing this issue?

@szaimen
Copy link
Contributor

szaimen commented Jul 22, 2021

Been having the same issue - when uploading a file through webdav all files were being zero-ed

Which webdav client were you using?

@dannyb2100
Copy link

dannyb2100 commented Jul 22, 2021

Been having the same issue - when uploading a file through webdav all files were being zero-ed

Which webdav client were you using?

I was using MountainDuck (CyberDuck).

@szaimen
Copy link
Contributor

szaimen commented Jul 22, 2021

I was using MountainDuck (CyberDuck).

So seems like MountainDuck (CyberDuck) isn't compatible with Nextcloud then?

@dannyb2100
Copy link

I was using MountainDuck (CyberDuck).

So seems like MountainDuck (CyberDuck) isn't compatible with Nextcloud then?

After going through troubleshooting it seems its to do with the configuration on the server.

https://trac.cyberduck.io/wiki/help/en/howto/mount/issues/fastcgi

"Using a client to upload files with ​HTTP chunked transfer encoding to a server with fastcgi/php-fpm enabled can lead to zero-byte files"

@enoch85
Copy link
Member

enoch85 commented Jul 23, 2021

"Using a client to upload files with ​HTTP chunked transfer encoding to a server with fastcgi/php-fpm enabled can lead to zero-byte files"

Yeah, I've seen that before.

To be able to use MountanDuck you need to change to Apache PHP. I'm quite surprised the MountainDuck devs haven't worked around this issue yet.

@DMW007
Copy link

DMW007 commented Jul 23, 2021

So it seems my client is causing this issue?
It seems that this is a combination of PHP-FPM, some clients and special conditions. Since a few months I'm monitorring this issue. At that time I had multiple zero byte files on all accounts, the reasons were not clear. Different clients were used. Some affected files were only edited on the desktop with the Linux/Windows clients, not on cell phones.

Since april, I just had zero byte files on one account. The affected files were uploaded using the NC Android app with the auto upload function. At least my own NC account contains a lot of files in different sizes. A part is also encrypted with Cryptomator. However, there are no 0 byte files any more. The reason is unclear.

You can work around this by setting fastcgi_request_buffering on. This may decreases the performance a bit and requires more memory, especially on larger files, since the data between nginx and php is buffered at nginx instead of just passing it through. Or use a PHP stack withput FastCGI, like Apache with its module, as already suggested.

@enoch85
Copy link
Member

enoch85 commented Jul 23, 2021

fastcgi_request_buffering on

To be clear, that's an Nginx settting.

@bbolokofsky
Copy link

bbolokofsky commented Jul 23, 2021 via email

@Zealot2000
Copy link

I was affected by this issue, too, and after too many hours of searching for a solution, I found this issue report:
https://bz.apache.org/bugzilla/show_bug.cgi?id=57087
It basically says to update Apache to 2.4.47+ and add "SetEnv proxy-sendcl 1" to Apache's virtual host directive.

So I did exactly that (by using Ondřej Surý's PPA) and bingo, no more zero byte files when using Mountain Duck to copy files to Nextcloud.
Can anybody confirm this works on their end, too?

  • Tech and Me's Nextcloud VM 22.2.0
  • Apache 2.4.51
  • PHP 7.4.3 FPM/FastCGI
  • Mountain Duck 3.4.0

@DrMxxxxx
Copy link

DrMxxxxx commented Nov 20, 2021

I have the same issue, when I upload PDF files via the Webbrowser (Firefox on Mac). Even PDFs I uploaded minutes ago, I cannot open any more.

When I open the file I get this error.
Screenshot 2021-11-20 at 13 39 30

But the file in the files folder shows me still the correct size:
Screenshot 2021-11-20 at 13 40 33

NC version: 22.2.3
Environment: docker apache image

Edit: It seems, that only files I recently uploaded are affected. File, which are older than 23 days, are not affected at all. So it seems, this "bug" was introduced with the Version 22.2.2 (or 22.2.1).

@WhiteChairFromIkea

This comment was marked as resolved.

@mduller

This comment was marked as resolved.

@szaimen
Copy link
Contributor

szaimen commented Nov 26, 2022

Hi, please update to at least 23.0.12 and report back if it fixes the issue. Thank you!

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Nov 26, 2022
@szaimen szaimen closed this as completed Mar 6, 2023
@jazzina
Copy link

jazzina commented Jul 20, 2023

@Zealot2000 thanx for solution, but in my case this wasnt enought.

second part of solution - fixing nginx reverse proxy (in my case) by adding following lines to nginx config:

client_max_body_size 50000M;
client_body_buffer_size 400M;

as described here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: filesystem high needs info
Projects
None yet
Development

No branches or pull requests