Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on Docker Startup #3135

Open
mrisher23 opened this issue Feb 20, 2025 · 3 comments
Open

Errors on Docker Startup #3135

mrisher23 opened this issue Feb 20, 2025 · 3 comments
Assignees
Labels

Comments

@mrisher23
Copy link

Describe the bug
I have followed the directions for branch 4.2.0, 5.0.0 and master both using Docker and running locally on Ubuntu and Mac OSs. I'll limit this report to the MacOS Docker 5.0.0 branch since that was the most recent attempt.

To Reproduce
I followed the install guide as given in the readme.

Steps to reproduce the behavior:

  1. git clone https://github.com/mitre/caldera.git --recursive --branch 5.0.0
  2. cd caldera
  3. docker build . -t caldera:latest
  4. docker run -p 8888:8888 caldera:latest

Expected behavior
Docker image to launch successfully and allow login to the portal.

Actual behavior
The docker build appears to be successful; Starting the docker image produces several warnings and non fatal errors. Attempting to login to the server results in no UI response to the login button.

[+] Building 422.7s (35/35) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.87kB 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:24.04 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 333B 0.0s
=> [ 1/30] FROM docker.io/library/ubuntu:24.04 0.0s
=> [internal] load build context 0.4s
=> => transferring context: 100.56kB 0.4s
=> CACHED [ 2/30] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone 0.0s
=> CACHED [ 3/30] WORKDIR /usr/src/app 0.0s
=> [ 4/30] ADD . . 0.4s
=> [ 5/30] RUN if [ -z "$(ls plugins/stockpile)" ]; then echo "stockpile plugin not downloaded - please ens 0.2s
=> [ 6/30] RUN apt-get update && apt-get -y install python3 python3-pip python3-venv git curl golang-g 89.3s
=> [ 7/30] RUN if [ "false" = "true" ] ; then apt-get -y install mingw-w64; fi 0.2s
=> [ 8/30] RUN python3 -m venv /opt/venv/caldera 4.5s
=> [ 9/30] RUN pip3 install --no-cache-dir -r requirements.txt 49.5s
=> [10/30] RUN python3 -c "import app; import app.utility.config_generator; app.utility.config_generator.en 0.4s
=> [11/30] WORKDIR /usr/src/app/plugins/sandcat/gocat 0.0s
=> [12/30] RUN go mod tidy && go mod download 4.3s
=> [13/30] WORKDIR /usr/src/app/plugins/sandcat 0.0s
=> [14/30] RUN if [ "false" = "true" ] ; then cp ./update-agents.sh ./update-agents-copy.sh; fi 0.2s
=> [15/30] RUN if [ "false" = "true" ] ; then tr -d '\15\32' < ./update-agents-copy.sh > ./update-agents.sh 0.2s
=> [16/30] RUN if [ "false" = "true" ] ; then rm ./update-agents-copy.sh; fi 0.2s
=> [17/30] RUN ./update-agents.sh 43.4s
=> [18/30] RUN mkdir /tmp/gocatextensionstest 0.2s
=> [19/30] RUN cp -R ./gocat /tmp/gocatextensionstest/gocat 0.2s
=> [20/30] RUN cp -R ./gocat-extensions/* /tmp/gocatextensionstest/gocat/ 0.2s
=> [21/30] RUN cp ./update-agents.sh /tmp/gocatextensionstest/update-agents.sh 0.2s
=> [22/30] WORKDIR /tmp/gocatextensionstest 0.0s
=> [23/30] RUN mkdir /tmp/gocatextensionstest/payloads 0.2s
=> [24/30] RUN ./update-agents.sh 0.5s
=> [25/30] RUN if [ ! -d "/usr/src/app/plugins/atomic/data/atomic-red-team" ]; then git clone --dept 50.8s
=> [26/30] WORKDIR /usr/src/app/plugins/emu 0.0s
=> [27/30] RUN if [ $(grep -c "- emu" ../../conf/local.yml) ]; then apt-get -y install zlib1g unzip; 21.2s
=> [28/30] WORKDIR /usr/src/app 0.0s
=> [29/30] RUN apt-get update && apt-get install -y nodejs npm && (cd plugins/magma && npm instal 148.8s
=> [30/30] WORKDIR /usr/src/app 0.0s
=> exporting to image 6.6s
=> => exporting layers 6.6s
=> => writing image sha256:f714fc598d9eb640c929bb9ee5de0cdc482d07637dedaff33b47fbd8f8ec007d 0.0s
=> => naming to docker.io/library/caldera:latest 0.0s

What's next:
View a summary of image vulnerabilities and recommendations → docker scout quickview

docker run -p 8888:8888 caldera:latest
2025-02-20 17:27:12 INFO Using main config from conf/local.yml server.py:235
2025-02-20 17:27:13 INFO Invalid Github Gist personal API contact_gist.py:70
token provided. Gist C2 contact
will not be started.
INFO Generating temporary SSH private tunnel_ssh.py:26
key. Was unable to use provided
SSH private key
ERROR Error importing plugin=builder, No c_plugin.py:91
module named 'docker'
ERROR Error loading plugin=builder, c_plugin.py:59
'NoneType' object has no attribute
'description'
INFO Enabled plugin: stockpile app_svc.py:131
INFO Enabled plugin: magma app_svc.py:131
INFO Enabled plugin: response app_svc.py:131
INFO Enabled plugin: compass app_svc.py:131
INFO Enabled plugin: sandcat app_svc.py:131
INFO Enabled plugin: manx app_svc.py:131
INFO Enabled plugin: training app_svc.py:131
WARNING /usr/src/app/plugins/debrief/app/de warnings.py:110
brief_gui.py:159: SyntaxWarning:
invalid escape sequence '\s'
safe_id =
re.sub('[^A-Za-z0-9-_:.]', '',
re.sub('\s+', '-', module_obj.id))

2025-02-20 17:27:14 INFO Enabled plugin: debrief app_svc.py:131
INFO Enabled plugin: access app_svc.py:131
INFO Enabled plugin: fieldmanual app_svc.py:131
INFO Creating SSH listener on 0.0.0.0, logging.py:92
port 8022
INFO serving on 0.0.0.0:2222 server.py:741
WARNING Unable to properly load .donut for data_svc.py:436
payload
plugins.stockpile.app.donut.donut_h
andler due to failed import
WARNING upx does not meet the minimum app_svc.py:186
version of 0.0.0. Upx is an optional
dependency which adds more
functionality.
2025-02-20 17:27:16 WARNING Payload referenced in data_svc.py:469
e3db134c-4aed-4c5a-9607-c50183c9ef9
e but not found: Bypass-UAC.ps1
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
df94858e92a23d274ac1d70133d9150f
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
06d6ac81dae5c0f49dd3d5641eb2c81e
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
5b93df032e230056c21a3e57334f77d1
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
20277ce46ffe7d08083f8b5ca524b317
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
0424ccb447bfa66b94162266f55ecd52
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
2f32a5c66db68b291469a3ab49be9261
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
f1222384fe40cc71e7dea9d182014eaf
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
d9c1b1283c1ad6fdda27be021c4737d3
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
9d2e91b9241ae43b517be2be98bddfd9
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
dedfa0a54c9c13ce5714a0dc2e1f5d1a
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
18348573c1f989a6cca9e9bf10809700
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
a9c0234156994cab384418b43da52da4
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
d5ac8f5ec45224dc36453a9490845f23
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
80e752c5fc69a56ccb86bc90efc5eff6
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
8478297ebb155b34c412a0fde335eccd
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
683115a2ceeb045e6ffbf4487322b220
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
8a60db80ab6f4a6b1db758c95bacfafa
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
0aaebed766f7120873d5ad90c23355f8
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
854e480af3b5e2946bb3ae44916e951a
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
2929fac2296bf1041ba33c86d42d9a5a
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
c8e46a29cac614806da56b0be6b0e454
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
6401e9fc7007569199a38703f0aa0f0f
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
8e7c28877a9c7826fece190f185b534c
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
23dafb943f2f1a3e21e8204826c7b271
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
379509c4b83f252bc779446f0512e936
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
80be956df11e4a384333150807c3ccd9
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
d38cba2905e62b4c1a7e5c88137ce485
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
326a9797b0d59b8f6d5a3c384c564b9f
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
5ffa5b3b330848d39dc1728365dad61c
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
db8c6ba84f796a2f1fa1497b8dc1aae2
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
4d4b29abb6b1e580e33c0035c1fc37ad
WARNING Ability referenced in adversary c_adversary.py:90
ef4d997c-a0d1-4067-9efa-87c58682d
b71 but not found:
93127a8c6cdb05fd84f871a5faa9d7c7
WARNING Unable to build docs: hook.py:60

                         Configuration error:                               
                         There is a programmable error in your              
                         configuration file:                                
                                                                            
                         Traceback (most recent call last):                 
                           File                                             
                         "/opt/venv/caldera/lib/python3.12/site-p           
                         ackages/sphinx/config.py", line 356, in            
                         eval_config_file                                   
                             exec(code, namespace)  # NoQA: S102            
                             ^^^^^^^^^^^^^^^^^^^^^                          
                           File                                             
                         "/usr/src/app/plugins/fieldmanual/sphinx           
                         -docs/conf.py", line 10, in <module>               
                             from                                           
                         plugins.fieldmanual.utils.plugin_docs              
                         import import_plugin_docs                          
                           File                                             
                         "/usr/src/app/plugins/fieldmanual/sphinx           
                         -docs/../../../plugins/fieldmanual/utils           
                         /plugin_docs.py", line 3, in <module>              
                             from distutils.dir_util import                 
                         copy_tree                                          
                         ModuleNotFoundError: No module named               
                         'distutils'                                        
                                                                            
                                                                            
                INFO     All systems ready.                    server.py:104

From browser:
/login GET 200
/assets/index907db634.css GET 200
/assets/index.bc299bb9.js GET 200
/api/v2/config/plugins GET 401
/api/v2/config/main HEAD 401
/assets/caldera-logo.6a24b35b.png GET 304
/assets/favicon.cc1c341b.ico GET 304
/enter POST 302
/ GET 200
/api/v2/config/health GET 401
/api/v2/config/main HEAD 401

Desktop (please complete the following information):

  • OS: MacOS 15.3
  • Docker Engine 27.5.1
  • Browser Chrome
  • Version 5.0.0
Copy link

Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/

@notmarshmllow
Copy link

notmarshmllow commented Feb 24, 2025

facing same issue, running on win 11 via docker

PS E:\caldera> docker run -p 8888:8888 caldera:latest
2025-02-24 03:08:19 INFO     Using main config from conf/local.yml server.py:235
                    INFO     Invalid Github Gist personal API contact_gist.py:70
                             token provided. Gist C2 contact
                             will not be started.
                    INFO     Generating temporary SSH private   tunnel_ssh.py:26
                             key. Was unable to use provided
                             SSH private key
2025-02-24 03:08:20 INFO     Enabled plugin: training             app_svc.py:131
                    INFO     Enabled plugin: access               app_svc.py:131
                    INFO     Enabled plugin: sandcat              app_svc.py:131
                    INFO     Enabled plugin: stockpile            app_svc.py:131
                    INFO     Enabled plugin: magma                app_svc.py:131
                    ERROR    Error importing plugin=builder, No   c_plugin.py:91
                             module named 'docker'
                    ERROR    Error loading plugin=builder,        c_plugin.py:59
                             'NoneType' object has no attribute
                             'description'
                    INFO     Enabled plugin: manx                 app_svc.py:131
                    INFO     Enabled plugin: compass              app_svc.py:131
                    INFO     Enabled plugin: fieldmanual          app_svc.py:131
                    INFO     Enabled plugin: response             app_svc.py:131
                    WARNING  /usr/src/app/plugins/debrief/app/de warnings.py:110
                             brief_gui.py:159: SyntaxWarning:
                             invalid escape sequence '\s'
                               safe_id =
                             re.sub('[^A-Za-z0-9-_:.]', '',
                             re.sub('\s+', '-', module_obj.id))

                    INFO     Enabled plugin: debrief              app_svc.py:131
                    INFO     Creating SSH listener on 0.0.0.0,     logging.py:92
                             port 8022
                    INFO     serving on 0.0.0.0:2222               server.py:741
                    WARNING  Unable to properly load .donut for  data_svc.py:436
                             payload
                             plugins.stockpile.app.donut.donut_h
                             andler due to failed import
                    WARNING  upx does not meet the minimum        app_svc.py:186
                             version of 0.0.0. Upx is an optional
                             dependency which adds more
                             functionality.
2025-02-24 03:08:21 WARNING  Payload referenced in               data_svc.py:469
                             e99cce5c-cb7e-4a6e-8a09-1609a221b90
                             a but not found: Akagi64.exe
                    WARNING  Payload referenced in               data_svc.py:469
                             b7344901-0b02-4ead-baf6-e3f629ed545
                             f but not found: Akagi64.exe
                    WARNING  Payload referenced in               data_svc.py:469
                             e3db134c-4aed-4c5a-9607-c50183c9ef9
                             e but not found: Bypass-UAC.ps1
                    WARNING  Payload referenced in               data_svc.py:469
                             95ad5d69-563e-477b-802b-4855bfb3be0
                             9 but not found: Akagi64.exe
                    WARNING  Payload referenced in               data_svc.py:469
                             95ad5d69-563e-477b-802b-4855bfb3be0
                             9 but not found: Akagi64.exe
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             df94858e92a23d274ac1d70133d9150f
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             06d6ac81dae5c0f49dd3d5641eb2c81e
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             5b93df032e230056c21a3e57334f77d1
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             20277ce46ffe7d08083f8b5ca524b317
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             0424ccb447bfa66b94162266f55ecd52
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             2f32a5c66db68b291469a3ab49be9261
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             f1222384fe40cc71e7dea9d182014eaf
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             d9c1b1283c1ad6fdda27be021c4737d3
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             9d2e91b9241ae43b517be2be98bddfd9
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             dedfa0a54c9c13ce5714a0dc2e1f5d1a
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             18348573c1f989a6cca9e9bf10809700
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             a9c0234156994cab384418b43da52da4
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             d5ac8f5ec45224dc36453a9490845f23
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             80e752c5fc69a56ccb86bc90efc5eff6
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             8478297ebb155b34c412a0fde335eccd
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             683115a2ceeb045e6ffbf4487322b220
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             8a60db80ab6f4a6b1db758c95bacfafa
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             0aaebed766f7120873d5ad90c23355f8
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             854e480af3b5e2946bb3ae44916e951a
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             2929fac2296bf1041ba33c86d42d9a5a
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             c8e46a29cac614806da56b0be6b0e454
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             6401e9fc7007569199a38703f0aa0f0f
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             8e7c28877a9c7826fece190f185b534c
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             23dafb943f2f1a3e21e8204826c7b271
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             379509c4b83f252bc779446f0512e936
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             80be956df11e4a384333150807c3ccd9
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             d38cba2905e62b4c1a7e5c88137ce485
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             326a9797b0d59b8f6d5a3c384c564b9f
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             5ffa5b3b330848d39dc1728365dad61c
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             db8c6ba84f796a2f1fa1497b8dc1aae2
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             4d4b29abb6b1e580e33c0035c1fc37ad
                    WARNING  Ability referenced in adversary   c_adversary.py:90
                             ef4d997c-a0d1-4067-9efa-87c58682d
                             b71 but not found:
                             93127a8c6cdb05fd84f871a5faa9d7c7
                    WARNING  Unable to build docs:                    hook.py:60

                             Configuration error:
                             There is a programmable error in your
                             configuration file:

                             Traceback (most recent call last):
                               File
                             "/opt/venv/caldera/lib/python3.12/site-p
                             ackages/sphinx/config.py", line 356, in
                             eval_config_file
                                 exec(code, namespace)  # NoQA: S102
                                 ^^^^^^^^^^^^^^^^^^^^^
                               File
                             "/usr/src/app/plugins/fieldmanual/sphinx
                             -docs/conf.py", line 10, in <module>
                                 from
                             plugins.fieldmanual.utils.plugin_docs
                             import import_plugin_docs
                               File
                             "/usr/src/app/plugins/fieldmanual/sphinx
                             -docs/../../../plugins/fieldmanual/utils
                             /plugin_docs.py", line 3, in <module>
                                 from distutils.dir_util import
                             copy_tree
                             ModuleNotFoundError: No module named
                             'distutils'


                    INFO     All systems ready.                    server.py:104

 ██████╗ █████╗ ██╗     ██████╗ ███████╗██████╗  █████╗
██╔════╝██╔══██╗██║     ██╔══██╗██╔════╝██╔══██╗██╔══██╗
██║     ███████║██║     ██║  ██║█████╗  ██████╔╝███████║
██║     ██╔══██║██║     ██║  ██║██╔══╝  ██╔══██╗██╔══██║
╚██████╗██║  ██║███████╗██████╔╝███████╗██║  ██║██║  ██║
 ╚═════╝╚═╝  ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝

@shiracamus
Copy link

shiracamus commented Feb 24, 2025

There seems to be an incompatibility with the new Python library and the setuptools module needs to be installed.

--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,7 @@ RUN python3 -m venv $VIRTUAL_ENV
 ENV PATH="$VIRTUAL_ENV/bin:$PATH"
 
 # Install pip requirements
+RUN pip3 install setuptools
 RUN pip3 install --no-cache-dir -r requirements.txt
 
 # Set up config file and disable atomic by default

It is better to add it to requirements.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants