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] eventMesh dashboard does not connect to eventmesh registry container #4774

Closed
3 tasks done
erfuuan opened this issue Feb 17, 2024 · 17 comments
Closed
3 tasks done
Labels
bug Something isn't working Stale

Comments

@erfuuan
Copy link

erfuuan commented Feb 17, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Linux

EventMesh version

master

What happened

hello everyone
i want run the eventmesh container (eventmesh,dashboardl ,namesrv,broker)
when i want to use dashboard i get an error

Screenshot from 2024-02-18 00-21-45
Screenshot from 2024-02-18 00-21-57

How to reproduce

Screenshot from 2024-02-18 00-21-45
Screenshot from 2024-02-18 00-21-57

Debug logs

i search in the internet but i can not find anything

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@erfuuan erfuuan added the bug Something isn't working label Feb 17, 2024
Copy link
Contributor

Welcome to the Apache EventMesh community!!
We are glad that you are contributing by opening this issue. :D

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our project, please let us know!
You can check out our contributing guide on contributing to EventMesh.

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

@Pil0tXia
Copy link
Member

You have the option to deploy both the container and the dashboard on the same machine, and access the dashboard from this machine to observe whether a successful connection to the cluster can be established.

If you wish to view the Registry page, it is necessary to deploy a corresponding registry center for the cluster, such as Nacos and etcd.

@erfuuan
Copy link
Author

erfuuan commented Feb 18, 2024

i deploy the containers with this docker compose :

`version: '3'
services:
rmqnamesrv:
image: apache/rocketmq:latest
command: sh mqnamesrv
ports:
- "9876:9876"
volumes:
- ./data/namesrv/logs:/root/logs
- ./data/namesrv/store:/root/store
container_name: rmqnamesrv
rmqbroker:
image: apache/rocketmq:latest
command: sh mqbroker -c ../conf/broker.conf
ports:
- "10911:10911"
- "10909:10909"
volumes:
- ./data/broker/logs:/root/logs
- ./data/broker/store:/root/store
links:
- rmqnamesrv:namesrv
environment:
NAMESRV_ADDR: namesrv:9876
container_name: rmqbroker
eventmesh:
image: apache/eventmesh:latest
ports:
- "10000:10000"
- "10105:10105"
- "10205:10205"
- "10106:10106"
volumes:
- ./data/eventmesh/conf/eventmesh.properties:/data/app/eventmesh/conf/eventmesh.properties
- ./data/eventmesh/conf/rocketmq-client.properties:/data/app/eventmesh/conf/rocketmq-client.properties
container_name: eventmesh
eventmesh-dashboard:
image: erfuuan/eventmesh-dashboard:latest
ports:
- "8080:80"
container_name: eventmesh-dashboard

networks:
eventmesh:
name: eventmesh
external: true
`

i see a eventmesh container with telnet

Screenshot from 2024-02-18 12-10-54

but my dashboard does not wotk

@Pil0tXia
Copy link
Member

Is there any EventMesh port occupied by other applications? Does the examples work? You may check EventMesh Runtime logs for detailed running status.

@erfuuan
Copy link
Author

erfuuan commented Feb 18, 2024

The eventmesh port is not busy
i check the log and is was ok

Screenshot from 2024-02-18 22-26-44

my images vesrion is latest

Is it possible that the versions of our images are different?

@Pil0tXia
Copy link
Member

May you please press F12 on the Dashboard page and check which endpoint request failed? You may also execute the same request on Postman to exclude browser issue.

@erfuuan
Copy link
Author

erfuuan commented Feb 19, 2024

dashboard call this route :
http://localhost:10106/registry

i call with postman but does not work

@Pil0tXia
Copy link
Member

dashboard call this route :
http://localhost:10106/registry

The http request timed out or returned a http status code?

@erfuuan
Copy link
Author

erfuuan commented Feb 19, 2024

response is 404 :
Screenshot from 2024-02-19 12-56-50

@Pil0tXia
Copy link
Member

Got it. The problem occurred due to the bulk renaming of endpoint addresses in the class org.apache.eventmesh.runtime.admin.handler.MetaHandler, while the corresponding modifications were not made in the dashboard frontend code.

image

The correct endpoint is now /meta instead of registry.

@Pil0tXia Pil0tXia changed the title [Bug] eventMesh dashboard does not connect to eventmesh container [Bug] eventMesh dashboard does not connect to eventmesh registry container Feb 19, 2024
@Pil0tXia
Copy link
Member

@erfuuan

Considering the "EventMesh Configuration" is displayed correctly in dashboard, and only the /registry endpoint has a 404 error, it seems that the EventMesh Runtime container is accessible, doesn't it?

@erfuuan
Copy link
Author

erfuuan commented Feb 19, 2024

yes

I called the method and it worked correctly. But when I called it with the POST method, it didn't work. Have you been able to fully execute or operate this technology without any issues?

@Pil0tXia
Copy link
Member

But when I called it with the POST method

I didn't get it. The /meta endpoint supports GET method only.

@erfuuan
Copy link
Author

erfuuan commented Feb 20, 2024

can i send you direct email?

@Pil0tXia
Copy link
Member

can i send you direct email?

okay

Copy link
Contributor

It has been 90 days since the last activity on this issue. Apache EventMesh values the voices of the community. Please don't hesitate to share your latest insights on this matter at any time, as the community is more than willing to engage in discussions regarding the development and optimization directions of this feature.

If you feel that your issue has been resolved, please feel free to close it. Should you have any additional information to share, you are welcome to reopen this issue.

@github-actions github-actions bot added the Stale label May 20, 2024
@Pil0tXia
Copy link
Member

See apache/eventmesh-dashboard#39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants