"Access forbidden" navigating to "/settings/admin/logging" as Admin User

Nextcloud version (eg, 20.0.5): Nextcloud Hub II (23.0.0)
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04

Apache or nginx version (eg, Apache 2.4.25): nginx/1.18.0 (Ubuntu)
PHP version (eg, 7.4): 7.4

The issue you are facing:
“Access forbidden” when logged in as admin and navigating to “https://redacted/settings/admin/logging

From the nginx access.log
redacted - - [14/Feb/2022:21:08:07 -0700] “GET /settings/admin/logging HTTP/1.1” 403 3389 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0”

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

Steps to replicate it:

  1. Log into Nextcloud as Admin
  2. Navigate to https://redacted/settings/admin/logging

The output of your Nextcloud log in Admin > Logging:
Log is inaccessible! Which is what this ticket is about.

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

<?php
$CONFIG = array (
  'instanceid' => 'redacted',
  'passwordsalt' => 'redacted',
  'secret' => 'redacted',
  'trusted_domains' =>
  array (
	  0 => 'redacted1',
	  1 => 'redacted2',
  ),
  'datadirectory' => '/usr/share/nginx/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'http://redacted',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'redacted',
  'dbpassword' => 'redacted',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => array(
    'host' => 'localhost',
    'port' => 6379,
  ),
  'trusted_proxies' => array(
	  0 => 'redacted',
	  1 => 'redacted',
	  2 => 'redacted',
  ),
  'default_phone_region' => 'US',
);

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

  redacted - - [14/Feb/2022:21:08:07 -0700] "GET /settings/admin/logging HTTP/1.1" 403 3389 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0"

Ideas? I searched for a “logging” folder to check permissions on in /usr/share/nginx/nextcloud and did not find one.

Log reading from Nextcloud is provided by the featured app called Log Reader. Do you have it installed?