The deriver script does "from src import crud" at the top, which only works when the cwd / sys.path[0] is /app. Running the script by file path (python /app/src/deriver/deriver.py) puts /app/src/deriver on sys.path instead, and the import fails with ModuleNotFoundError. Switch to python -m src.deriver.deriver and explicitly set WorkingDir=/app so module resolution is deterministic across Podman versions. Discovered during the first deploy of the honcho role on lincoln — honcho-api was healthy on :8000 but the deriver crash-looped 26 times in two minutes.
2.4 KiB
2.4 KiB