mitre / caldera

Automated Adversary Emulation Platform
https://caldera.mitre.org
Apache License 2.0
5.48k stars 1.05k forks source link

Template 'index.html' not found #3009

Open noob2020-alt opened 2 months ago

noob2020-alt commented 2 months ago

Please forgive me as I am new to setting this up. I have tried to connect to caldera through various steps and I think I at the final point, but can't get the web UI working. I get the Template index not found.

Info that may be of use:

Running VM on ESXi 8 Ubuntu 22.04 LTS (Jammy Jellyfish) 16 GM ram 1 TB storage (thin provisioned)

So far I have used the posts in this issues thread to fix various errors I have encountered which has been helpful.

My steps:

Due to being a fresh Ubuntu 22.04 instal I had to add some dependencies for the issues I saw when trying to install Caldera on Ubuntu 24.04.

Installed upon first boot: python3-pip


golang ( I found this on stack overflow) sudo add-apt-repository ppa:longsleep/golang-backports sudo apt update sudo apt install golang-go


npm pip3 install docker, donut snap install vue pip3 install cryptography, openssl version (found in the issues thread)

This got the program running ok on the cli, but the webpage there is an issue.

Once I managed to narrow down the errors and install the appropriate fixes, I did the following:

rm -r conf/local.yml python3 server.py --fresh

caldera-cmd

NOTE I attempted the --insecure --build command first.

Since there were not errors, I went to the web UI and went to the webpage:

http://127.0.0.1:8888 -- output Template 'index.html' not found

I then saw a thread about changing the .env file in the magma folder.

I did this and rebooted system.

python3 server.py --build ## to attempt to rebuild the server:

caldera-build

I did the command npm i vue@3.2.26. - to address the issue with vue npm audit fix force -- to resolve the vulnerabilities found when compiling vue.

npm is installed and I attempted to try again by changing the npm to pnpm (saw this in the issue thread.).

Still not able to get a webpage.

I am not sure what I am doing wrong.

github-actions[bot] commented 2 months ago

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/

elegantmoose commented 2 months ago

Sounds like the UI components are not building and completing.

Can you run python3 server.py --fresh --insecure --build and provide full stacktrace?

noob2020-alt commented 2 months ago

Apologies for the delay. Here is the output:

Screenshot 2024-07-02 at 5 16 03 PM Screenshot 2024-07-02 at 5 25 42 PM

I tried to troubleshoot the errors, but was not successful.

elegantmoose commented 1 month ago

And you are sure you have NodeJS v16 or higher?

lukasz-gospodarek commented 1 month ago

Have the same error, running caldera from docker-compose

noob2020-alt commented 1 week ago

And you are sure you have NodeJS v16 or higher?

Sorry for the long delay. Yes I am sure I have it installed.

I am going to try and rebuild the VM again and try again, but this is an issue

cmndcntrlcyber commented 11 hours ago

I was having this issue also. I tried option B first, but Option A fixed it for me, after some troubleshooting with ChatGPT, I got this answer:

The issue you're encountering is related to the Node.js version installed on your system. The warnings indicate that several packages require a newer version of Node.js than the one currently installed (v12.22.9`). Specifically, many of the packages require at least Node.js version 14, 16, or 18.

Steps to Resolve the Issue

1. Upgrade Node.js

To resolve these warnings and ensure compatibility with the packages you are trying to install, you should upgrade Node.js to a more recent version. Here's how you can do that:

Option A: Using Node Version Manager (NVM)

Option B: Direct Installation

2. Verify the Node.js Version

3. Re-run the npm Install

4. Rebuild the Project

5. Re-run the Caldera Server Command

Upgrading Node.js should eliminate the EBADENGINE warnings and allow your project dependencies to install and function correctly.