I’ve simulated an edge and one backend, and i configured the controller API backend on port 8082, controller API websocket on 8085 (on edge configuration) and UI websocket on port 8085 (backend configuration).
when accessing the backend UI, i get connection established, there’s no edge showing on the page and when inspecting the page i get “connection to localhost:8082 failed”
please help as I am new to OpenEMS.
thank you!
EDIT: when simulating the edge, i get this message as well
<< [Worker-0] WARN [socket.AbstractWebsocketClient] Unable to send JSON-RPC message. WebsocketNotConnectedException: {“jsonrpc”:“2.0”,“method”:“timestampedData”,“params”:{}} >>, i think it’s the same issue (can’t connect with 8082)
can anyone explain what that port does?
Just make sure, that the port at BackendEdge.Websocket (here 8081) matches the configuration of EdgeController Api Backend (here ws://localhost:8081) and you should get a connection.
I followed all the steps on the documentation page, and the Edge.websocket is configured on 8081as well as the controller API Backend (localhost:8081), it still doesn’t work.
When starting BackendApp.bndrun, do you also see this log?
io.openems.common [io.openems.common.websocket.AbstractWebsocketServer] INFO : Starting [Edge.Websocket] websocket server [port=8081]
The EdgeWebsocket component has References to Metadata and Timedata and if you forgot to start andy of those, the EdgeWebsocket will also not start. In general the Getting Started guide should really work, me and some now colleagues of mine just tested it a few days ago successfully.
I think the issue was with my websockets all along (websocket 8082 to be exact), because I tried to run a backend and an Edge on an EC2 instance and the connection worked perfectly.