-
Notifications
You must be signed in to change notification settings - Fork 44
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
Problems with docker image #16
Comments
Update:
Now, I cannot even open the page. |
have you solved this problem now? cause i have the same issue. Thanks |
As I had main application in port 8000, I tried to run this docker image in port 8001. However, it failed as I have shown above. When I try to run it in 8000, it works as it should. I have no idea why. |
@mmzeynalli Thanks for the report, the missing mo_store folder is definitely a problem. Does the change in #18 solve the issue? The dashboard constantly sends HTTP requests to the main Simulator app. For that it uses URLs based on the API root which is hardcoded in the dashboard sources: https://github.com/agruenb/micro-ocpp-dashboard/blob/015a0e816ca4fc617e67acdbe7d067688d6b3939/.env.development To change the port number, you need to build the dashboard with a custom .env manifest. Here is the relevant description:
Edit: Also, the Simulator main app opens a listening socket for these HTTP requests on port 8000 by default. It's also necessary to change the port number here: MicroOcppSimulator/src/main.cpp Line 100 in edb62c2
|
It solves not being able to docker up, but, still I cannot connect to my websocket through this docker:
|
Can you connect to |
Yes, the default settings work just fine. |
And, I believe making port number flexible, without users changing code would be better experience. I had to move my main application port in order to be able to use this tool. |
I just tried to move MicroOcppSimulator to the same environment as my main code, creating "locality" with other containers. However, I get the same error, shown in previous comments. This is my websocket code:
|
Good day,
I recently wrote an OCPP application and wanted to test it with this nice simulator tool. However, when I run it in docker, I get error messages and empty web pages:
And there is no station/connectors in web page:
I am using MacOS 13.6
The text was updated successfully, but these errors were encountered: