-
Notifications
You must be signed in to change notification settings - Fork 336
Error message Invalid VObject. Document ended prematurely. #687
Comments
I have this same issue for all actions from iCal (OSX 10.8). Adding, changing, deleting events or agendas in the webapp works fine and correctly sync to iCal, but upstream from iCal to webapp results in the following errors. owncloud.log: {"app":"vobject","message":"Invalid VObject. Document ended prematurely.","level":3,"time":1372693568}
{"app":"PHP","message":"Call to a member function serialize() on a non-object at \/var\/www\/owncloud\/apps\/calendar\/lib\/sabre\/backend.php#272","level":4,"time":1372693568} iCal error: Server response 500
My specs: iCal v6.0 |
I'm afraid I experience the same error message here:
ownCloud 5.0.9 I guess this is the reason for my syncing problems between Android (via CalDavSync) and ownCloud for one particular calendar. From http logs I can see the following:
This appeared the first time on 2013-07-22 01:51. ownCloud 5.0.9 has been installed two days before and between 2013-07-20 and 2013-07-22 I had no problems. |
Can you verify this patch? |
I tried your patch but I still get the sync errors and the HTTP 500 in my apache log. But I don't get the serialized error message in ${owncloud_data}/owncloud.log every time. But - and that's good news - I solved my issue. It was caused by an invalid calendar entry in oc_clndr_objects. The entry was (sql-exported format):
I wondered about that summary "D". But then I remembered that it should have been created by an .ICS-file provided by Deutsche Bahn which I uploaded to my ownCloud and tried to import it from there:
Because the summary ends after the initial D, I suspected the umlauts to be responsible for the incomplete import. I replaced the umlauts with vowels:
The corrected version uploads and imports flawlessly and syncing works afterwards as apache log shows:
I don't know if umlauts have to be encoded within .ICS-files but my problem obviously shows two issues with ownCloud:
|
the first issue is something that has to be fixed. |
I know about Linux, Apache, MySQL and PHP so I can run my own ownCloud instance but I have no clue about the internals of ownCloud. If I can contribute that way, I'll be happy to verify the issue with increasing the ctag but please give me at least a hint what it will be used for (just for curiosity as I could not find the proper ownCloud documentation) and what value to choose. Should I just increase by 1 or increase ctag to be the highest value? In my case the calendar with the second highest ctag value was affected. I have a feeling that the ctag value might be related to the number of events stored in that calendar but this is only a wild guess. |
You have to increase it by one. This shows the client that something changed and that it has to update |
nope, doesn't help with increase ctag |
Hi, I'm having the same problem using ownCloud 5.0.10. I hope this will be fixed soon, as the whole calendar can't be loaded with Thunderbird's Lightning as soon as there's at least one Calendar Item with the UTF-8/encoding problem (which is the same problem with the Deutsche Bahn .ics files, I think). As far as I'm able to, I'll investigate further on this and will report updates here. |
Got the same error. A workaround was export the calendar and reimport the ics. |
cc @evert |
If there's a vobject bug, please open a ticket at https://github.com/fruux/sabre-vobject with a simple script to reproduce this issue and which version this problem occurred. |
I’m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version. Please reopen if you still encounter this issue with the latest stable version and the ownCloud 6 beta. Then please use the issue template and note the Calendar issue tracker moved to http://github.com/owncloud/calendar/issues. You can also contribute directly by providing a patch – see the developer manual. :) Thank you! |
@jancborchardt It's not fixed!!! I have ownCloud 7.0.4 (stable) + a lot of entries with: My problem is, that the Calendar sync seems to work flawless with OSX Yosemite and iOS 8. I have no clue how to reproduce, which of my thousands entries is the problem. |
@JimLoose first, sorry for the problems. Can you open a new issue in the Calendar issue tracker and use the issue template to supply the needed info? Thanks! |
@jancborchardt |
Yes I agree this error occured for us last Friday and is not fixed. I am still trying to gather information on the error but its probably a corruption in a calendar database - which resulted in the database being not syncable from CalDav clients (web access was OK) - giving the document premature end message - very bad. I was running on a shared host so have only found a HTTP log file so far which does not show the error. Wish there were more diagnostic tools within Owncloud itself, and tools to "clean up" or repair a broken database. We have since switched away from OwnCloud until I can figure out what happened, and hopefully open a bug report. Too bad after a month of trialing OwnCloud, we liked it. |
@joefidler This error means that the calendar-data itself is broken. If you enable the debug mode you'll get more information including the id of the object so you can check what's broken with the calendar-data EDIT: * calendar-data of a certain object |
Thanks @georgehrke for the reponse. Unfortunately I deleted the OwnCloud instance and created a new one trying to get things working again. The only thing I have left of the failed OwnCloud is the MySQL database itself. I tried poking around in that with phpMyAdmin but really have no idea how to look at data with that tool. The only hard information I have was that the most effected data was a Tasks calendar database - using the third-party tasks app (https://apps.owncloud.com/content/show.php/Tasks?content=164356). This database was accessed from the Android CalDav Tasks app (https://play.google.com/store/apps/details?id=org.dmfs.tasks&hl=en). When this tasks data was lost it also effected CalDav access to the calendar associated with it, but I was still able to access this (and download it) via the web. I have no other logs etc to analyse, the tasks calendar database was completely lost. Its possible that this error was caused by the Tasks app + CalDav Sync on Android - and its their bug - or there was some data loss over the network connection. But for me the bottom line is that a corruption in data should not cause a crashed, unusable, lost database on the OwnCloud server side. That seems like its not only a reliabity issue but maybe even a potential security issue. |
The whole database is not lost. It's an error message, that's supposed to tell you that certain events are broken. The calendar is (/ should) still be accessible, even though it contains broken data. |
Agreed the data is still in the database, but after we saw the Invalid Object message we could no longer access that Tasks data by any method. The tasks data from that calendar no longer displayed on the web client and gave errors to the CavDav clients. Other calenders and tasks lists were still accesible. I also could not export the data - to recreate a new calendar, so for us that portion (agreed not the whole) of the database was lost. |
That's a bug in task app and not directly related to the calendar, please report a bug there.
That seems to be a bug in the calendar. please report a new bug in the calendar repo using the issue template jan mentioned above |
Agreed there is probably a bug in the task app which caused the problem which I will try to followup there. Will also to try and find the broken data in the calendar data and post and an issue report for that. |
i bet we have attachments or geolocation or comments in the original imported mac os calendar (which supports all that) |
we also support all that. |
OS X + iCloud works flawless |
There might still be an issue with 4-byte unicode chars, although I was sure a fix was merged in core ... |
For what its worth we use (used) a mix of Android (4.4.4) with CalDAV, and Linux (OpenSUSE) with Thunderbird and SoGo connector for clients. No OS X. |
could somebody please reopen this bug, until we have a better bugreport? |
To test things I uploaded an exported copy of the "broken" calendar to a fresh OwnCloud database. No calendar data including tasks was lost, and I could not find any funny chars or corrupted data etc. The fact that I was able to restore all the data from the tasks list was surprising - the failed database was functional enough to export an intact ics file. |
Same issue here; maybe the problem of not being unable to share my calendar has is to be credited back to this issue. |
please try to gather as many information about the broken calendar-data as possible. Just saying that you have the same issue doesn't really help if you don't provide example data. |
Well of course I will; I just need someone to point out how to find out which vobject id causes the problem (c.f. the reference above my post) |
enable the debug mode and use the calendar. Some debug notices with information about the id should be logged |
I did (set log level to 0). This is the log:
|
Could somebody please reopen this issue? |
I am also having a similar issue with Owncloud 8.1. @georgehrke: your link to the new issue is broken, could you please post the correct one? |
Well, you asked, here it is: https://github.com/owncloudarchive/calendar/issues/680 But it won't be of much help, because every version of the calendar app prior to ownCloud 9 is unsupported and there won't be any bugfix releases. |
Working with owncloud 8.2, I had the same issue. The error appears with one of my 5 calendars. The calendar still works with the owncloud web-interface. So I looked on the table in the mysql database. I found only one event which were created on the day before. So I deleted it with phpmyadmin and after that, it worked again. The event was created with miCal on iOS 10. The event is in September 2018 and now we have February 2017. |
@Quantentunnel did that event have a syntax error in it ? From what I heard, future versions of OC (and Sabre library) will be more robust in regards to syntax errors. |
@PVince81 But now 24 hours later the same error occurs again. Now I am trying to upgrade from 8.2 to 9.0. I don´t know why but nearly every owncloud update and upgrade crashed. My only plugin is the calendar. So I guess this will happen again and I need some time until I give you more feedback and tell you if the upgrade was/is the solution. |
The upgrade from 8.2 over 9.0 to 9.1 works quicker than I expected. Only one error after the upgrade: owncloud/calendar#771 Currently it is working. Let´s see what will happen in 24 hours. I keep you informed. |
Nearly 24 hours later, the calendar still works! The solution seems to be:
|
While using the owncloud calendar I get this error message after entering a new date to a calender:
Invalid VObject. Document ended prematurely.
It does not matter if I enter the new date within the owncloud web interface or with a calender app on iPhone using caldav sync.
The entry is made in the DB table oc_calendar_objects correctly. If I add a new date to a different calender there will be no problems. The date is added correctly. I cannot solve the problem by creating a new calender and add a date to this new calender.
Owncloud version: 4.5.7
DB: MySQL on Linux Apache
PHP version: 5.3.3
The text was updated successfully, but these errors were encountered: