Nextcloud version: 17.0.5
Operating system and version: FreeBSD 11.3
Apache or nginx version: Apache 2.4
PHP version: PHP 7.1
The issue you are facing:
I’m not sure if it ever had one, but somewhere along the last few upgrades my instance has stopped producing a (default) favicon. Instead the browser’s no-favicon icon is shown.
Is this the first time you’ve seen this error? (Y/N):
This error is consistent, no favicon.
Steps to replicate it:
- Installed Nextcloud at version 14 (iirc) a long time ago
- Upgraded as releases were available to Nextcloud 17
- Present day. No favicon.
NB: My nextcloud instance is, and has always been, behind an nginx reverse proxy.
If I pull the favicon URL https://server_url/nextcloud/apps/theming/favicon/settings?v=0
out of the page and try opening it, I get an error: “The image cannot be displayed because it contains errors.”
I’ve looked at other forum threads about missing favicons and didn’t have success adding htaccess.RewriteBase
and then running sudo -u www php occ maintenance:update:htaccess
The output of your Nextcloud log in Admin > Logging:
Too large to paste, and I’m not allowed to upload it here.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocXXX',
'passwordsalt' => 'XXX',
'secret' => 'XXX',
'trusted_domains' =>
array (
0 => '[site]',
),
'datadirectory' => '/usr/local/www/apache24/data/nextcloud/data',
'overwrite.cli.url' => 'https://[site]',
'overwriteprotocol' => 'https',
'overwritecondaddr' => '^192\\.168\\.X\\.X$',
'htaccess.RewriteBase' => '/nextcloud',
'dbtype' => 'mysql',
'version' => '17.0.5.0',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud_admin',
'dbpassword' => 'XXX',
'installed' => true,
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/local/www/apache24/data/nextcloud/apps',
'url' => '/apps',
'writable' => true,
),
1 =>
array (
'path' => '/usr/local/www/apache24/data/nextcloud/apps-pkg',
'url' => '/apps-pkg',
'writable' => false,
),
),
'maintenance' => false,
'theme' => '',
'loglevel' => 0,
'updater.release.channel' => 'stable',
'mysql.utf8mb4' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'has_rebuilt_cache' => true,
);
The output of your Apache/nginx/system log in /var/log/____
:
httpd-access.log after trying to reach the favicon URL:
# tail /var/log/httpd-access.log
192.168.13.13 - - [05/Apr/2020:20:30:07 -0500] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 200 74
192.168.13.13 - - [05/Apr/2020:20:30:37 -0500] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 200 74
192.168.13.13 - - [05/Apr/2020:20:31:07 -0500] "GET /nextcloud/csrftoken HTTP/1.0" 200 103
192.168.13.13 - - [05/Apr/2020:20:31:08 -0500] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 200 74
192.168.13.13 - - [05/Apr/2020:20:31:36 -0500] "GET /nextcloud/css/icons/icons-vars.css?v=1586134943 HTTP/1.0" 200 164723
192.168.13.13 - - [05/Apr/2020:20:31:37 -0500] "GET /nextcloud/css/core/ef72-a1ae-css-variables.css?v=08343dd3f787291558383b46e1b489fb-b71ce8a3-0 HTTP/1.0" 200 505
192.168.13.13 - - [05/Apr/2020:20:31:37 -0500] "GET /nextcloud/css/core/ef72-a1ae-css-variables.css?v=08343dd3f787291558383b46e1b489fb-b71ce8a3-0 HTTP/1.0" 200 505
192.168.13.13 - - [05/Apr/2020:20:31:40 -0500] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 200 74
192.168.13.13 - - [05/Apr/2020:20:31:55 -0500] "GET /nextcloud/apps/theming/favicon/settings?v=0 HTTP/1.0" 200 -
192.168.13.13 - - [05/Apr/2020:20:32:08 -0500] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 200 74