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

Using 0.0.0.0 as IP address in env.sh causes api issues #887

Open
szymon-romanko opened this issue Feb 22, 2025 · 1 comment
Open

Using 0.0.0.0 as IP address in env.sh causes api issues #887

szymon-romanko opened this issue Feb 22, 2025 · 1 comment
Assignees
Labels
infrastructure Infra updates and fixes triage Issue needs to be triaged

Comments

@szymon-romanko
Copy link
Contributor

Describe the bug
If you use 0.0.0.0 as IP address when creating .env file with env.sh script, tracecat wont work properly
Any api calls from frontend to backend will fail, causing for example error where login form won't show up (similar to #779)

To reproduce
Follow steps from https://docs.tracecat.com/quickstart/install#docker-compose

  1. Clone repo - git clone https://github.com/TracecatHQ/tracecat.git
  2. Run env.sh, leave first and third option default, but in second (where you are asked to specify server ip address) set it to 0.0.0.0
  3. Start app - docker compose up -d
  4. Go to web ui (either localhost or local ip address) and try to log in
  5. Login form won't display properly (see Login form doesn't show up #779 for screenshots)

Problem comes from frontend trying to send api requests to wrong (0.0.0.0) address

Expected behavior
This isn't really problem with the app, but it can be confusing for new users. When they are installing tracecat and want it to listen on all interfaces, its common to set ip address to 0.0.0.0
A note of this in documentation or env.sh script displaying a warning would be probably enough

Screenshots
Image

Environment (please complete the following information):

  • Tracecat version: 0.26.1
  • Docker version: 27.5.1
  • Docker compose version: v2.32.4
  • Browser: Chrome 133.0.6943.127

Logs
Nothing important but attaching just in case
tracecat_log.txt

@topher-lo topher-lo added build Build system and package dependency changes triage Issue needs to be triaged infrastructure Infra updates and fixes and removed build Build system and package dependency changes labels Feb 22, 2025
@topher-lo
Copy link
Contributor

topher-lo commented Feb 22, 2025

@szymon-romanko thanks for looking into this. Will repro on my end and look for a fix / update docs. We definitely have users looking to modify the IP address and there should be more docs around this.

By the way, if you haven't already please join our #contributors channel in Discord! DM me and introduce yourself. Would love to support a Tracecat community member better 🦾

@topher-lo topher-lo self-assigned this Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infra updates and fixes triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants