dfir-iris / iris-web

Collaborative Incident Response platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Docker compose build fails on fresh install (Debian 12)

0xFA15E5EC opened this issue · comments

This issue does not depend on the host environment or docker configuration.
This issue pertains to the v2.4.4 tagged checkout.

Following the provided instructions: git clone, git checkout, cp the .env file, docker compose build, docker compose up
results in a non-functioning iriswebapp_app and iriswebapp_db.

Digging into the root cause for the inaccessible web app on port 8000, I identified the following error resident on the database container:

[PG::UndefinedFunction: ERROR: function gen_random_uuid()

This function does not exist on postgres 12, it's new in v13.

This error can be fixed by running:
sed -i 's/12-alpine/13-alpine/' iris-web/docker/db/Dockerfile

then rebuild the docker containers:
docker compose build --no-cache
docker compose up

I didn't submit a pr, as I'm not sure if there is any particular reason the postgres:12-alpine container is used.

Hi @0xFA15E5EC -

Thanks for reporting. Indeed the issue is caused by gen_random_uuid() not existing.
This function can be added to Postgres 12 by adding the Crypto extension. This was previously added by pg_add_pgcrypto_ext() in post_init. However following the upgrade of SQLAlchemy, it appears that this addition is not added properly.
A workaround is to add the PG extension manually in the DB.
We're actively looking into it to provide a path asap.

We found a fix, we'll release a patch within the next hours

This should now be fixed in v.2.4.4.