-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
PostgreSQL => MySQL db:convert-type with calendar/contacts #3179
Comments
I can confirm this is still occurring on Nextcloud 11. Logs not attached because they're almost exactly the same as @daishi's Server configurationOperating system:Debian GNU/Linux 8.7 (jessie) Web server:apache2: 2.4.10-10+deb8u7 Database:postgresql: 9.4+165+deb8u2 PHP version:libapache2-mod-php5: 5.6.30+dfsg-0+deb8u1 Nextcloud version: (see Nextcloud admin page)11.0.1.2 Updated from an older Nextcloud/ownCloud or fresh install:Updated from Nextcloud 10 Where did you install Nextcloud from:bz2 package from NC website EDIT: I've been able to restore my contacts and calendars by deleting the relating rows in the new DB and then restoring from ics/vcf. SQL below:
|
I just tested conversion from sqlite -> postgres -> mysql -> postgres -> mysql Since you seem to already have fixed the problem, I will close this issue until it happens for a second user as well. |
@nickvergessen, the issue was reported by both @danielcotton and me. It sounds to me like @danielcotton worked around the issue by manually removing the DB rows and importing the data from ICS files. When you tested the conversion how much calendar and contact data did you have in your installation? |
Maybe I had still #4071 checked out. It should help to solve this issue too. Can you try it? |
Steps to reproduce
Expected behaviour
Contacts and calendar entries should be converted/transferred to MySQL.
Actual behaviour
Contacts and calendars are not correctly migrated.
nextcloud.log
contains (truncated, more complete version pasted below):Inspecting in the converted MySQL database I see:
A similar inspection in the original PostgreSQL installation shows actual calendar data.
Server configuration
Operating system:
Debian GNU/Linux 7.11 (wheezy)
Web server:
apache2: 2.2.22-13+deb7u7
Database:
postgresql: 9.1+134wheezy4
mysql: 10.1.20+maria-1~jessie (running in docker)
PHP version:
libapache2-mod-php5: 5.4.45-0+deb7u6
Nextcloud version: (see Nextcloud admin page)
10.0.1.
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from ownCloud (incrementally since v6 or v7, I don't remember)
Where did you install Nextcloud from:
Previously from .deb provided by owncloud. Now from the nextcloud-provided .zip.
Signing status:
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
This is the original PostgreSQL configuration.
Are you using external storage, if yes which one: local
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser:
Chrome
Operating system:
Logs
Web server error log
Web server error log
``` Insert your webserver log here ```Nextcloud log (data/nextcloud.log)
Nextcloud log
``` {"reqId":"F232wjooymJEr73NESwi","remoteAddr":"50.152.147.22","app":"webdav","message":"Exception: {\"Message\":\"This parser only supports VCARD and VCALENDAR files\",\"Exception\":\"Sabre\\\\VObject\\\\ParseException\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/vobject\\\/lib\\\/Parser\\\/MimeDir.php(63): Sabre\\\\VObject\\\\Parser\\\\MimeDir->parseDocument()\\n#1 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/vobject\\\/lib\\\/Reader.php(44): Sabre\\\\VObject\\\\Parser\\\\MimeDir->parse('Resource id #13...', 0)\\n#2 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/CalDAV\\\/Backend\\\/AbstractBackend.php(142): Sabre\\\\VObject\\\\Reader::read('Resource id #13...')\\n#3 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/apps\\\/dav\\\/lib\\\/CalDAV\\\/CalDavBackend.php(819): Sabre\\\\CalDAV\\\\Backend\\\\AbstractBackend->validateFilterForObject(Array, Array)\\n#4 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/apps\\\/dav\\\/lib\\\/CalDAV\\\/Calendar.php(229): OCA\\\\DAV\\\\CalDAV\\\\CalDavBackend->calendarQuery('3', Array)\\n#5 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/CalDAV\\\/Plugin.php(600): OCA\\\\DAV\\\\CalDAV\\\\Calendar->calendarQuery(Array)\\n#6 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/CalDAV\\\/Plugin.php(236): Sabre\\\\CalDAV\\\\Plugin->calendarQueryReport(Object(Sabre\\\\CalDAV\\\\Xml\\\\Request\\\\CalendarQueryReport))\\n#7 [internal function]: Sabre\\\\CalDAV\\\\Plugin->report('{urn:ietf:param...', Object(Sabre\\\\CalDAV\\\\Xml\\\\Request\\\\CalendarQueryReport), 'calendars\\\/daish...')\\n#8 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#9 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(716): Sabre\\\\Event\\\\EventEmitter->emit('report', Array)\\n#10 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpReport(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#11 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#12 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:REPORT', Array)\\n#13 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#14 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/apps\\\/dav\\\/lib\\\/Server.php(184): Sabre\\\\DAV\\\\Server->exec()\\n#15 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(30): OCA\\\\DAV\\\\Server->exec()\\n#16 \\\/var\\\/www\\\/nextcloud-10.0.1\\\/remote.php(165): require_once('\\\/var\\\/www\\\/nextcl...')\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud-10.0.1\\\/3rdparty\\\/sabre\\\/vobject\\\/lib\\\/Parser\\\/MimeDir.php\",\"Line\":125,\"User\":\"daishi\"}","level":4,"time":"2017-01-19T01:41:17+00:00","method":"REPORT","url":"\/remote.php\/dav\/calendars\/daishi\/personal_shared_by_deborah\/","user":"daishi"} ```Browser log
Browser log
``` Insert your browser log here, this could for example include:a) The javascript console log
b) The network log
c) ...
The text was updated successfully, but these errors were encountered: