Archive fails with invalid response and error serializing the following response

When trying to archive I keep getting the following errors below. I’ve tried increasing memory from the default 128M to 2G in both php.ini and config.ini.php, also tried --concurrent-requests-per-website=1 and --concurrent-archivers=1

Matomo 4.14.2
Windows Server 2022
PHP 8.1.18
MySQL 8.0.33

ERROR [2023-06-08 05:43:34] 3828 Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=month&date=2023-03-01&format=json&segment=downloadUrl%3D%40https%25253A%25252F%25252Fstuderende.ida.dk&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of ‘memory_limit’ in your php.ini file. For more information and the error message please check your web server’s error Log file. As this core:archive command triggers PHP processes over HTTP, you can find the error message in your Matomo’s web server error logs.
INFO [2023-06-08 05:43:34] 3828 ‘’
ERROR [2023-06-08 05:43:34] 3828 Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=month&date=2023-03-01&format=json&segment=downloadUrl%3D%40https%25253A%25252F%25252Fstuderende.ida.dk&trigger=archivephp: ‘’
ERROR [2023-06-08 05:44:45] 3828 Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2023-01-01&format=json&segment=downloadUrl%3D%40https%25253A%25252F%25252Fstuderende.ida.dk&trigger=archivephp. The response was empty. This usually means a server error. A solution to this error is generally to increase the value of ‘memory_limit’ in your php.ini file. For more information and the error message please check your web server’s error Log file. As this core:archive command triggers PHP processes over HTTP, you can find the error message in your Matomo’s web server error logs.
INFO [2023-06-08 05:44:45] 3828 ‘’
ERROR [2023-06-08 05:44:45] 3828 Error unserializing the following response from ?module=API&method=CoreAdminHome.archiveReports&idSite=1&period=year&date=2023-01-01&format=json&segment=downloadUrl%3D%40https%25253A%25252F%25252Fstuderende.ida.dk&trigger=archivephp: ‘’

I have the same, since I updated docker from version 20 to 24.

Hi @Michel_Wigbers , @AGregersen
Can you have a look in the Matomo error log file?