https://livekit.io logo
Join Slack
Powered by
# helpdesk
  • w

    wonderful-manchester-12533

    01/27/2021, 12:37 AM
    sweet lmk once you've enabled it
  • w

    wonderful-manchester-12533

    01/27/2021, 12:37 AM
    what timezone are you in?
  • d

    dry-elephant-14928

    01/27/2021, 12:37 AM
    will do
  • d

    dry-elephant-14928

    01/27/2021, 12:37 AM
    pacific
  • w

    wonderful-manchester-12533

    01/27/2021, 12:37 AM
    cool*
  • d

    dry-elephant-14928

    01/27/2021, 12:37 AM
    ah looks like can't enable forking because it's private
  • d

    dry-elephant-14928

    01/27/2021, 12:38 AM
    maybe push the repo to your own origin? (i.e. manual fork)
  • w

    wonderful-manchester-12533

    01/27/2021, 12:38 AM
    sure, I can do that
  • w

    wonderful-manchester-12533

    01/27/2021, 12:46 AM
    alright, deploying with multi-node enabled. Do you think that would actually stop the error I'm seeing?
  • d

    dry-elephant-14928

    01/27/2021, 12:48 AM
    hah it might.. though, this is a real timing issue with disconnection states. I'm looking at resolving
  • w

    wonderful-manchester-12533

    01/27/2021, 12:49 AM
    lol ya I figured it wouldn't solve the original problem with the socket but maybe just circumvent it
  • d

    dry-elephant-14928

    01/27/2021, 12:51 AM
    yeah it should get around it, redis uses a publisher and it won't panic
  • w

    wonderful-manchester-12533

    01/27/2021, 12:51 AM
    alright back up now
    Copy code
    {"level":"info","ts":1611708658.1222212,"caller":"server/main.go:145","msg":"configured key provider","num_keys":1}
    {"level":"info","ts":1611708658.2630804,"caller":"server/main.go:178","msg":"using multi-node routing via redis","address":"livespot-lk-redis-production:6379"}
    unable to connect to redis: dial tcp 100.67.129.128:6379: connect: connection refused
    {"level":"info","ts":1611708679.9268491,"caller":"server/main.go:145","msg":"configured key provider","num_keys":1}
    {"level":"info","ts":1611708680.067002,"caller":"server/main.go:178","msg":"using multi-node routing via redis","address":"livespot-lk-redis-production:6379"}
    {"level":"info","ts":1611708680.0961013,"caller":"service/server.go:100","msg":"starting LiveKit server","address":":7880","nodeId":"ND_0000000000000000"}
  • w

    wonderful-manchester-12533

    01/27/2021, 12:51 AM
    perfect, that should help me for now
  • d

    dry-elephant-14928

    01/27/2021, 12:51 AM
    awesome!
  • w

    wonderful-manchester-12533

    01/27/2021, 1:01 AM
    With mutli-node it seems this issue still plagues me
  • w

    wonderful-manchester-12533

    01/27/2021, 1:01 AM
    Except this time the behavior is different. 1. Client attempts to open websocket connection 2. Server logs
    Copy code
    {
      "level": "info",
      "ts": 1611709273.0404878,
      "caller": "service/rtcservice.go:92",
      "msg": "new client connected",
      "room": "RM_pXmT5VY2q2vqChAQ3tDLym",
      "roomName": "8fb5bc1e-1918-4240-9e05-b1c01420152c",
      "name": "WzEsICJwdWJsaWMiLCAidXNlciIsICIweGM5ZTk0NjQ3NDg4NTJFQWZDMDlFOGM1MkEwZTA5MjQwQkFmYUMyNUMiXQ=="
    }
    3. Client hangs waiting for socket connection to open
  • w

    wonderful-manchester-12533

    01/27/2021, 1:03 AM
    I've been refreshing the page to close the socket which results in the server logging:
    Copy code
    {
      "level": "info",
      "ts": 1611709408.9634256,
      "caller": "service/rtcservice.go:110",
      "msg": "WS connection closed",
      "participant": "WzEsICJwdWJsaWMiLCAidXNlciIsICIweEZGQzgwYmQyQTQxM2YzN0UxMjVEMzlDMjgxQ2M4NUI4OGRjZWJGMjAiXQ=="
    }
  • d

    dry-elephant-14928

    01/27/2021, 1:04 AM
    so with #3, the client hangs?
  • w

    wonderful-manchester-12533

    01/27/2021, 1:04 AM
    yes waiting for the socket to emit an
    onopen
    event
  • d

    dry-elephant-14928

    01/27/2021, 1:05 AM
    it seems with single node, it was panicking when client disconnected abruptly..
  • d

    dry-elephant-14928

    01/27/2021, 1:05 AM
    but the client was able to connect right?
  • w

    wonderful-manchester-12533

    01/27/2021, 1:05 AM
    let me recreate that and see what happens on disconnect
  • w

    wonderful-manchester-12533

    01/27/2021, 1:05 AM
    in single-node? yes
  • d

    dry-elephant-14928

    01/27/2021, 1:05 AM
    yes.. ok
  • d

    dry-elephant-14928

    01/27/2021, 1:05 AM
    but with multi-node, client is hanging before connecting?
  • w

    wonderful-manchester-12533

    01/27/2021, 1:06 AM
    in single-node the only time the client would fail to connect is after the
    panic: send on closed channel
    event occurs in the server because then the server responds with
    503
    to all requests
  • d

    dry-elephant-14928

    01/27/2021, 1:06 AM
    yes, that is straight forward to resolve. I'm more concerned about the hanging for multi-node
  • w

    wonderful-manchester-12533

    01/27/2021, 1:06 AM
    in single node there is no response from the server to signal that the connection was accepted
  • w

    wonderful-manchester-12533

    01/27/2021, 1:07 AM
    you saw the acknowledgment from the server in the logs, on the client side this is what you see
12345...91Latest