dfir-iris / iris-web

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

[Question] About upgrade iris-web #362

Closed tsukiazuma closed 2 months ago

tsukiazuma commented 10 months ago

Hi,

I follow step to step upgrades iris from v2.3.3 to v2.3.7- https://docs.dfir-iris.org/operations/upgrades/

When run git checkout v2.3.7, I get notice:

M       docker-compose.yml
M       source/app/configuration.py
Already on 'v2.3.7'

But when web ui, I see version still v2.3.3.

I don't know what's going on, have I done the upgrade successfully?

m-terlinde commented 10 months ago

Have you tried to clean the browser cache with STRG+F5? I think I had the issue in the past and was able to solve it like this.

tsukiazuma commented 10 months ago

Problem is not browser cache. I try with other browser, but it only show old verison on Web UI

whikernel commented 10 months ago

Hi @tsukiazuma

Can you try the following steps?

git checkout v2.3.3
docker-compose down
git pull 

git checkout v2.3.7 
docker compose build --no-cache 
docker compose up

Let me know if it works Cheers

tsukiazuma commented 10 months ago

It only show v2.3.3 on web ui I run above command on old folder IRIS v2.3.3. Need download new version and move into folder to exec upgrade?

whikernel commented 10 months ago

No the pull and checkout commands are doing the changes for you. Can you show us the output of all the commands?

tsukiazuma commented 10 months ago

Sure, all steps are all in the IRIS v2.3.3 folder

  1. git checkout v2.3.3
    
    M       docker-compose.yml
    M       source/app/configuration.py
    Note: switching to 'v2.3.3'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 2b128093 Bump version: 2.3.2 → 2.3.3M docker-compose.yml M source/app/configuration.py Note: switching to 'v2.3.3'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 2b128093 Bump version: 2.3.2 → 2.3.3

2. docker-compose down

[+] Running 7/7 ⠿ Container iriswebapp_nginx Removed 10.3s ⠿ Container iriswebapp_worker Removed 10.3s ⠿ Container iriswebapp_app Removed 10.4s ⠿ Container iriswebapp_db Removed 0.2s ⠿ Container iriswebapp_rabbitmq Removed 6.3s ⠿ Network iris_frontend Removed 0.1s ⠿ Network iris_backend Removed 0.1s

3. git -c http.sslVerify=false pull

warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squelch this message by running one of the following commands sometime before your next pull:

git config pull.rebase false # merge (the default strategy) git config pull.rebase true # rebase git config pull.ff only # fast-forward only

You can replace "git config" with "git config --global" to set a default preference for all repositories. You can also pass --rebase, --no-rebase, or --ff-only on the command line to override the configured default per invocation.

remote: Enumerating objects: 388, done. remote: Counting objects: 100% (388/388), done. remote: Compressing objects: 100% (53/53), done. remote: Total 312 (delta 250), reused 311 (delta 249), pack-reused 0 Receiving objects: 100% (312/312), 36.01 KiB | 36.01 MiB/s, done. Resolving deltas: 100% (250/250), completed with 61 local objects. From https://github.com/dfir-iris/iris-web 87943c32..713188da develop -> origin/develop You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details.

git pull <remote> <branch>
4. git checkout v2.3.7

warning: refname 'v2.3.7' is ambiguous. M docker-compose.yml M source/app/configuration.py Switched to branch 'v2.3.7'

5. docker compose build --no-cache

[+] Building 92.3s (51/51) FINISHED => [iriswebapp_app:v2.3.3 internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 85B 0.0s => [iriswebapp_db:v2.3.3 internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 85B 0.0s => [iriswebapp_nginx:v2.3.3 internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 85B 0.0s => [iriswebapp_app:v2.3.3 internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [iriswebapp_nginx:v2.3.3 internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [iriswebapp_db:v2.3.3 internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [iriswebapp_app:v2.3.3 internal] load metadata for docker.io/library/python:3.9 2.2s => [iriswebapp_db:v2.3.3 internal] load metadata for docker.io/library/postgres:12-alpine 2.2s => [iriswebapp_nginx:v2.3.3 internal] load metadata for docker.io/library/nginx:1.21.3 2.2s => [iriswebapp_app:v2.3.3 internal] load build context 0.1s => => transferring context: 149.41kB 0.1s => CACHED [iriswebapp_app:v2.3.3 compile-image 1/6] FROM docker.io/library/python:3.9@sha256:30678bb79d9eeaf98ec0ce83cdcd4d6f5301484ef86873a711e69df2ca77e8ac 0.0s => => resolve docker.io/library/python:3.9@sha256:30678bb79d9eeaf98ec0ce83cdcd4d6f5301484ef86873a711e69df2ca77e8ac 0.0s => [iriswebapp_app:v2.3.3 compile-image 2/6] RUN apt-get update 3.8s => CACHED [iriswebapp_nginx:v2.3.3 1/11] FROM docker.io/library/nginx:1.21.3@sha256:644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36 0.0s => [iriswebapp_nginx:v2.3.3 internal] load build context 0.0s => => transferring context: 171B 0.0s => [iriswebapp_nginx:v2.3.3 2/11] RUN apt-get update && apt-get install -y curl 7.2s => [iriswebapp_db:v2.3.3 internal] load build context 0.0s => => transferring context: 89B 0.0s => CACHED [iriswebapp_db:v2.3.3 1/2] FROM docker.io/library/postgres:12-alpine@sha256:ed99c286dddd4f758711cca5845d477b37035564f8d3f13f187b0638f95e6c7f 0.0s => [iriswebapp_db:v2.3.3 2/2] COPY create_user.sh /docker-entrypoint-initdb.d/10-create_user.sh 0.1s => [iriswebapp_app:v2.3.3] exporting to image 9.7s => => exporting layers 9.5s => => writing image sha256:2d57c0ff0b8eb08092e7b793f38712965369449ec8b521464aaef6163b50581a 0.0s => => naming to docker.io/library/iriswebapp_db:v2.3.3 0.0s => => writing image sha256:74a08b3d36fc880c5e07921c7ac2b70e1d39da35bd2e52ad39d564407186281e 0.0s => => naming to docker.io/library/iriswebapp_nginx:v2.3.3 0.0s => => writing image sha256:06336532c86ea229ee06dd690a7087c4f5913ef6955879ccd8b4a638ccb4a5dc 0.0s => => naming to docker.io/library/iriswebapp_app:v2.3.3 0.0s => [iriswebapp_app:v2.3.3 compile-image 3/6] RUN python -m venv /opt/venv 6.1s => [iriswebapp_nginx:v2.3.3 3/11] RUN groupadd -g 1234 az-app-nginx-conf && usermod -a -G az-app-nginx-conf www-data 0.4s => [iriswebapp_nginx:v2.3.3 4/11] COPY entrypoint.sh /entrypoint.sh 0.0s => [iriswebapp_nginx:v2.3.3 5/11] RUN chmod 700 /entrypoint.sh 0.4s => [iriswebapp_nginx:v2.3.3 6/11] RUN chown www-data:www-data /entrypoint.sh 0.4s => [iriswebapp_nginx:v2.3.3 7/11] COPY nginx.conf /etc/nginx/nginx.conf 0.0s => [iriswebapp_nginx:v2.3.3 8/11] RUN touch /var/log/nginx/audit_platform_error.log && chown -R www-data:www-data /var/log/nginx/audit_platform_error.log 0.4s => [iriswebapp_nginx:v2.3.3 9/11] RUN touch /var/log/nginx/audit_platform_access.log && chown -R www-data:www-data /var/log/nginx/audit_platform_access.log 0.4s => [iriswebapp_nginx:v2.3.3 10/11] RUN touch /var/run/nginx.pid && chown -R www-data:www-data /var/run/nginx.pid /var/cache/nginx /etc/nginx/nginx.conf 0.4s => [iriswebapp_nginx:v2.3.3 11/11] RUN mkdir -p /www/certs/ 0.6s => [iriswebapp_app:v2.3.3 compile-image 4/6] COPY source/dependencies /dependencies 0.1s => [iriswebapp_app:v2.3.3 compile-image 5/6] COPY source/requirements.txt / 0.1s => [iriswebapp_app:v2.3.3 compile-image 6/6] RUN pip3 install -r requirements.txt 52.0s => [iriswebapp_app:v2.3.3 iriswebapp 2/20] COPY --from=compile-image /opt/venv /opt/venv 1.6s => [iriswebapp_app:v2.3.3 iriswebapp 3/20] RUN apt update 3.0s => [iriswebapp_app:v2.3.3 iriswebapp 4/20] RUN apt install -y p7zip-full pgp rsync postgresql-client 5.2s => [iriswebapp_app:v2.3.3 iriswebapp 5/20] RUN mkdir /iriswebapp/ 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 6/20] RUN mkdir -p /home/iris/certificates 0.4s => [iriswebapp_app:v2.3.3 iriswebapp 7/20] RUN mkdir -p /home/iris/user_templates 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 8/20] RUN mkdir -p /home/iris/server_data 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 9/20] RUN mkdir -p /home/iris/server_data/backup 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 10/20] RUN mkdir -p /home/iris/server_data/updates 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 11/20] RUN mkdir -p /home/iris/server_data/custom_assets 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 12/20] RUN mkdir -p /home/iris/server_data/datastore 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 13/20] WORKDIR /iriswebapp 0.0s => [iriswebapp_app:v2.3.3 iriswebapp 14/20] COPY docker/webApp/iris-entrypoint.sh . 0.0s => [iriswebapp_app:v2.3.3 iriswebapp 15/20] COPY docker/webApp/wait-for-iriswebapp.sh . 0.0s => [iriswebapp_app:v2.3.3 iriswebapp 16/20] COPY ./source . 1.6s => [iriswebapp_app:v2.3.3 iriswebapp 17/20] RUN chmod +x /iriswebapp/dependencies/evtxdump_binaries/linux/x64/fd 0.4s => [iriswebapp_app:v2.3.3 iriswebapp 18/20] RUN chmod +x /iriswebapp/dependencies/evtxdump_binaries/linux/x64/evtx_dump 0.5s => [iriswebapp_app:v2.3.3 iriswebapp 19/20] RUN chmod +x iris-entrypoint.sh 0.4s => [iriswebapp_app:v2.3.3 iriswebapp 20/20] RUN chmod +x wait-for-iriswebapp.sh 0.4s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

6. docker compose up
[+] Running 7/7

⠿ Network iris_frontend Created 0.1s ⠿ Network iris_backend Created 0.1s ⠿ Container iriswebapp_db Created 0.1s ⠿ Container iriswebapp_rabbitmq Created 0.1s ⠿ Container iriswebapp_app Created 0.0s ⠿ Container iriswebapp_nginx Created 0.0s ⠿ Container iriswebapp_worker Created 0.0s Attaching to iriswebapp_app, iriswebapp_db, iriswebapp_nginx, iriswebapp_rabbitmq, iriswebapp_worker iriswebapp_db | iriswebapp_db [+] Running 7/7 ⠿ Network iris_frontend Created 0.1s ⠿ Network iris_backend Created 0.1s ⠿ Container iriswebapp_db Created 0.1s ⠿ Container iriswebapp_rabbitmq Created 0.1s ⠿ Container iriswebapp_app Created 0.0s ⠿ Container iriswebapp_nginx Created 0.0s ⠿ Container iriswebapp_worker Created 0.0s Attaching to iriswebapp_app, iriswebapp_db, iriswebapp_nginx, iriswebapp_rabbitmq, iriswebapp_worker iriswebapp_db | iriswebapp_db | PostgreSQL Database directory appears to contain a database; Skipping initialization iriswebapp_db | iriswebapp_db | 2024-01-09 08:20:56.418 UTC [1] LOG: starting PostgreSQL 12.17 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit iriswebapp_db | 2024-01-09 08:20:56.419 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 iriswebapp_db | 2024-01-09 08:20:56.420 UTC [1] LOG: listening on IPv6 address "::", port 5432 iriswebapp_db | 2024-01-09 08:20:56.421 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" iriswebapp_db | 2024-01-09 08:20:56.440 UTC [22] LOG: database system was shut down at 2024-01-09 08:16:46 UTC iriswebapp_db | 2024-01-09 08:20:56.451 UTC [1] LOG: database system is ready to accept connections iriswebapp_app | Running iriswebapp ... iriswebapp_app | [2024-01-09 08:20:58 +0000] [7] [INFO] Starting gunicorn 20.1.0 iriswebapp_app | [2024-01-09 08:20:58 +0000] [7] [INFO] Listening at: http://0.0.0.0:8000 (7) iriswebapp_app | [2024-01-09 08:20:58 +0000] [7] [INFO] Using worker: eventlet iriswebapp_app | [2024-01-09 08:20:58 +0000] [9] [INFO] Booting worker with pid: 9 iriswebapp_worker | IRISwebapp is unavailable - sleeping iriswebapp_worker | IRISwebapp is unavailable - sleeping | PostgreSQL Database directory appears to contain a database; Skipping initialization iriswebapp_db | iriswebapp_db | 2024-01-09 08:20:56.418 UTC [1] LOG: starting PostgreSQL 12.17 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit iriswebapp_db | 2024-01-09 08:20:56.419 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 iriswebapp_db | 2024-01-09 08:20:56.420 UTC [1] LOG: listening on IPv6 address "::", port 5432 iriswebapp_db | 2024-01-09 08:20:56.421 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" iriswebapp_db | 2024-01-09 08:20:56.440 UTC [22] LOG: database system was shut down at 2024-01-09 08:16:46 UTC iriswebapp_db | 2024-01-09 08:20:56.451 UTC [1] LOG: database system is ready to accept connections iriswebapp_app | Running iriswebapp ... iriswebapp_app | [2024-01-09 08:20:58 +0000] [7] [INFO] Starting gunicorn 20.1.0 iriswebapp_app | [2024-01-09 08:20:58 +0000] [7] [INFO] Listening at: http://0.0.0.0:8000 (7) iriswebapp_app | [2024-01-09 08:20:58 +0000] [7] [INFO] Using worker: eventlet iriswebapp_app | [2024-01-09 08:20:58 +0000] [9] [INFO] Booting worker with pid: 9 iriswebapp_worker | IRISwebapp is unavailable - sleeping iriswebapp_worker | IRISwebapp is unavailable - sleeping

whikernel commented 10 months ago

Could you please run the following then?

And give us the output?

tsukiazuma commented 10 months ago

still v2.3.3 on web ui:

  1. git reset hard --HEAD

    
    error: unknown option `HEAD'
    usage: git reset [--mixed | --soft | --hard | --merge | --keep] [-q] [<commit>]
    or: git reset [-q] [<tree-ish>] [--] <pathspec>...
    or: git reset [-q] [--pathspec-from-file [--pathspec-file-nul]] [<tree-ish>]
    or: git reset --patch [<tree-ish>] [--] [<pathspec>...]
    
    -q, --quiet           be quiet, only report errors
    --mixed               reset HEAD and index
    --soft                reset only HEAD
    --hard                reset HEAD, index and working tree
    --merge               reset HEAD, index and working tree
    --keep                reset HEAD but keep local changes
    --recurse-submodules[=<reset>]
                          control recursive updating of submodules
    -p, --patch           select hunks interactively
    -N, --intent-to-add   record only the fact that removed paths will be added later
    --pathspec-from-file <file>
                          read pathspec from file
    --pathspec-file-nul   with --pathspec-from-file, pathspec elements are separated with NUL character
2. git config pull.rebase false - Not any return
3. git pull

There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details.

git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/<branch> v2.3.7
4. git checkout v2.3.7

warning: refname 'v2.3.7' is ambiguous. M docker-compose.yml M source/app/configuration.py Already on 'v2.3.7'

5. docker compose build

[+] Building 1.9s (50/51) => [iriswebapp_db:v2.3.3 internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 85B 0.0s => [iriswebapp_app:v2.3.3 internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 85B 0.0s => [iriswebapp_nginx:v2.3.3 internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 85B 0.0s => [iriswebapp_db:v2.3.3 internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [iriswebapp_nginx:v2.3.3 internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [iriswebapp_app:v2.3.3 internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [iriswebapp_db:v2.3.3 internal] load metadata for docker.io/library/postgres:12-alpine 1.7s => [iriswebapp_app:v2.3.3 internal] load metadata for docker.io/library/python:3.9 1.8s => [iriswebapp_nginx:v2.3.3 internal] load metadata for docker.io/library/nginx:1.21.3 1.7s => [iriswebapp_app:v2.3.3 internal] load build context 0.0s => => transferring context: 149.41kB 0.0s => [iriswebapp_app:v2.3.3 compile-image 1/6] FROM docker.io/library/python:3.9@sha256:30678bb79d9eeaf98ec0ce83cdcd4d6f5301484ef86873a711e69df2ca77e8ac 0.0s => => resolve docker.io/library/python:3.9@sha256:30678bb79d9eeaf98ec0ce83cdcd4d6f5301484ef86873a711e69df2ca77e8ac 0.0s => [iriswebapp_db:v2.3.3 internal] load build context 0.0s => => transferring context: 89B 0.0s => [iriswebapp_db:v2.3.3 1/2] FROM docker.io/library/postgres:12-alpine@sha256:ed99c286dddd4f758711cca5845d477b37035564f8d3f13f187b0638f95e6c7f 0.0s => [iriswebapp_nginx:v2.3.3 1/11] FROM docker.io/library/nginx:1.21.3@sha256:644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36 0.0s => [iriswebapp_nginx:v2.3.3 internal] load build context 0.0s => => transferring context: 171B 0.0s => CACHED [iriswebapp_db:v2.3.3 2/2] COPY create_user.sh /docker-entrypoint-initdb.d/10-create_user.sh 0.0s => CACHED [iriswebapp_nginx:v2.3.3 2/11] RUN apt-get update && apt-get install -y curl 0.0s => CACHED [iriswebapp_nginx:v2.3.3 3/11] RUN groupadd -g 1234 az-app-nginx-conf && usermod -a -G az-app-nginx-conf www-data 0.0s => CACHED [iriswebapp_nginx:v2.3.3 4/11] COPY entrypoint.sh /entrypoint.sh 0.0s => CACHED [iriswebapp_nginx:v2.3.3 5/11] RUN chmod 700 /entrypoint.sh 0.0s => CACHED [iriswebapp_nginx:v2.3.3 6/11] RUN chown www-data:www-data /entrypoint.sh 0.0s => CACHED [iriswebapp_nginx:v2.3.3 7/11] COPY nginx.conf /etc/nginx/nginx.conf 0.0s => CACHED [iriswebapp_nginx:v2.3.3 8/11] RUN touch /var/log/nginx/audit_platform_error.log && chown -R www-data:www-data /var/log/nginx/audit_platform_error. 0.0s => CACHED [iriswebapp_nginx:v2.3.3 9/11] RUN touch /var/log/nginx/audit_platform_access.log && chown -R www-data:www-data /var/log/nginx/audit_platform_acces 0.0s => CACHED [iriswebapp_nginx:v2.3.3 10/11] RUN touch /var/run/nginx.pid && chown -R www-data:www-data /var/run/nginx.pid /var/cache/nginx /etc/nginx/nginx.conf 0.0s => CACHED [iriswebapp_nginx:v2.3.3 11/11] RUN mkdir -p /www/certs/ 0.0s => [iriswebapp_app:v2.3.3] exporting to image 0.1s => => exporting layers 0.0s => => writing image sha256:0902c902475b57be30c9153d54e4652b416362ca75c67b321fe192d05487c320 0.0s => => naming to docker.io/library/iriswebapp_db:v2.3.3 0.0s => => writing image sha256:336ad16e22ab88e08214dba8f1eba08ddfc8fe74517e29c67d7ff7a21ed17b18 0.0s => => naming to docker.io/library/iriswebapp_nginx:v2.3.3 0.0s => => writing image sha256:f00045022c0030e22efd747e3a2e0fe8daf0917ab4b39f54dbcefd950e54a962 0.0s => => naming to docker.io/library/iriswebapp_app:v2.3.3 0.0s => CACHED [iriswebapp_app:v2.3.3 compile-image 2/6] RUN apt-get update 0.0s => CACHED [iriswebapp_app:v2.3.3 compile-image 3/6] RUN python -m venv /opt/venv 0.0s => CACHED [iriswebapp_app:v2.3.3 compile-image 4/6] COPY source/dependencies /dependencies 0.0s => CACHED [iriswebapp_app:v2.3.3 compile-image 5/6] COPY source/requirements.txt / 0.0s => CACHED [iriswebapp_app:v2.3.3 compile-image 6/6] RUN pip3 install -r requirements.txt 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 2/20] COPY --from=compile-image /opt/venv /opt/venv 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 3/20] RUN apt update 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 4/20] RUN apt install -y p7zip-full pgp rsync postgresql-client 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 5/20] RUN mkdir /iriswebapp/ 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 6/20] RUN mkdir -p /home/iris/certificates 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 7/20] RUN mkdir -p /home/iris/user_templates 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 8/20] RUN mkdir -p /home/iris/server_data 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 9/20] RUN mkdir -p /home/iris/server_data/backup 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 10/20] RUN mkdir -p /home/iris/server_data/updates 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 11/20] RUN mkdir -p /home/iris/server_data/custom_assets 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 12/20] RUN mkdir -p /home/iris/server_data/datastore 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 13/20] WORKDIR /iriswebapp 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 14/20] COPY docker/webApp/iris-entrypoint.sh . 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 15/20] COPY docker/webApp/wait-for-iriswebapp.sh . 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 16/20] COPY ./source . 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 17/20] RUN chmod +x /iriswebapp/dependencies/evtxdump_binaries/linux/x64/fd 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 18/20] RUN chmod +x /iriswebapp/dependencies/evtxdump_binaries/linux/x64/evtx_dump 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 19/20] RUN chmod +x iris-entrypoint.sh 0.0s => CACHED [iriswebapp_app:v2.3.3 iriswebapp 20/20] RUN chmod +x wait-for-iriswebapp.sh 0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

tsukiazuma commented 10 months ago

One more case, now I can only run build with command: docker-compose build, not run with command: docker-compose build --no-cache app worker after remove the application with dockers docker-compose rm app worker

Below logs error, when I run docker-compose build --no-cache app worker

[+] Building 464.7s (9/29)
 => [internal] load build definition from Dockerfile                                                                                                             0.0s
 => => transferring dockerfile: 85B                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/python:3.9                                                                                                  464.6s
 => [internal] load build context                                                                                                                                0.0s
 => => transferring context: 149.41kB                                                                                                                            0.0s
 => CACHED [iriswebapp  1/20] FROM docker.io/library/python:3.9@sha256:30678bb79d9eeaf98ec0ce83cdcd4d6f5301484ef86873a711e69df2ca77e8ac                          0.0s
 => => resolve docker.io/library/python:3.9@sha256:30678bb79d9eeaf98ec0ce83cdcd4d6f5301484ef86873a711e69df2ca77e8ac                                              0.0s
 => [compile-image 2/6] RUN apt-get update                                                                                                                      68.1s
 => [compile-image 3/6] RUN python -m venv /opt/venv                                                                                                             5.4s
 => [compile-image 4/6] COPY source/dependencies /dependencies                                                                                                   0.1s
 => [compile-image 5/6] COPY source/requirements.txt /                                                                                                           0.1s
 => ERROR [compile-image 6/6] RUN pip3 install -r requirements.txt                                                                                             389.0s
------
 > [compile-image 6/6] RUN pip3 install -r requirements.txt:
#0 0.828 Processing /dependencies/docx_generator-0.8.0-py3-none-any.whl
#0 0.843 Processing /dependencies/iris_interface-1.2.0-py3-none-any.whl
#0 0.852 Processing /dependencies/evtx2splunk-2.0.1-py3-none-any.whl
#0 0.862 Processing /dependencies/iris_evtx-1.2.0-py3-none-any.whl
#0 0.871 Processing /dependencies/iris_check_module-1.0.1-py3-none-any.whl
#0 0.881 Processing /dependencies/iris_vt_module-1.2.1-py3-none-any.whl
#0 0.890 Processing /dependencies/iris_misp_module-1.3.0-py3-none-any.whl
#0 0.899 Processing /dependencies/iris_webhooks_module-1.0.4-py3-none-any.whl
#0 0.908 Processing /dependencies/iris_intelowl_module-0.1.0-py3-none-any.whl
#0 60.95 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb0f62f91f0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/azure-identity/
#0 121.5 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb0f62f95e0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/azure-identity/
#0 182.6 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb0f62f90a0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/azure-identity/
#0 244.6 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb0f63281f0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/azure-identity/
#0 308.7 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb0f6328370>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/azure-identity/
#0 368.7 ERROR: Could not find a version that satisfies the requirement azure-identity==1.10.0 (from versions: none)
#0 368.7 ERROR: No matching distribution found for azure-identity==1.10.0
------
failed to solve: executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1
whikernel commented 2 months ago

Hi!

Did you manage to solve the issue?