Nextcloud stopped working and cannot get logs

Version: Official docker image

The issue you are facing:
I get a 500 error page just trying to load the domain, never mind logging in
i dont get any helpfull messages in the error log despite having logging on.
here is what im getting in the log from all the connections ive attempted

[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"
172.21.0.4 - lotus [02/Oct/2022:14:47:26 +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.4 - lotus [02/Oct/2022:14:56:46 +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.4 - - [02/Oct/2022:15:00:12 +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.4 - lotus [02/Oct/2022:15:06:02 +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.4 - - [02/Oct/2022:15:15:14 +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.4 - lotus [02/Oct/2022:15:15:20 +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.4 - lotus [02/Oct/2022:15:24:38 +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.4 - - [02/Oct/2022:15:30:13 +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.4 - lotus [02/Oct/2022:15:33:56 +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.4 - lotus [02/Oct/2022:15:43:15 +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.4 - - [02/Oct/2022:15:45:14 +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.4 - lotus [02/Oct/2022:15:52:33 +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.4 - - [02/Oct/2022:16:00:15 +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.4 - lotus [02/Oct/2022:16:01:50 +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.4 - lotus [02/Oct/2022:16:11:08 +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.4 - - [02/Oct/2022:16:15:15 +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.4 - lotus [02/Oct/2022:16:20:26 +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.4 - lotus [02/Oct/2022:16:29:44 +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.4 - - [02/Oct/2022:16:30:15 +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.4 - lotus [02/Oct/2022:16:39:02 +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.4 - - [02/Oct/2022:16:45:15 +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.4 - lotus [02/Oct/2022:16:48:20 +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.4 - lotus [02/Oct/2022:16:57:40 +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.4 - - [02/Oct/2022:17:00:16 +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.4 - lotus [02/Oct/2022:17:06:58 +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.4 - - [02/Oct/2022:17:15:17 +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.4 - lotus [02/Oct/2022:17:16:14 +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.4 - lotus [02/Oct/2022:17:25:32 +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.4 - - [02/Oct/2022:17:30:17 +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.4 - lotus [02/Oct/2022:17:34:52 +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.4 - lotus [02/Oct/2022:17:44:08 +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.4 - - [02/Oct/2022:17:45:18 +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"

as you can see, it just 500’s on the status page and index never gets loaded. everything 500’s and i have no reason as to why.

here is how my config looks

<?php
$CONFIG = array (
  'passwordsalt' => '[redacted]',
  'secret' => '[redacted]',
  'trusted_domains' =>
  array (
    0 => '[redacted]',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '24.0.5.1',
  'overwrite.cli.url' => 'https://[redacted]',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '[redacted]',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '[redacted]',
  'dbpassword' => '[redacted]',
  'installed' => true,
  'instanceid' => 'oc6ix1m9kvz1',
  'log_type' => 'errorlog',
  'loglevel' => 3
);