You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for any related issues and avoided creating a duplicate issue.
Component
Web UI
Description
When starting the simulator via docker compose up, the web-ui can't connect to the simulator.
Version
1.3.3
Node.js version
v20.12.2
System
Win 10
Expected result
Running docker compose up results in the calibrated charging stations being accessible via the UI. We expect the same behaviour as when running the simulator via pnpm start and pnpm preview (i.e. not in a container)
Actual result
Running docker compose up results in the configured charging stations successfully being simulated, e.g. trying to connect to the provided supervision URL maintained in the config-file in the docker-folder.
But when opening the UI via http://localhost:3030/ it throws an error:
Toast:
Error: Error in WebSocket to UI server 'localhost'
Info: WebSocket to UI server closed
Browser console:
WebSocket connection to ws://localhost:8080/ failed'
Error in WebSocket to UI server localhost
When running the simulator via pnpm start and pnpm preview the UI works as expected
Steps to reproduce
clone repository
create config.json and idtags.json in src/assets as copy of the template files config-template.json and idtags.json
We'll think about integrating the UI and simulator in a docker image. If we do, we'll provide a PR
On a different docker image than the one running the simulator?
Since the Web UI is far from being secure, the recommended setup is to deploy the simulator alone with the UI server enabled and protected behind a WSS reverse proxy.
And setup the UI locally to connect to the multiples simulators instance deployed to monitor them. The authentication less UI is then not exposed to the public.
Duplicate issue
Component
Web UI
Description
When starting the simulator via docker compose up, the web-ui can't connect to the simulator.
Version
1.3.3
Node.js version
v20.12.2
System
Win 10
Expected result
Running
docker compose up
results in the calibrated charging stations being accessible via the UI. We expect the same behaviour as when running the simulator viapnpm start
andpnpm preview
(i.e. not in a container)Actual result
Running
docker compose up
results in the configured charging stations successfully being simulated, e.g. trying to connect to the provided supervision URL maintained in the config-file in the docker-folder.But when opening the UI via http://localhost:3030/ it throws an error:
Toast:
Browser console:
ws://localhost:8080/
failed'localhost
When running the simulator via
pnpm start
andpnpm preview
the UI works as expectedSteps to reproduce
cd ui
cd web
docker compose up -d --build --force-recreate
Attachments
The text was updated successfully, but these errors were encountered: