Getting 500 with Request ID, but cannot find logs

Nextcloud version (eg, 20.0.5): 24.0.5
Operating system and version (eg, Ubuntu 20.04): Arch Linux (Docker)
Apache or nginx version (eg, Apache 2.4.25): whichever one the official docker container uses
PHP version (eg, 7.4): 8.0.23

The issue you are facing:

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

Steps to replicate it:

  1. load page (go to my url)
  2. gets 500 page

i need to access the log but cannot find it at the expected locations and the things i get in the console log, do not help. just who connected and from what client. e.g.

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.4. Set the 'ServerName' directive globally to suppress this message

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.4. Set the 'ServerName' directive globally to suppress this message

[Fri Sep 30 18:09:28.639270 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.23 configured -- resuming normal operations

[Fri Sep 30 18:09:28.639299 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

172.21.0.3 - - [30/Sep/2022:18:11:42 +0000] "GET / HTTP/1.1" 500 3014 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"

172.21.0.3 - lotus [30/Sep/2022:18:12:30 +0000] "GET /status.php HTTP/1.1" 500 397 "-" "Mozilla/5.0 (Windows) mirall/3.6.0stable-Win64 (build 20220906) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

172.21.0.3 - lotus [30/Sep/2022:18:21:48 +0000] "GET /status.php HTTP/1.1" 500 397 "-" "Mozilla/5.0 (Windows) mirall/3.6.0stable-Win64 (build 20220906) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

172.21.0.3 - - [30/Sep/2022:18:26:44 +0000] "GET /index.php/csrftoken HTTP/1.1" 500 3014 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"

172.21.0.3 - lotus [30/Sep/2022:18:31:06 +0000] "GET /status.php HTTP/1.1" 500 397 "-" "Mozilla/5.0 (Windows) mirall/3.6.0stable-Win64 (build 20220906) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

172.21.0.3 - lotus [30/Sep/2022:18:40:24 +0000] "GET /status.php HTTP/1.1" 500 397 "-" "Mozilla/5.0 (Windows) mirall/3.6.0stable-Win64 (build 20220906) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

172.21.0.3 - - [30/Sep/2022:18:41:44 +0000] "GET /index.php/csrftoken HTTP/1.1" 500 3014 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"

this is what i get when i try to access the page:

The output of your Nextcloud log in Admin > Logging:

unable to access

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

<?php
$CONFIG = array (
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => 'cloud.myHostname',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '24.0.5.1',
  'overwrite.cli.url' => 'cloud.myHostname',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextcloud_mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_lotus',
  'dbpassword' => '3Du)5&ry{3&RSxpb~4k.Ra7qI}[?XE',
  'installed' => true,
  'instanceid' => 'oc6ix1m9kvz1',
  'log_type' => 'errorlog',
  'loglevel' => 3
);

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

cannot access
no file exists in /var/www/nextcloud.log in the container

As long as you’ve set the parameter as above messages are logged to the PHP error log. Check the follwonig page to learn how to log messages to a separate file:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html#log-type

this all im getting in the log

[Sun Oct 02 14:44:27.175502 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.24 configured -- resuming normal operations
[Sun Oct 02 14:44:27.175531 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
172.21.0.4 - - [02/Oct/2022:14:45:10 +0000] "GET / HTTP/1.1" 500 3014 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"

and im still getting a 500 error when i try and load the page.