Closed bret99 closed 1 week ago
start it build it from scratch: docker build --no-cache .
or do it on new VM
I have done the same for me also same issue.
If Admin already exists then what password?
I don't know the password , I am also facing the same issue
Throwing some ideas here, in hope it helps:
docker volume ls
? Maybe, try pruning them: docker volume prune --all
and then do the procedure again (I am assuming you are trying a fresh install here and not an upgrade, otherwise you are going to lose your data!)create_safe_admin
function, here. On a first install, when variable IRIS_ADM_PASSWORD
is not defined in the .env
file, you should rather see this log. It seems that the administrator already exists, that's why I think, maybe, you are starting with a pre-existing database.create_safe_admin
is called from here, so after the WARNING log, you should see some INFO logs, normally "Registering default modules"Note: the administrator's password can be set through variable IRIS_ADM_PASSWORD
in the .env
(naturally this will only work for a fresh install when there are no databases from previous instances)
I encountered the same issue and found a workaround that resolved it for me. Here's a more detailed breakdown of the steps I followed:
docker-compose stop
docker ps -a
docker container rm <container_id>
docker volume ls
docker volume rm iris-web_db_data
Update the .env File: Modify the .env file to set a manual password or make other necessary configuration changes. This step is crucial for ensuring that the rebuilt containers have the correct settings.
Rebuild Containers Without Cache: This ensures that your containers are built from scratch, using the latest versions of images and incorporating any changes made to the Dockerfile or related configurations. I believe that rebuilding with cache could also be a viable solution.
docker-compose build --no-cache
By following these steps, I was able to work around the issue. Please remember to back up relevant data before removing any containers or volumes to prevent data loss. I hope this helps others facing the same problem!
All attempts ended with [docker logs CONTAINER_ID] "WARNING :: post_init :: create_safe_admin :: >>> Administrator already exists"/ Phases: git clone https://github.com/dfir-iris/iris-web.git cd iris-web git checkout v2.4.5 cp .env.model .env
POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_ADMIN_USER=raptor POSTGRES_ADMIN_PASSWORD=raptor IRIS_SECRET_KEY=powerful IRIS_SECURITY_PASSWORD_SALT=powerful INTERFACE_HTTPS_PORT=5269
docker-compose build docker-compose up -d