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
Addressbook syncronization with KDE KAddressbook #7654
Comments
Could you post the nextcloud log entry, because it contains more information? Could also be related to sabre-io/dav#952 |
And #4640 |
i added the nexcloud log into the original post |
cc @blizzz @jospoortvliet Do you also have those issues? |
cc @georgehrke @rullzer for the DAV stuff |
I am not using KDEPIM, sorry. Would need to setup a VM. |
I use it, in the sense that it is set up, but I don't check it... But, as it syncs, the error should be in our company logs I suppose. |
don't see anything like it |
Looked in my private server, didn't see something like it either... And I can see my address book. |
verified now on my old KDE deskptop running KAddressBook Version 5.1.3 the error log is the same, but all contact get synchronized! So i guess that the new version in Kubuntu 17.10 running KAdressBook 5.5.3 is the main problem or is maybe not able to deal with some responds coming from nextcloud? |
@kreutpet Maybe the problem is with a special contact. Maybe you try to export your address book, setup a separate account and import contact by contact and check when the error happens. |
yes, this is a good idea and i will do this in the next days. |
yes, this is a good idea and i will do this in the next days. is this maybe also related to this message |
i tried with a single contact. get the same error and contact is not synchronizing |
I changed now my apache configuration an added the
still i do get the NotAuthenticated message |
i am stucked with that issue.
what can i do to trace the issue to the right root cause. thx |
@kreutpet can you share (after anonymizing) the contact? Perhaps Jos could check whether this is reproducible. |
verified again. in the log i do get a lot of these messages
the single contact does not get synced |
very strange. it looks like for each contact a authentication is done. For some the authentication works and for some not. Can this be related to the brute force protection? |
Not if the credentials are valid |
Hi there, i found this bug and it helped me to get around the same issue. Thats what i did:
So my conclusion is that there must be something wrong with (my very old) contacts in nextcloud, so that Kontact could not sync. Importing vcf to Kontact and resync was no problem. Using Kubuntu17.1 with KDE Kontact 5.5.3 and nextcloud 12.0.4 Hope this provides some help. Bye |
many many thanks. i will try to keep an eye on the future sync of changes and new contact. |
many many thanks. i will try to keep an eye on the future sync of changes and new contact. update: the error message in the log are still coming. |
Hi there, i can confirm that there is still something wrong. It seems to me that the ContactApp in Nextcloud is not working properly: when i create a contact in KDE Kontact it is working fine. Its is synced to nextcloud and i can view it there. The other way round it doesnt work: When i create or change a contact in the Nextcloud Contact App it isnt synced to KDE Kontact. Following Message appears when creating a contact: `
`
When i delete this contact its ok again. So i face no problems as long as i don use the nextcloud contact app. But i don use it very often. I had to because i set up my new laptop with KDE Kontact and faced the line 56 issue. Anything else i can test or post here to get things fixed? I am german so my written english probably isn't that good to understand. So ask if something is unclear. Cheers |
I have the same error.
|
Probably about dealing with broken VCards... There are a lot of little things that can break the vcard handling of Nextcloud, sadly - and fixing them all would be a lot of work. Help welcome :D |
This bug still persist with KAddressBook 5.7.2 and Nextcloud 13.0.4 {"reqId":"fTcAQQ8gmAsBnDv3Kuld",
"level":3,
"time":"2018-07-20T11:22:59+02:00",
"remoteAddr":"192.168.88.1",
"user":"hook",
"app":"PHP",
"method":"REPORT",
"url":"\/remote.php\/dav\/addressbooks\/users\/hook\/contacts\/",
"message":"Undefined index: name at \/srv\/thatfunkyplace.wheremymonkeyis.at\/3rdparty\/sabre\/dav\/lib\/CardDAV\/Xml\/Filter\/AddressData.php#56",
"userAgent":"Mozilla\/5.0 (X11; Linux x86_64) KHTML\/5.43.0 (like Gecko) Konqueror\/5 KIO\/5.43",
"version":"13.0.4.0"} |
We have to figure out what exactly it is in the vcard that breaks the server handling. Or the local Kontact handling, of course, as vcards that work on the server don't work in Kontact. |
@jospoortvliet Any way I could help? |
@silverhook well, I don't really know where to begin myself, this is not my expertise... If you know how to fiddle in the database perhaps you can look and find differences, or even modify cards until it works to identify what the problem is. Can be anything, I mean, from an utf8 character to a unknown field... 😭 |
@jospoortvliet By faaaaar not my expertise, but since I suffer the issue, I would be glad to help out anyone who is knowledgable. |
Sorry, I am afraid I just can't tell you what to do, other than the high level 'you have to find out what it is in the vcard that breaks it'. I would personally start looking in the log to see what vcard it is related to, then download/extract it (they are just text files after all) and try to modify it, import it, and see if that syncs until you find out what line is problematic. Sorry, not easy and a lot of work but it would probably result in finding the cause and making it possible to fix it. |
The Logs do not mentions which VCard this fails for... so pointing everyone to the logs is quite useless i think. I am not sure where the problem is.... This is the offending code:
So the data array $element is missing a 'name' field.... for ONE of the elements of the array $elems. This is in the "static function xmlDeserialize(Reader $reader) {" IMHO this code is overly optimistic about the data being valid (at least that the name field has been filled). (which would be a problem with Sabre) or it is a requirement that is not met in the data passed during a sync FROM nextcloud -> something else. |
Further reading in SABRE github learns: sabre-io/dav#1017 |
Request to update the sabre toolkit regularly or at least import the above commit... |
@georgehrke @nickvergessen @rullzer @icewind1991 Patch seems to be in nextcloud/3rdparty#138 |
Steps to reproduce
1.add a new addressbook in KAddressbook (Kontact 5.5.3) choosing DAV groupware
2.choose the owncloud type of groupware server
3.test successfully the connection
4.check list of contact in the new addressbook. Not all contact are listed.
5. open log in nextcloud with admin account and new ERROR listed
Undefined index: name at /var/www/cloud/3rdparty/sabre/dav/lib/CardDAV/Xml/Filter/AddressData.php#56
maybe is related to this issue
sabre-io/dav#1017
Expected behaviour
All contacts should be listed including the complete set of information within the contacts.
error message in log should indicate which contact is creating the issue.
Actual behaviour
not all contact are syncronized to KDE Kadressbook
out of 75 on 8 are synced and these do not contain addresses
Server configuration
Operating system:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Web server:
apachectl -V
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2017-09-18T15:09:02
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 14.14 Distrib 5.7.20, for Linux (x86_64) using EditLine wrapper
PHP version:
php --version
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
Nextcloud version: (see Nextcloud admin page)
12.0.4 stable
Updated from an older Nextcloud/ownCloud or fresh install:
updated from version 9 -> 10 ->11 and then 12
Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
Enabled: - activity: 2.5.2 - admin_audit: 1.2.0 - audioplayer: 2.2.2 - bookmarks: 0.10.1 - bruteforcesettings: 1.0.3 - calendar: 1.5.7 - comments: 1.2.0 - contacts: 2.0.1 - dav: 1.3.0 - documents: 0.16.0 - federatedfilesharing: 1.2.0 - federation: 1.2.0 - files: 1.7.2 - files_external: 1.3.0 - files_pdfviewer: 1.1.1 - files_retention: 1.1.2 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - files_videoplayer: 1.1.0 - firstrunwizard: 2.1 - gallery: 17.0.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - mail: 0.7.6 - music: 0.5.5 - nextcloud_announcements: 1.1 - notes: 2.3.2 - notifications: true - oauth2: 1.0.5 - onlyoffice: 1.1.6 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - serverinfo: 1.2.0 - sharebymail: 1.2.0 - survey_client: 1.0.0 - systemtags: 1.2.0 - tasks: 0.9.5 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - workflowengine: 1.2.0 Disabled: - encryption - user_external - user_ldapNextcloud configuration:
Config report
{ "system": { "instanceid": "oc8tlek3t7l6", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "192.168.1.10" ], "datadirectory": "\/var\/www\/cloud\/data", "overwrite.cli.url": "https:\/\/192.168.1.10\/cloud", "htaccess.RewriteBase": "\/cloud", "dbtype": "mysql", "version": "12.0.4.3", "installed": true, "theme": "", "maintenance": false, "trashbin_retention_obligation": "auto", "dbname": "owncloud", "dbhost": "127.0.0.1", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "log_type": "file", "logfile": "\/var\/log\/cloud.log", "loglevel": 2, "mail_from_address": "", "mail_smtpmode": "smtp", "mail_domain": "", "memcache.local": "\\OC\\Memcache\\APCu", "appstore.experimental.enabled": true, "updatechecker": false, "updater.release.channel": "stable", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "smtp.gmail.com", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "ssl", "updater.secret": "***REMOVED SENSITIVE VALUE***" } }Are you using external storage, if yes which one: local/smb/sftp/...
yes google drive
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Browser:
firefox 57.0.3 (64-Bit)
Operating system:
ubuntu 17.10
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: