-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: InvalidArgumentException: X-OC-MTime header must be a valid positive integer #31464
Comments
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 |
I am having the same problem:
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.
|
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. |
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.
|
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. |
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
<#31464 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADIYAQENDXAI2QKJHYDQIOTW4ZHI5ANCNFSM5P7EQ6NQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Also having this issue. Created nextcloud/ios#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. |
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
|
I have the same problem in android, I noticed that the time is not correct, I've had this error for a few days now and today I noticed the time was wrong on my desktop, I checked the time on the server and everything is fine there I displayed the date via PHP and it is incorrect date in terminal [webdav] Ошибка: X-OC-MTime header must be a valid positive integer this is the same error in a different format { |
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
docker exec -it -u www-data nextcloud_app php occ app:list Enabled: - admin_audit: 1.13.0 - bruteforcesettings: 2.3.0 - calendar: 3.0.6 - cloud_federation_api: 1.6.0 - dashboard: 7.3.0 - dav: 1.21.0 - extract: 1.3.3 - federatedfilesharing: 1.13.0 - files: 1.18.0 - files_pdfviewer: 2.4.0 - files_rightclick: 1.2.0 - files_sharing: 1.15.0 - files_texteditor: 2.14.0 - files_trashbin: 1.13.0 - files_versions: 1.16.0 - files_videoplayer: 1.12.0 - geoblocker: 0.5.4 - logreader: 2.8.0 - lookup_server_connector: 1.11.0 - notes: 4.3.0 - notifications: 2.11.1 - oauth2: 1.11.0 - password_policy: 1.13.0 - photos: 1.5.0 - provisioning_api: 1.13.0 - quota_warning: 1.13.0 - ransomware_protection: 1.12.0 - serverinfo: 1.13.0 - settings: 1.5.0 - suspicious_login: 4.1.0 - twofactor_admin: 3.2.0 - twofactor_backupcodes: 1.12.0 - twofactor_email: 2.1.1 - twofactor_nextcloud_notification: 3.3.1 - twofactor_totp: 6.2.0 - viewer: 1.7.0 - webapppassword: 21.12.0 - workflowengine: 2.5.0 Disabled: - accessibility: 1.8.0 - activity: 2.15.0 - circles: 22.1.1 - comments: 1.12.0 - contactsinteraction: 1.3.0 - encryption - federation: 1.12.0 - files_antivirus: 3.2.2 - files_external - files_fulltextsearch: 23.0.0 - files_trackdownloads: 1.11.0 - firstrunwizard: 2.11.0 - fulltextsearch: 23.0.0 - nextcloud_announcements: 1.11.0 - privacy: 1.6.0 - recommendations: 1.1.0 - sharebymail: 1.13.0 - support: 1.5.0 - survey_client: 1.10.0 - systemtags: 1.12.0 - text: 3.3.0 - theming: 1.13.0 - updatenotification: 1.12.0 - user_ldap - user_status: 1.2.0 - weather_status: 1.2.0
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: