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

Got error while deploy with docker-compose after update to 5.0.0 #3090

Open
dickens88 opened this issue Nov 22, 2024 · 1 comment
Open

Got error while deploy with docker-compose after update to 5.0.0 #3090

dickens88 opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels

Comments

@dickens88
Copy link

dickens88 commented Nov 22, 2024

Describe the bug
Hi , i cloned the project with command git clone https://github.com/mitre/caldera.git --recursive , and i'm sure the magma have been downloaded in the plugins folder. But when i try to deploy with docker-compose, it got this error.

caldera-1  | Traceback (most recent call last):
caldera-1  |   File "/opt/venv/caldera/lib/python3.11/site-packages/aiohttp/web_urldispatcher.py", line 561, in __init__
caldera-1  |     raise ValueError("Not a directory")
caldera-1  | ValueError: Not a directory
caldera-1  | 
caldera-1  | The above exception was the direct cause of the following exception:
caldera-1  | 
caldera-1  | Traceback (most recent call last):
caldera-1  |   File "/usr/src/app/server.py", line 260, in <module>
caldera-1  |     run_tasks(services=app_svc.get_services(), run_vue_server=args.uiDevHost)
caldera-1  |   File "/usr/src/app/server.py", line 78, in run_tasks
caldera-1  |     loop.run_until_complete(RestApi(services).enable())
caldera-1  |   File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
caldera-1  |     return future.result()
caldera-1  |            ^^^^^^^^^^^^^^^
caldera-1  |   File "/usr/src/app/app/api/rest_api.py", line 32, in enable
caldera-1  |     self.app_svc.application.router.add_static('/assets', 'plugins/magma/dist/assets/', append_version=True)
caldera-1  |   File "/opt/venv/caldera/lib/python3.11/site-packages/aiohttp/web_urldispatcher.py", line 1136, in add_static
caldera-1  |     resource = StaticResource(
caldera-1  |                ^^^^^^^^^^^^^^^
caldera-1  |   File "/opt/venv/caldera/lib/python3.11/site-packages/aiohttp/web_urldispatcher.py", line 563, in __init__
caldera-1  |     raise ValueError(f"No directory exists at '{directory}'") from error
caldera-1  | ValueError: No directory exists at '/usr/src/app/plugins/magma/dist/assets'
caldera-1 exited with code 1

Is this magma mandatory for this version? or is it possbile to disable this part somehow?

@individual10121
Copy link

I ran into a similar issue. I had to go into the magma directory and run the following:
npm install npm run build

Then I was able to get it to launch. But now I have an issue where no OS is listed in the deploy agents menu

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

3 participants