[details=“Support intro”]
After having installed NC v20 from scratch, following the recommendations both for installing and also for security, I receive the following warnings when running „Settings >> Overview“ as a NC admin.
„Your web server is not properly set up to resolve “/.well-known/caldav”. Further information …“
A similar warning pops up for “/.well-known/carddav”.
Interestingly I can successfully synchronize all address books and calendars with my Android mobile phone via DAVx5 (v.3.3) by specifying „https://example.com/nextcloud/remote.php/dav/“. There are no problems at all (at least no problems I can see).
I would like to get rid of the two warnings above but I have no clue as where and how to modify NC configuration files to make the warnings disappear forever.
Instead of only telling that the web server is not set up properly it would be extremely helpful if the warnings include some technical details so that an experienced user can fix the „problem“ herself/himself.
To reduce workload on my web server I incorporated the contents of the NC .htaccess file into the VirtualHost configuration for NC. But also when stripping off the .htaccess included stuff from the VirtualHost configuration file again and re-activating the NC .htaccess file in /www/html/nextcloud gives the same results (i.e. the two warnings are displayed).
I cannot find any hints in the related official NC documentation (and also not in the NC forum) to see the cause of the two warnings.
Could you enrich the warnings with pertinent technical information, please?
Machine: Raspberry 4B, Debian Buster 10.7 (Raspbian), Apache 2.4.38, all system software up-to-date (incl. patches). NC version 20.0.4; Calendar and Contact app from NC store.
Contents of NC config.php:
<?php $CONFIG = array ( 'auth.bruteforce.protection.enabled' => 'true', 'instanceid' => 'SENSITIVE INFORMATION REPLACED', 'passwordsalt' => 'SENSITIVE INFORMATION REPLACED', 'secret' => 'SENSITIVE INFORMATION REPLACED', 'trusted_domains' => array ( 0 => 'example.com', 1 => '192.168..x.y', ), 'default_language' => 'de', 'default_locale' => 'de_DE', 'defaultapp' => 'files', 'dbtype' => 'mysql', 'overwrite.cli.url' => 'http://localhost', 'overwritehost' => 'example.com', 'overwritewebroot' => '/nextcloud', 'overwriteprotocol' => 'https', 'datadirectory' => '/var/www/html/nextcloud/data', 'version' => '20.0.4.0', 'dbname' => 'SENSITIVE INFORMATION REPLACED', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'SENSITIVE INFORMATION REPLACED', 'dbpassword' => 'SENSITIVE INFORMATION REPLACED', 'installed' => true, 'log_type' => 'file', 'logfile' => '/var/log/nextcloud.log', 'logfilemode' => '0640', 'loglevel' => '1', 'logdateformat' => 'F d, Y H_i:s', 'memcache.local' => '\\OC\\Memcache\\APCu', 'theme' => '', 'updater.release.channel' => 'stable', 'enabledPreviewProviders' => array ( 0 => 'OC\\Preview\\PNG', 1 => 'OC\\Preview\\JPEG', 2 => 'OC\\Preview\\GIF', 3 => 'OC\\Preview\\BMP', 4 => 'OC\\Preview\\XBitmap', 5 => 'OC\\Preview\\MP3', 6 => 'OC\\Preview\\TXT', 7 => 'OC\\Preview\\MarkDown', 8 => 'OC\\Preview\\PDF', ), 'maintenance' => false, ); **Contents of NC VirtualHost configuration file:** DocumentRoot /var/www/html/nextcloud/ ServerName example.com Alias /nextcloud /var/www/html/nextcloud Require all granted AllowOverride All Options FollowSymLinks MultiViews # Allow GET, HEAD, POST and OPTIONS Require method GET POST OPTIONS # Require a valid user Require valid-user Dav off # Add security and privacy related headers Header always set Referrer-Policy "no-referrer" Header always set X-Content-Type-Options "nosniff" Header always set X-Download-Options "noopen" Header always set X-Frame-Options "SAMEORIGIN" Header always set X-Permitted-Cross-Domain-Policies "none" Header always set X-Robots-Tag "none" Header always set X-XSS-Protection "1; mode=block" SetEnv modHeadersAvailable true **NC .htaccess left untouched (as shipped with NC v20)** **[/details]** Nextcloud version: 20.0.4_: Operating system and version Raspbian (Debian Buster, 10.7) Apache or nginx version: Apache 2.4.38 PHP version _(eg, 7.1)_: 7.3 **NC log file (/var/log/nextcloud.log)** {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:12","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-GelG0xTPEhatJK7lif1QAAAAw","level":1,"time":"January 03, 2021 10_38:14","remoteAddr":"x.y.50.134","user":"NCUSER","app":"no app in context","method":"GET","url":"/nextcloud/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} {"reqId":"X-Gem8D5D3Poh-wEGHJrnQAAAAg","level":3,"time":"January 03, 2021 10_38:19","remoteAddr":"x.y.50.134","user":"NCUSER","app":"core","method":"GET","url":"/nextcloud/index.php/core/preview?fileId=301&c=04e6e0a3287b85e9ed43ca2c2f41c43e&x=250&y=250&forceIcon=0","message":{"Exception":"ImagickException","Message":"attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408","Code":499,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Preview/Bitmap.php","line":87,"function":"readimage","class":"Imagick","type":"->","args":["/var/www/html/nextcloud/data/NCUSER/files/Nextcloud Manual.pdf[0]"]},{"file":"/var/www/html/nextcloud/lib/private/Preview/Bitmap.php","line":50,"function":"getResizedPreview","class":"OC\\Preview\\Bitmap","type":"->","args":["/var/www/html/nextcloud/data/NCUSER/files/Nextcloud Manual.pdf",4096,4096]},{"file":"/var/www/html/nextcloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\Bitmap","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":244,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->","args":[{"__class__":"OC\\Preview\\PDF"},{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":140,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},{"__class__":"OC\\Files\\Node\\File"},"application/pdf",""]},{"file":"/var/www/html/nextcloud/lib/private/Preview/Generator.php","line":109,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":250,"height":250,"crop":true,"mode":"fill"}],"application/pdf"]},{"file":"/var/www/html/nextcloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,true,"fill",null]},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,true,"fill"]},{"file":"/var/www/html/nextcloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,false,false,"fill"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[301,250,250,false,false,"fill"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":308,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/var/www/html/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/nextcloud/lib/private/Preview/Bitmap.php","Line":87,"CustomMessage":"File: /NCUSER/files/Nextcloud Manual.pdf Imagick says:"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"20.0.4.0"} Question: Though not the primary issue of the bug just raised: The NC log file shows a lot of DEPRECATED event types in NC v20. Why? The issue you are facing: Is this the first time you've seen this error? _(Y/N)_: N Steps to replicate it: 1. Install NC v20 from scratch on Raspberry Debian 10 (Apache, PHP7.3; MariaDB) 2. Create addressboks and calendars on NC20 3. Sync them with Android device (DAVx5) The output of your Nextcloud log in **Admin > Logging**: (Extract of "modsec_audit.log). Please note that NC username is represented by "NCUSER", names of addressbooks and calendar s have been anonymized, also the URL of web server. Furthermore IPv4 addresses have been masked in the first two numbers. **Please note**: 1. NC Address books are in directory /nextcloud/remote.php/dav/addressbooks/**users**/NCUSER 2. NC Calendars are in directory /nextcloud/remote.php/dav/calendars (there is NO subfolder NCUSER beneath) Is this the NC standard? 3. All address books and all calendards have been created by the SAME user NCuser in the SAME NC session.