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

[Bug][Docker] HTTP 502 error appears on the login dashboard when deploying InLong dashboard #4779

Closed
2 tasks done
boatrainlsz opened this issue Jun 26, 2022 · 5 comments
Closed
2 tasks done
Assignees
Labels
type/bug Something is wrong

Comments

@boatrainlsz
Copy link
Contributor

boatrainlsz commented Jun 26, 2022

What happened

login fail
Screenshot_select-area_20220626135911

What you expected to happen

login success

How to reproduce

  1. sudo bin/inlong-daemon start manager
  2. sudo bin/inlong-daemon start dashboard
  3. open brower and visit 127.0.0.1, input default username and password(admin, inlong), click login
  4. login fail with 502 error code

Environment

os-release:

PRETTY_NAME="Deepin 20.6"
NAME="Deepin"
VERSION_ID="20.6"
VERSION="20.6"
VERSION_CODENAME="apricot"
ID=Deepin
HOME_URL="https://www.deepin.org/"
BUG_REPORT_URL="https://bbs.deepin.org/"

docker:

Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:03:11 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

I did some research, according to this answer, I add the --net host paramter to docker command in bin/inlong-daemon at line 112, then problem solved. I'm wondering is there any other way to solve this?

InLong version

1.2.0

InLong Component

InLong Manager, InLong Dashboard

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@theseusyang
Copy link

how to add --net host paramter to docker file? @boatrainlsz

@boatrainlsz
Copy link
Contributor Author

boatrainlsz commented Jun 27, 2022

how to add --net host paramter to docker file? @boatrainlsz

it's used in docker run command, see this

@dockerzhang
Copy link
Contributor

企业微信截图_94aa2c9e-9220-4985-9aa2-fd6c021fd38c

@dockerzhang
Copy link
Contributor

@theseusyang dashboard start using docker in bin/inlong-daemon:

docker run -d --name dashboard -e MANAGER_API_ADDRESS=${local_ip}:${manager_server_port} -p ${dashboard_mapping_port}:80 ${dashboard_docker_image}

I think you can check the conf/inlong.conf firstly, to make sure the MANAGER_API_ADDRESS environment is right.

@dockerzhang
Copy link
Contributor

@boatrainlsz this issue will close for not reproducing, please make sure the manager address configure correctly first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is wrong
Projects
None yet
Development

No branches or pull requests

3 participants