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

localhost:8888 is ok but not from a remote pc #3069

Open
tklauw opened this issue Oct 9, 2024 · 11 comments
Open

localhost:8888 is ok but not from a remote pc #3069

tklauw opened this issue Oct 9, 2024 · 11 comments
Labels

Comments

@tklauw
Copy link

tklauw commented Oct 9, 2024

Hi,
I may have missed something but installation was completed without error and I could access and use CALDERA from localhost without any problem. However, when trying from a remote PC, I could see the login screen but could not even login. It just keeps on showing the Login screen in a loop. CALDERA 5.0, using the "default.yml" config file on Ubuntu 22.04LTS.
Anyone has any idea? Thanks!

@tklauw tklauw added the question label Oct 9, 2024
@rcegan
Copy link

rcegan commented Oct 12, 2024

Ack on this issue, seeing the same thing when installing from docker.

@zrquan
Copy link

zrquan commented Oct 12, 2024

You might need to tweak the VITE_CALDERA_URL environment variable in the magma plugin. If your remote PC's IP is 172.18.0.2, you'll need to create file plugins/magma/.env:

VITE_CALDERA_URL=http://172.18.0.2:8888

Then run server.py with --build.

@rcegan
Copy link

rcegan commented Oct 13, 2024

Added the above to /plugins/magma/.env and built with Docker, however I end up running into the same issue where the login page is simply stuck.

@tklauw
Copy link
Author

tklauw commented Oct 14, 2024

You might need to tweak the VITE_CALDERA_URL environment variable in the magma plugin. If your remote PC's IP is 172.18.0.2, you'll need to create file plugins/magma/.env:

VITE_CALDERA_URL=http://172.18.0.2:8888

Then run server.py with --build.

Doesn't work for me. Still the same issue. Any other idea guys? Thanks!

@rachelcamurphy
Copy link

First, kill the server or else these changes will not take effect.

Ensure that within local.yml you have changed these lines to the IP address of the machine that the caldera server is deployed on. You will not use the IP address of the remote machine for any of the Caldera server configurations.

app.contact.http: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
app.contact.ftp.host: http://<YOUR-CALDERA-SERVER-IP>
app.frontend.api_base_url: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
host: http://<YOUR-CALDERA-SERVER-IP>

This should automatically configure the magma .env variables for you as well.

Once this file is saved, boot up Caldera with the following command:
python3 server.py -E local --build

@elegantmoose
Copy link
Contributor

@tklauw any luck?

@rcegan
Copy link

rcegan commented Nov 3, 2024

No luck on any of the above. Bug persists.

@thejaykobe
Copy link

No luck on any of the above. Bug persists.

This bug has seemed to persist since the release of 5.x. I'm in the same boat and have tried many things to get it to work....

@blinkomaniak
Copy link

First, kill the server or else these changes will not take effect.

Ensure that within local.yml you have changed these lines to the IP address of the machine that the caldera server is deployed on. You will not use the IP address of the remote machine for any of the Caldera server configurations.

app.contact.http: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
app.contact.ftp.host: http://<YOUR-CALDERA-SERVER-IP>
app.frontend.api_base_url: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
host: http://<YOUR-CALDERA-SERVER-IP>

This should automatically configure the magma .env variables for you as well.

Once this file is saved, boot up Caldera with the following command: python3 server.py -E local --build

This worked for me, excluding the ftp contact. That one I discarded because of an error in the building:

app.contact.http: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
app.frontend.api_base_url: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
host: http://<YOUR-CALDERA-SERVER-IP>

@thejaykobe
Copy link

First, kill the server or else these changes will not take effect.
Ensure that within local.yml you have changed these lines to the IP address of the machine that the caldera server is deployed on. You will not use the IP address of the remote machine for any of the Caldera server configurations.

app.contact.http: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
app.contact.ftp.host: http://<YOUR-CALDERA-SERVER-IP>
app.frontend.api_base_url: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
host: http://<YOUR-CALDERA-SERVER-IP>

This should automatically configure the magma .env variables for you as well.
Once this file is saved, boot up Caldera with the following command: python3 server.py -E local --build

This worked for me, excluding the ftp contact. That one I discarded because of an error in the building:

app.contact.http: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
app.frontend.api_base_url: http://<YOUR-CALDERA-SERVER-IP:<YOUR-CALDERA-SERVER-PORT-NUMBER>
host: http://<YOUR-CALDERA-SERVER-IP>

This works if you're doing a basic deploy on a vm or physical host like the stone ages.

Doing this in docker swarm or kubernetes doesn't work.

@akartach
Copy link

Any updates here?

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

8 participants