Skip to content
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

Why Is the Session UI Not Displayed on the Bootstrap Server? #1681

Open
Yunseo-R opened this issue Dec 23, 2024 · 1 comment
Open

Why Is the Session UI Not Displayed on the Bootstrap Server? #1681

Yunseo-R opened this issue Dec 23, 2024 · 1 comment
Labels
question Any question about leshan Wait for answer Issue blocked waiting user feedback

Comments

@Yunseo-R
Copy link

Yunseo-R commented Dec 23, 2024

Question

I was testing Leshan on Ubuntu.
I connected using the PSK method on localhost and successfully established the connection.
On the Leshan server, I was able to check and monitor the client I had registered.
The logs indicated that both the bootstrap server and the Leshan server successfully connected.

However, I couldn’t see any information about the client session on the bootstrap server. Normally, the session flow should be displayed on the UI, but the screen remains blank.

So far, I’ve tested this environment about 20 times using my localhost server and the demo server. Out of all these attempts, I was able to see the session flow UI on the bootstrap server only once.

At this point, it feels like it’s not supposed to work at all, and the one time it did, I’m starting to wonder if I just imagined it.


Log

(Delete my personal information such as endpoint)

Leshan Client Demo Interactive Console :

Commands:
  help     Display help information about the specified command.
  list     List available Objects, Instances and Resources
  create   Enable a new Object
  delete   Disable a new object
  update   Trigger a registration update.
  send     Send data to server
  collect  Collect data to send it later with 'send' command
  move     Simulate client mouvement.

Press Ctl-C to exit.

                  LeshanClient 2024-12-23 15:51:56,959 [INFO] Starting Leshan client ...
                  LeshanClient 2024-12-23 15:51:56,963 [INFO] Leshan client[endpoint:(my endpoint)] started.
     DefaultRegistrationEngine 2024-12-23 15:51:56,964 [INFO] Trying to start bootstrap session to coaps://localhost:5786 ...
       DefaultEndpointsManager 2024-12-23 15:51:57,024 [INFO] New CoAP over DTLS endpoint based on Californium/Scandium library created,
 for server coaps://localhost:5786 at coaps://[0:0:0:0:0:0:0:0]:41820.
             DtlsSessionLogger 2024-12-23 15:51:57,047 [INFO] DTLS Full Handshake initiated by client : STARTED ...
             DtlsSessionLogger 2024-12-23 15:51:57,110 [INFO] DTLS Full Handshake initiated by client : SUCCEED
     DefaultRegistrationEngine 2024-12-23 15:51:57,156 [INFO] Bootstrap started
                      Security 2024-12-23 15:51:57,229 [DEBUG] Write on Security resource /0/1/0
                      Security 2024-12-23 15:51:57,230 [DEBUG] Write on Security resource /0/1/1
                      Security 2024-12-23 15:51:57,231 [DEBUG] Write on Security resource /0/1/2
                      Security 2024-12-23 15:51:57,231 [DEBUG] Write on Security resource /0/1/3
                      Security 2024-12-23 15:51:57,232 [DEBUG] Write on Security resource /0/1/4
                      Security 2024-12-23 15:51:57,232 [DEBUG] Write on Security resource /0/1/5
                      Security 2024-12-23 15:51:57,233 [DEBUG] Write on Security resource /0/1/6
                      Security 2024-12-23 15:51:57,233 [DEBUG] Write on Security resource /0/1/7
                      Security 2024-12-23 15:51:57,234 [DEBUG] Write on Security resource /0/1/8
                      Security 2024-12-23 15:51:57,234 [DEBUG] Write on Security resource /0/1/9
                      Security 2024-12-23 15:51:57,235 [DEBUG] Write on Security resource /0/1/10
                      Security 2024-12-23 15:51:57,235 [DEBUG] Write on Security resource /0/1/11
                      Security 2024-12-23 15:51:57,236 [DEBUG] Write on Security resource /0/1/12
                        Server 2024-12-23 15:51:57,246 [DEBUG] Write on Server resource /1/0/0
                        Server 2024-12-23 15:51:57,247 [DEBUG] Write on Server resource /1/0/1
                        Server 2024-12-23 15:51:57,248 [DEBUG] Write on Server resource /1/0/2
                        Server 2024-12-23 15:51:57,248 [DEBUG] Write on Server resource /1/0/6
                        Server 2024-12-23 15:51:57,249 [DEBUG] Write on Server resource /1/0/7
     DefaultRegistrationEngine 2024-12-23 15:51:57,262 [INFO] Bootstrap finished coaps://localhost:5786.
       DefaultEndpointsManager 2024-12-23 15:51:57,269 [INFO] New CoAP over DTLS endpoint based on Californium/Scandium library created,
 for server coaps://localhost:5684 at coaps://[0:0:0:0:0:0:0:0]:48344.
     DefaultRegistrationEngine 2024-12-23 15:51:57,270 [INFO] Trying to register to coaps://localhost:5684 ...
             DtlsSessionLogger 2024-12-23 15:51:57,274 [INFO] DTLS Full Handshake initiated by client : STARTED ...
             DtlsSessionLogger 2024-12-23 15:51:57,326 [INFO] DTLS Full Handshake initiated by client : SUCCEED
     DefaultRegistrationEngine 2024-12-23 15:51:57,350 [INFO] Registered with location ''.
     DefaultRegistrationEngine 2024-12-23 15:51:57,351 [INFO] Next registration update to coaps://localhost:5684 in 53s...
     DefaultRegistrationEngine 2024-12-23 15:52:50,352 [INFO] Trying to update registration to coaps://localhost:5684 (response timeout 120000ms)...
     DefaultRegistrationEngine 2024-12-23 15:52:50,375 [INFO] Registration update succeed.
     DefaultRegistrationEngine 2024-12-23 15:52:50,375 [INFO] Next registration update to coaps://localhost:5684 in 53s...
                  LeshanClient 2024-12-23 15:53:10,688 [INFO] Destroying Leshan client ...
     DefaultRegistrationEngine 2024-12-23 15:53:10,690 [INFO] Trying to deregister to coaps://localhost:5684 ...
     DefaultRegistrationEngine 2024-12-23 15:53:10,699 [INFO] De-register response DELETED(202) null.
                  LeshanClient 2024-12-23 15:53:10,702 [INFO] Leshan client destroyed.

스크린샷 2024-12-23 155522

@Yunseo-R Yunseo-R added the question Any question about leshan label Dec 23, 2024
@sbernard31
Copy link
Contributor

@Yunseo-R

I tested with master using client demo.
I tested against bsserver demo locally and against the sandbox at https://leshan.eclipseprojects.io/bs/ and it works for me.
(tested on debian stable)

Could you give me more details information about your set-up (version used)? So maybe I can try to reproduce.
Does your endpoint name use "strange" character ? Did you try with simple endpoint name ?

@sbernard31 sbernard31 added the Wait for answer Issue blocked waiting user feedback label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Any question about leshan Wait for answer Issue blocked waiting user feedback
Projects
None yet
Development

No branches or pull requests

2 participants