Nextcloud version 17.0.3
Operating system and version Debian 9
Apache or nginx version Apache 2.4.25)
PHP version 7.3
The issue you are facing:
loggin to Roundcube webmail, I aspect to find my address book, imported from NC, as usual.
Instead, the address book result empty.
Is this the first time you’ve seen this error?:
Only after upgrade, before all was fine
Steps to replicate it:
- Login to webmail Roundcube
- Go to Address Book
- I note that the address book is empty
The output of your Nextcloud log in Admin > Logging:
{"reqId":"XkuxoX8AAQEAAHU347YAAAAK","level":2,"time":"2020-02-18T09:43:22+00:00","remoteAddr":"1.234.567.89","user":"--","app":"core","method":"PROPFIND","url":"/cloud/remote.php/dav/addressbooks/users/user@example.org/contacts/","message":"Login failed: 'user@example.org' (Remote IP: '2.345.678.90')","userAgent":"RCM CardDAV plugin/3.0.3","version":"17.0.3.1","id":"5e4bb1bc2d675"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '123455678',
'passwordsalt' => '123456789012345678901234567890',
'secret' => 'HGODFR/1235128238359000444394848458+',
'trusted_domains' =>
array (
0 => 'server.example.org',
1 => 'example.org',
2 => 'www.example.org',
),
'datadirectory' => '/var/www/nextcloud/public_html/data',
'dbtype' => 'mysql',
'version' => '17.0.3.1',
'overwrite.cli.url' => 'https://server.example.org/cloud',
'dbname' => 'next_example',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'ncexample',
'dbpassword' => '12345678901234456678990',
'installed' => true,
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_from_address' => 'example',
'mail_smtpmode' => 'sendmail',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'example.org',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.example.org',
'mail_smtpsecure' => 'tls',
'mail_smtpport' => '587',
'mail_smtpname' => 'example@example.org',
'mail_smtppassword' => '12345678910',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'theme' => '',
'loglevel' => 2,
'updater.release.channel' => 'stable',
'updater.secret' => '123456789001234566789012334556678900.',
'app_install_overwrite' =>
array (
0 => 'deck',
),
);
The output of your Apache log:
[Tue Feb 18 09:55:14.209603 2020] [authz_core:error] [pid 29902] [client mylocalIP:57519] AH01630: client denied by server configuration: /var/www/nextcloud/public_html/data/.ocdata
[Tue Feb 18 10:40:49.663007 2020] [authz_core:error] [pid 30007] [client mylocalIP:57519] AH01630: client denied by server configuration: /var/www/nextcloud/public_html/data/.ocdata
[Tue Feb 18 10:41:33.483029 2020] [authz_core:error] [pid 30414] [client mylocalIP:57536] AH01630: client denied by server configuration: /var/www/nextcloud/public_html/data/.ocdata
Hi Friends,
I’ve installed the Michael Stilkerich Roundcube Address-Book plugin, all was fine before upgrading NC and PHP from 7.0 to 7.3.
Now obtain an authentication error to DAV address book, as highlighted above in the logs.
On the same NC instance there are also shared files and notes managed by the specific app, with no login issue, so one possibility is that the problem is related to the generation of the username from the plugin configuration or by admin two factory authentication (disabled now), but I’m not sure at all, here the plugin config:
// When enabled, this option hides the 'CardDAV' section inside Preferences.
$prefs['_GLOBAL']['hide_preferences'] = false;
// Scheme for storing the CardDAV passwords, in order from least to best security.
// Options:
// plain: store as plaintext
// base64: store encoded with base64 (default)
// des_key: store encrypted with global des_key of roundcube
// encrypted: store encrypted with IMAP password of the user
// NOTE: if the IMAP password of the user changes, the stored
// CardDAV passwords cannot be decrypted anymore and the user
// needs to reenter them.
$prefs['_GLOBAL']['pwstore_scheme'] = 'encrypted';
// Allow suppression of the warning that PHP is too old.
//
// If true, the PHP version is not checked. Use at own risk.
// If false, the PHP version is checked and RCMCardDAV will not run if it is
// too old.
$prefs['_GLOBAL']['suppress_version_warning'] = false;
// Enable a workaround for broken sync-collection support in the
// server. RFC 6578 specifies the "sync-collection" method for
// synchronizing collections of things over WebDAV. It is more
// efficient -- but also more complicated -- than simply retrieving
// the whole collection again as necessary. As a result, some server
// implementations are buggy. Specifically DAViCal and Radicale are
// known to have problems. If changes (updates, deletions) from one
// connection do not sync to another, you can try enabling this
// workaround to revert to the inefficient-but-simple method.
$prefs['_GLOBAL']['sync_collection_workaround'] = false;
//// Preset 1: Personal
$prefs['Cloud'] = array(
// required attributes
'name' => 'Cloud',
// will be substituted for the roundcube username
'username' => '%u',
// will be substituted for the roundcube password
'password' => '%p',
// %u will be substituted for the CardDAV username
'url' => 'https://www.example.org:443/cloud/remote.php/dav/addressbooks/users/%u/contacts/',
'active' => true,
'readonly' => false,
'refresh_time' => '02:00:00',
'fixed' => array( 'username' ),
'hide' => false,
);
Thanks for your help!!
Davide