Open kyzer-davis opened 3 days ago
Further, I do not believe the current documentation is up-to-date for 1.33.0: https://unit.nginx.org/howto/docker/#multilanguage-images
For example, I don't see unit-python3.9
available for Bookworm. (I don't want this, just illustrating how the document snippet is out of date)
root@27f4af62d939:/# apt search "^unit-python"
Sorting... Done
Full Text Search... Done
unit-python3.11/now 1.33.0-1~bookworm amd64 [installed,local]
Python 3.11 module for NGINX Unit
One may also be able to reference the setup-unit
tool for the repo config as seen on https://unit.nginx.org/installation/#official-packages > "Repo installation script" rather than what is in the docs right now.
Current: https://github.com/kyzer-davis/nginx-unit-python-multi-app/blob/main/Dockerfile#L3-L7
New: https://github.com/kyzer-davis/nginx-unit-python-multi-app/blob/main/Dockerfile#L9-L12
Problem
While attempting to build a Multi-language app and convert my working
1.31.1-python3.11
containers into Python3.11/FastAPI + Node/React multi-language containers; I found that Python3.11.2 always fails to load properly in 1.33.0-minimal. (See log below)I have a sample repo here that one can clone and observe the issue: https://github.com/kyzer-davis/nginx-unit-python-multi-app
Simply issue
docker compose up --build --remove-orphans --force-recreate -d
Notes:
Failed to initialise config
: https://github.com/nginx/unit/commit/491d0f700f5690eba0f1fcf2124f3a37ef73eb1a but really does not provide anything useful.pep405
, I have tried with and without VENV's but didn't find much difference.My analysis, it looks like the problem may be with 3.11.2 since 3.11.8 load nicely.
unit-python3.12
package for Bookwork which is what1.33.0-minmal
runs right now..Versions
Configs
LOGS:
Debian and Unit Python3
Working Single-App Container