Description
Currently, when accessing /api/kernels/ on the code-server image to retrieve the last_activity for culling purposes, the NGINX proxy returns a 502 Bad Gateway and the backend Apache HTTPD CGI server fails to start.
This is caused by two missing dependencies/configurations in the httpd.conf:
- Missing
mod_unixd: HTTPD fails to start with AH00136: Server MUST relinquish startup privileges before accepting connections.
- Missing
mime.types: HTTPD fails with AH01597: could not open mime types config file because mod_mime is loaded but the container doesn't have the file.
- Missing
DirectoryIndex: Even after starting HTTPD, accessing /api/kernels/ returns a 404 because Apache does not know to serve access.cgi by default for the directory.
Expected Behavior
The culler should be able to successfully retrieve the JSON payload containing the last_activity from the code-server.
Proposed Fix
In codeserver/ubi9-python-3.12/httpd/httpd.conf:
- Add
LoadModule unixd_module modules/mod_unixd.so
- Remove
LoadModule mime_module modules/mod_mime.so
- Add
DirectoryIndex access.cgi to the /opt/app-root Directory block.
Description
Currently, when accessing
/api/kernels/on the code-server image to retrieve thelast_activityfor culling purposes, the NGINX proxy returns a502 Bad Gatewayand the backend Apache HTTPD CGI server fails to start.This is caused by two missing dependencies/configurations in the
httpd.conf:mod_unixd: HTTPD fails to start withAH00136: Server MUST relinquish startup privileges before accepting connections.mime.types: HTTPD fails withAH01597: could not open mime types config filebecausemod_mimeis loaded but the container doesn't have the file.DirectoryIndex: Even after starting HTTPD, accessing/api/kernels/returns a 404 because Apache does not know to serveaccess.cgiby default for the directory.Expected Behavior
The culler should be able to successfully retrieve the JSON payload containing the
last_activityfrom the code-server.Proposed Fix
In
codeserver/ubi9-python-3.12/httpd/httpd.conf:LoadModule unixd_module modules/mod_unixd.soLoadModule mime_module modules/mod_mime.soDirectoryIndex access.cgito the/opt/app-rootDirectory block.