Persistent Service Interruptions and Parsing Errors During First Keycloak Configuration via Deployment Script
Description
During the first deployment of "laboite" using the command /opt/eole_venv/bin/eole3 deploy socle
, multiple instances of "503 Service Temporarily Unavailable" were encountered.
Encountered Errors
-
Connection Problems to Keycloak: The nginx server systematically reported "503 Service Temporarily Unavailable" errors during attempts to:
- Create a new realm ('laboite')
- Create a user ('admapi')
- Role mapping operations
- Create new clients ('sso', 'radicale')
-
Parsing Errors: Multiple parsing errors were reported, indicating issues with the processing of configuration data:
parse error: Invalid numeric literal at line 1, column 7
Impact
These errors prevent the complete and correct configuration of Keycloak, potentially impacting access to dependent services.
Output Logs
================================================================================
Manage keycloak realm
================================================================================
Get token
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
Create new realm 'laboite'
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Set locales for 'laboite'
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Create keycloak user 'admapi'
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Get UserId for 'admapi'
parse error: Invalid numeric literal at line 1, column 7
Reset 'admapi' password
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Get ID for 'realm-management' client
parse error: Invalid numeric literal at line 1, column 7
Lookup 'manage-clients' and 'manage-users' role-mappings if available
parse of error: Invalid numeric literal at line 1, column 7
Map role from realm management client to user 'admapi'
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Create new keycloak client 'sso'
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Create new keycloak client 'radicale'
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
Edited by loic binet