After updating SC4S to version v3.33.0, the SC4S container fails to start, gets stuck in the restarting state, and does not progress to the running state. This error occurs despite the jinja2 module being installed manually or via scripts.
This issue is typically seen in offline containers where dependencies are either missing or improperly installed. To investigate:
Check Container Status:
Use the command to verify the container status. If the container is stuck, its status will indicate "Restarting" instead of "Running":
Expected output: A list of running containers with their IDs, status, and names. The SC4S container will display "Restarting" if it is not starting up properly.
Verify Jinja2 Installation:
Check if the Jinja2 module is installed correctly:
Expected output:
Check Dependency Versions:
Compare the poetry.lock and pyproject.toml files in the SC4S container with those from the desired SC4S version repository. Ensure the files match and do not contain errors. Specifically, check if the Jinja2 version is consistent with SC4S version v3.33.0. The correct version should be v3.1.4.
This error typically occurs after an update because SC4S version v3.33.0 uses Jinja2 version v3.1.4, but the poetry.lock or pyproject.toml file in your container might still reference an older version of Jinja2. To resolve this issue, follow one of these two methods:
Download Updated Configuration Files:
Download the latest poetry.lock and pyproject.toml files from the SC4S GitHub repository. These files will ensure that the container uses the correct dependencies and versions. Rebuild the container using these updated files to avoid dependency conflicts and ensure compatibility.
Manually Install Jinja2:
docker exec -it <container_id> python3 -m pip install jinja2==3.1.4podman exec -it <container_id> python3 -m pip install jinja2==3.1.4
After ensuring the Jinja2 module is correctly installed, rebuild the container:
podman build -t <image_name>:latest .
Use the appropriate command to check the container status which should give status as started/healthy:
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |