dfir-iris / iris-web

Collaborative Incident Response platform
GNU Lesser General Public License v3.0
1.05k stars 170 forks source link

WARNING :: post_init :: create_safe_admin :: >>> Administrator already exists #399

Closed bret99 closed 1 week ago

bret99 commented 8 months ago

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

keid2000 commented 8 months ago

start it build it from scratch: docker build --no-cache .

or do it on new VM

cybertricks commented 8 months ago

I have done the same for me also same issue.

Screenshot 2024-02-08 at 6 04 54 PM
bret99 commented 8 months ago

If Admin already exists then what password?

cybertricks commented 8 months ago

I don't know the password , I am also facing the same issue

c8y3 commented 8 months ago

Throwing some ideas here, in hope it helps:

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)

lelondono commented 7 months ago

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

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!