Closed biggt closed 2 years ago
Looks like after trying to correct the logging issues I lost some of the drop down responses... here they are:
Installation Method: Official Docker image Operating system: Debian/Ubuntu PHP engine version: PHP 8.0 Web server: Apache (supported) Database engine version: MariaDB Is this bug present after an update or on a fresh install? Updated to a major version (ex. 22.2.3 to 23.0.1) Are you using the Nextcloud Server Encryption module? Encryption is Disabled. What user-backends are you using? Default user-backend (database)
@artonge could this be related to https://github.com/nextcloud/server/pull/30485 / https://github.com/nextcloud/server/commit/69b8044b8f957c5a74396025608dd513c8f7ff7d?
@artonge could this be related to #30485 / 69b8044?
Looks like this is directly related.
I am having the same problem:
{"Exception":"InvalidArgumentException","Message":"X-OC-MTime header must be a valid positive integer","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":407,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\MtimeSanitizer","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":319,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":155,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":339,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/MtimeSanitizer.php","Line":37,"CustomMessage":"--"}}
Nextcloud 23.0.3
Yep getting this same error, and it's stopped me being able to use the desktop client at all
Occuring with virtual folders on Windows 10, server 23.0.3 and client 3.4.4:
In #30473, over ten people have reported problems after the issue was closed.
Is nextcloud supposed to handle this? I'm noticing that all of my files appear new whether or not I upload on the website or use webdav.
Something like haproxy wouldn't be stripping timestamping would it?
This is really a problem. My iOS client seems to be crashing a lot because of this.
On 8 Apr 2022, at 15:40, Lance @.***> wrote:
Is nextcloud supposed to handle this? I'm noticing that all of my files appear new whether or not I upload on the website or use webdav.
Something like haproxy wouldn't be stripping timestamping would it?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
This happens mostly on the mobile client in my case.
On 9 Apr 2022, at 13:17, Simon L. @.***> wrote:
Hi, please see this: https://github.com/nextcloud/desktop/wiki/How-to-fix-the-error-invalid-or-negative-modification-date
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
Is nextcloud supposed to handle this? I'm noticing that all of my files appear new whether or not I upload on the website or use webdav.
Something like haproxy wouldn't be stripping timestamping would it?
Ok so I have determined my issue only lies with the WebDav client I use, it seems that Nautilus doesn't send X-OC-Mtime in it's implimentation of WebDav at the time of writing. Uploading in WebUI through Firefox and using the Nextcloud desktop/phone apps work fine for me.
Hi, please see this: https://github.com/nextcloud/desktop/wiki/How-to-fix-the-error-invalid-or-negative-modification-date
Sorry @szaimen, but why is this closed? The script does not seem to address the problem when the iOS client uploads photos to NC.
Same problem here since 22.2.9 !
This is still an issue in 22/10 for some reason. iOS client.
Still an issue on NC 25.0.1 Can we please reopen this issue ?
Signal app dose backups into nextcloud Android app dir and everytime it creates the backups this error is triggered.
{"reqId":"u0zADMX60n9vV7B3ZLLu","level":3,"time":"2022-12-07T10:26:17-06:00","remoteAddr":"7.9.5.1","user":"axheli","app":"webdav","method":"PUT","url":"/remote.php/dav/files/axheli/Documents/Backups/.backup492a7f0e-b1b4-4b21-9829-4175b963923b.tmp","message":"X-OC-MTime header must be a valid positive integer","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.23.0","version":"25.0.1.1","exception":{"Exception":"InvalidArgumentException","Message":"X-OC-MTime header must be a valid positive integer","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":424,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\MtimeSanitizer","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":378,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":151,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":171,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/MtimeSanitizer.php","Line":37,"message":"X-OC-MTime header must be a valid positive integer","exception":[],"CustomMessage":"X-OC-MTime header must be a valid positive integer"},"id":"6390beaf5f115"}
I'm having the same issue with iOS app and a fresh install of latest server version.
I'm having this issue on a fresh install of Nextcloud Docker on Ubuntu Server 22.04 and iOS/iPadOS 16.2. Additionally, none of the time/date stamps on my uploaded photos are correct. I created a new user account to test and the problem persists.
I'm having the same issue with iOS app and a fresh install of latest server version.
Ditto. Just installed nextcloud AIO docker last night and the iOS app. All files transferred but one that is giving me this error.
Problem persists on next cloud iOS app Mar 2023.
Please report this to https://github.com/nextcloud/ios/issues
It's not just iOS - I've had it on Desktop for months, so barely using Nextcloud any more as more and more files just won't sync.
Was 6 to start with. Over 70 now, and these are old files that just stop syncing one day.
------ Original Message ------ From "Simon L." @.> To "nextcloud/server" @.> Cc "platima" @.>; "Comment" @.> Date 19/03/2023 8:27:58 AM Subject Re: [nextcloud/server] [Bug]: InvalidArgumentException: X-OC-MTime header must be a valid positive integer (Issue #31464)
Please report this to https://github.com/nextcloud/ios/issues
— Reply to this email directly, view it on GitHub https://github.com/nextcloud/server/issues/31464#issuecomment-1475046585, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIYAQENDXAI2QKJHYDQIOTW4ZHI5ANCNFSM5P7EQ6NQ. You are receiving this because you commented.Message ID: @.***>
Please report this to https://github.com/nextcloud/ios/issues
Also having this issue. Created https://github.com/nextcloud/ios/issues/2390
@whitephoenix117 I noticed your 2390 was closed, not sure if the problem was actually fixed, because I've still got it with the iOS app.
@szaimen it seems an awful lot of folks still have this issue and it isn't isolated to one client. My photos used to sync with no problem and stopped about a year ago, similar timing to this ticket.
https://github.com/nextcloud/desktop/wiki/How-to-fix-the-error-invalid-or-negative-modification-date isn't super helpful in my case, although I'm certain it has helped others, because this appears to address issues in the NC database, rather than files themselves.
Is it possible that these clients aren't seeing a X-OC-MTime information so the corresponding header value is 0, null, or just not there? In that case, it looks like a great candidate to just ignore this or set it to some value indexed from another header.
@whitephoenix117 I noticed your 2390 was closed, not sure if the problem was actually fixed, because I've still got it with the iOS app.
I no longer have the iOS device so i don't know if it's actually fixed
Still there, bulk upload from iOS Leads to tons of errors, i.e. unsynced photos. I see it only for photos, though.
hello, I am having the same issue when transferring files from Google Drive to Nextcloud (v27.1.7) using rclone (v1.66). My Nextcloud is hosted on a Debian Bookworm behind Nginx. I can provide more logs or perform some tests if needed.
29.0.3 with windows client 3.13.1
{"reqId":"vX5BLR8uJlWJybtny52Q","level":3,"time":"2024-07-06T16:00:01+00:00","remoteAddr":"10.29.9.10","user":"smieci","app":"webdav","method":"PUT","url":"/remote.php/dav/files/smieci/dell/AppData/Roaming/Microsoft/InputMethod/Chs/ChsPinyinEUDP_RoamUp.lex","message":"X-OC-MTime header must be a valid positive integer","userAgent":"Mozilla/5.0 (Windows) mirall/3.13.1stable-Win64 (build 20240701) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"29.0.3.4","exception":{"Exception":"InvalidArgumentException","Message":"X-OC-MTime header must be a valid positive integer","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":425,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\MtimeSanitizer","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":383,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":148,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":379,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/MtimeSanitizer.php","Line":37,"message":"X-OC-MTime header must be a valid positive integer","exception":[],"CustomMessage":"X-OC-MTime header must be a valid positive integer"},"id":"668a985c3618c"}
⚠️ This issue respects the following points: ⚠️
Bug description
Today I had opened my Nextcloud Windows Desktop app and found that there were a ton of errors coming up relating to the modified time stamp of files. It doesn't seem to matter what type of file, as I'm seeing this for jpg, psd, ai, pdf, js, you name it...
Desktop app version 3.3.6... however, this is the same behavior up to 3.4.3. (I reverted back to 3.3.6 after finding that there may be some issues with the desktop app, but think they may be misguided about the source of the issue.) Desktop app errors:
"Server replied '500 Internal Server Error' to 'PUT https://cloud.[domain].com/remote.php/dav/files/[user]....file.ext' (X-OC-MTime header must be a valid positive integer)."
When I look at the Nextcloud server logging, I see the following types of errors just scrolling past like a waterfall:
[webdav] Fatal: X-OC-MTime header must be a valid positive integer. PUT /remote.php/dav/files/[user]/aWeb/Project%2024%20Timeline.docx from 10.0.10.1 by [user] at 2022-03-05T03:37:54+00:00
I just updated the official Docker image to be running Nextcloud Hub II (23.0.2) after seeing these issues and they still persist. It seems that because of these errors, the uploads are taking a VERY long time, if they complete at all.
Please note, the server logs posted below are not complete. I had not thought about setting up any sort of log rotate. As such, they span back nearly six months with errors of various things that I've resolved over time. I have attached a smaller section of the logs that most accurately reflect the issues I am seeing right now instead of posting them in the body of the issue. GitHub is restricting body length to 65536 characters. Nextcloud Server Errors.txt
Steps to reproduce
Expected behavior
I should be seeing regular progress in my desktop app and in my server logging, instead of having hundreds of thousands of errors.
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response