[Solved] CardBook reports Connection Test Failure

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 14.0.3
Operating system and version (eg, Ubuntu 17.04): Alpine Linux 3.8
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.14.0
PHP version (eg, 7.1): 7.2.11

The issue you are facing:
I want to add NC address book in CardBook (Thunderbird) following the instructions in the guide.
However connection test in CardBook fails.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Create app password in user settings -> security
  2. Confirm created user app password
  3. Start connection to NC’s address book using user account + app password

The output of your Nextcloud log in Admin > Logging:

No server logs available

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'DXBA0P/zwcxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'FHn9DNilPSXs0azIC4xuZQw5DDBQxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => '<mydomain>.de',
  ),
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
  ),
  'datadirectory' => '/var/lib/nextcloud/data',
  'logfile' => '/var/log/nextcloud//nextcloud.log',
  'loglevel' => 2,
  'knowledgebaseenabled' => true,
  'check_for_working_htaccess' => false,
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',  
  'overwrite.cli.url' => 'https://<mydomain>.de',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nc',
  'dbpassword' => 'xxxxxxxxxxxx',
  'installed' => true,
  'mail_from_address' => 'admin',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => '<FQHN>',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => '<user>',
  'mail_smtppassword' => '<password>',
  'instanceid' => 'xxxxxxxxxxx',
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0,
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

nothing relevant

The application CardBook is reporting this error:

https://<mydomain>.de/remote.php/dav/addressbooks/users/<account>/contacts/ 
[HTTP/1.1 503 Service Unavailable 31ms]
Kopfzeilen
Antwort
Cookies
Cache-Controlno-store, no-cache, must-revalidateConnectioncloseContent-Security-Policydefault-src 'self'; script-src 'self' 'unsafe-eval' 'nonce-TW8zQ2w1R0dIWmt3SlZ6QVpJNHprMDZoemNtWHVhaHB4QUpOZ1dkZHVXUT06Zjg2SXpxQzBkY3BFVHl1ckh2bDNwRHlRL2Z2RzdNRTZoem9MMFFsdDhnbz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';Content-Typetext/html; charset=UTF-8DateSat, 27 Oct 2018 11:52:21 GMTExpiresThu, 19 Nov 1981 08:52:00 GMTPragmano-cacheServernginxSet-Cookie__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=laxSet-Cookie__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strictStrict-Transport-Securitymax-age=15768000Transfer-EncodingchunkedX-Frame-OptionsSAMEORIGIN
Accept*/*Accept-Encodinggzip, deflate, brAccept-Languagede,en-US;q=0.7,en;q=0.3AuthorizationBasic dGhvbWFzOmlGNEprLTRhTm95LWNQbVJ0LUdkOUtULU5vQ055Connectionkeep-aliveContent-Length128Cookieochentz7kvhd=d620emojeqmq6gutaill01gvo7; oc_sessionPassphrase=b%2Fjbfd%2BuZzAtoQZ0fg6DhdQarpzM8ODB8e6vMmE0E2sMnIvVBeoINsVrfXwKq6zibAzhPUWrENSNF%2FUncQG9UcPcq2oRWRbbQM5toCNIYmjAGn8eUcNh3ul7MXMBrpta; SERVERID=srv03Host<mydomain>.deUser-AgentThunderbird CardBook/32.5 Lightning/6.2.2.1content-typeapplication/xml; charset=utf-8depth1

Please have look here: