Open thanaParis opened 3 weeks ago
Hello!
Thank you for the feedback, we will look into as soon as possible. In the meantime try to compile with full logging inside the libwebsocket.cpp class (https://github.com/EVerest/libocpp/blob/9398212ad0f11136bb3cd253b9282f3618148392/lib/ocpp/common/websocket/websocket_libwebsockets.cpp#L430). Also a fuller log would help better.
Things that can be tried:
Describe the bug
I'm trying to connect EVerest to a Security Profile 3 CitrineOS websocket server and running into an issue I'm unable to diagnose. Would really appreciate some help getting to the bottom of this π
EVerest is logging:
2024-05-31 00:45:39.542208 [ERRO] ocpp:OCPP201 void ocpp::WebsocketBase::log_on_fail(const std::error_code&, const boost::system::error_code&, int) :: Failed to connect to websocket server, error_code: 2, reason: Underlying Transport Error, HTTP response code: 0, category: websocketpp.transport, transport error code: 1, Transport error category: asio.ssl.stream
From the server side, I see that the client has hung up. I can't find any details about what the above error specifically means.
Here is the output of
openssl s_client -connect
using the certificates from EVerest's files to connect to CitrineOS's SP3 websocket server:It appears that the handshake is good. EVerest appears to have all the correct settings from the logs. Please help pinpoint why the connection is dropped?
To Reproduce
A demo has been set up at: https://github.com/ChrisWeissmann/everest-demo/tree/feature/add-citrine-support
The following command fires up EVerest and CitrineOS, to connect using SP3:
./demo-iso15118-2-ac-plus-ocpp.sh -3 -c -r $(pwd) -b feature/citrine-support
Note: This demo works with MaEVe! So the certificate structure is not the issue, as the same certificates are used. MaEVe has the same output from
openssl s_client -connect
. Other chargers have been able to connect to CitrineOS via SP3 in the past. I am not sure in this case whether Citrine needs to correct something or EVerest. I can't investigate deeper without knowing more about the error EVerest is throwing.Anything else?
No response