You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "HadesKing (via GitHub)" <gi...@apache.org> on 2023/03/31 03:06:53 UTC
[GitHub] [eventmesh] HadesKing opened a new issue, #3587: [Question] How to deploy dashboard ?
HadesKing opened a new issue, #3587:
URL: https://github.com/apache/eventmesh/issues/3587
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
### Question
When I wanted to run and deploy dashboard on my computer, I had some problems.
1. After I studied the tutorial (https://eventmesh.apache.org/docs/instruction/runtime-with-docker), I deployed runtime in a virtual machine (it works fine. I wrote a demo based on the http protocol that also works well.)
2. Then I opened the dashboard project source code using the IDE (VS Code) and executed the command `npm run dev`.
3. Then use google browser to visit `http://localhost:3000/` as the following picture shows.
I don't know how to do the next step, what is `http://localhost:10106`? What should I fill in?

Help me, thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
Re: [I] [Question] How to deploy dashboard ? (eventmesh)
Posted by "Pil0tXia (via GitHub)" <gi...@apache.org>.
Pil0tXia commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1859181052
@brampurnot May you please provide some debug logs? It will be helpful.
Dashboard now only supports localhost connection. It will support connecting to any instance in the near future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] github-actions[bot] commented on issue #3587: [Question] How to deploy dashboard ?
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1491227937
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](https://github.com/apache/eventmesh/blob/develop/CONTRIBUTING.md).
Want to get closer to the community?
|WeChat Assistant|WeChat Public Account|Slack|
|-|-|-|
|<img src="https://github.com/apache/eventmesh/blob/master/docs/images/contact/wechat-assistant.jpg?raw=true" width="128"/>|<img src="https://github.com/apache/eventmesh/blob/master/docs/images/contact/wechat-official.jpg?raw=true" width="128"/>|[Join Slack Chat](https://join.slack.com/t/apacheeventmesh/shared_invite/zt-1ooav8slu-ijUI98MiEI501jhK1cabKQ)|
Mailing Lists:
| Name | Description |Subscribe |Unsubscribe|Archive
| ---- | ---- |---- | ---- | ---- |
|Users |User support and questions mailing list| [Subscribe](mailto:users-subscribe@eventmesh.incubator.apache.org) |[Unsubscribe](mailto:users-unsubscribe@eventmesh.incubator.apache.org) |[Mail Archives](https://lists.apache.org/list.html?users@eventmesh.apache.org)|
|Development |Development related discussions| [Subscribe](mailto:dev-subscribe@eventmesh.incubator.apache.org) |[Unsubscribe](mailto:dev-unsubscribe@eventmesh.incubator.apache.org) |[Mail Archives](https://lists.apache.org/list.html?dev@eventmesh.apache.org)|
|Commits |All commits to repositories| [Subscribe](mailto:commits-subscribe@eventmesh.incubator.apache.org) |[Unsubscribe](mailto:commits-unsubscribe@eventmesh.incubator.apache.org) |[Mail Archives](https://lists.apache.org/list.html?commits@eventmesh.apache.org)|
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] HadesKing commented on issue #3587: [Question] How to deploy dashboard ?
Posted by "HadesKing (via GitHub)" <gi...@apache.org>.
HadesKing commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1493258738
Thank you for your reply!
What is it ? What files are in this package ?

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
Re: [I] [Question] How to deploy dashboard ? (eventmesh)
Posted by "HattoriHenzo (via GitHub)" <gi...@apache.org>.
HattoriHenzo commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1670575768
@xwm1992 it works fine on my Windows pc. Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
Re: [I] [Question] How to deploy dashboard ? (eventmesh)
Posted by "brampurnot (via GitHub)" <gi...@apache.org>.
brampurnot commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1828667915
Has anyone succeeded in making this work with an HTTPS connection? I deployed event mesh on K8S and exposed it over Istio. The API endpoints are working fine but it keeps on returning an HTTP 404 when I try to configure it in the dashboard.
Not sure what the problem is so before I debug it a bit more, I would like to know if others faced issues with this.
Bram
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] HadesKing commented on issue #3587: [Question] How to deploy dashboard ?
Posted by "HadesKing (via GitHub)" <gi...@apache.org>.
HadesKing commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1520014952
> @HadesKing Thanks for this documentation. I am on Windows and in my case I have reproduced those steps but I have an error:
>
> 
>
> Is your Dockerfile is in the docker folder or in the root folder?
@xwm1992 Yes.
@HattoriHenzo you need make the tar.gz package and the dockerfile same directory.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] HadesKing commented on issue #3587: [Question] How to deploy dashboard ?
Posted by "HadesKing (via GitHub)" <gi...@apache.org>.
HadesKing commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1495583454
@mxsm
Solved.
Prerequisites: You need to read this tutorial and install rocketmq first.(https://eventmesh.apache.org/docs/instruction/store-with-docker)
Here are the steps I took to solve this problem.
First, you need a runtime image of the latest code(from https://github.com/apache/eventmesh ) . Since in the 1.4.0 eventmesh image there is no expose 10106 port open, you need to make your own image)
1. Open cmd in the root directory and use these command.
`gradlew.bat clean jar dist`
`gradlew.bat installPlugin`
`gradlew.bat tar `
2. You can see a tar.gz archive in the build directory.
3. Use `Dockerfile` to package the image, its content is this.
```
FROM openjdk:8u111-jdk
MAINTAINER mxsm ljbmxsm@gmail.com
WORKDIR /data
RUN mkdir /data/app
ADD eventmesh-1.8.0-release.tar.gz /data/app/eventmesh
WORKDIR /data/app/eventmesh/bin
EXPOSE 10000
EXPOSE 10105
EXPOSE 10106
ENV DOCKER true
CMD bash start.sh
```
4. Excute a docker command.
`docker build -t apache-eventmesh-runtime:20230404-1 .`
Congratulations. You can get an event mesh image.
5. Run this image.
```
docker run -d -p 10000:10000 -p 10105:10105 -p 10106:10106 \
-v /data/eventmesh/rocketmq/conf/eventmesh.properties:/data/app/eventmesh/conf/eventmesh.properties \
-v /data/eventmesh/rocketmq/conf/rocketmq-client.properties:/data/app/eventmesh/conf/rocketmq-client.properties \
apache-eventmesh-runtime:20230404-1
```
Second,download the dashboard source code.(Is a zip package from https://github.com/apache/eventmesh-dashboard.)
Open the source code of dashboard using VS Code
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] mxsm commented on issue #3587: [Question] How to deploy dashboard ?
Posted by "mxsm (via GitHub)" <gi...@apache.org>.
mxsm commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1492912545
@HadesKing If you are using the 1.4.0 version of EventMesh Docker, you may have trouble connecting to the dashboard because the image does not expose port 10106 for admin access. The current solution is to build a Docker image using the latest EventMesh code and run the updated image, which should allow you to connect to the dashboard.


docker run on WSL.
The current dashboard does not load the admin address through the local configuration file, but the address can be modified in the Endpoint.tsx file.

Dockerfile
```
FROM openjdk:8u111-jdk
MAINTAINER mxsm ljbmxsm@gmail.com
WORKDIR /data
RUN mkdir /data/app
ADD eventmesh-1.8.0-release.tar.gz /data/app/eventmesh
WORKDIR /data/app/eventmesh/bin
EXPOSE 10000
EXPOSE 10105
EXPOSE 10106
ENV DOCKER true
CMD bash start.sh
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] xwm1992 commented on issue #3587: [Question] How to deploy dashboard ?
Posted by "xwm1992 (via GitHub)" <gi...@apache.org>.
xwm1992 commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1519591854
> @HadesKing Thanks for this documentation. I am on Windows and in my case I have reproduced those steps but I have an error:
>
> 
>
> Is your Dockerfile is in the docker folder or in the root folder?
you need make the tar.gz package and the dockerfile same directory.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
Re: [I] [Question] How to deploy dashboard ? (eventmesh)
Posted by "Pil0tXia (via GitHub)" <gi...@apache.org>.
Pil0tXia commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1859661810
@brampurnot It is a known issue for us and we have already assigned a develeoper to resolve it. For now the only way to use the dashboard properly is to access it from a machine that has Runtime started.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
Re: [I] [Question] How to deploy dashboard ? (eventmesh)
Posted by "brampurnot (via GitHub)" <gi...@apache.org>.
brampurnot commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1859707624
Ok thanks for the info!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
Re: [I] [Question] How to deploy dashboard ? (eventmesh)
Posted by "brampurnot (via GitHub)" <gi...@apache.org>.
brampurnot commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1859253081
Hi @Pil0tXia ,
It's a bit strange but it actually works. I think something might be wrong with the error message in the dashboard. When you enter the URL and click on save, it shows the error as you can see on the screenshot:
<img width="1440" alt="Screenshot 2023-12-17 at 20 00 38" src="https://github.com/apache/eventmesh/assets/17197669/2b66d734-5d98-4b4c-80b9-46e3efac7986">
However after a while, I noticed that the configuration and the metrics started populating so it seems to work. Could it be that the /client endpoint does not exist? Because that's the endpoint it calls when you click on save:
<img width="817" alt="Screenshot 2023-12-17 at 20 04 41" src="https://github.com/apache/eventmesh/assets/17197669/19ce7246-07b0-401d-ba15-af7a7b8f44be">
Bram
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] HadesKing closed issue #3587: [Question] How to deploy dashboard ?
Posted by "HadesKing (via GitHub)" <gi...@apache.org>.
HadesKing closed issue #3587: [Question] How to deploy dashboard ?
URL: https://github.com/apache/eventmesh/issues/3587
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org
[GitHub] [eventmesh] HattoriHenzo commented on issue #3587: [Question] How to deploy dashboard ?
Posted by "HattoriHenzo (via GitHub)" <gi...@apache.org>.
HattoriHenzo commented on issue #3587:
URL: https://github.com/apache/eventmesh/issues/3587#issuecomment-1518345251
@HadesKing Thanks for this documentation. In my case I have reproduce those steps but I have an error:

Is your Dockerfile is in the docker folder?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org