This message was deleted.
# helpdesk
s
This message was deleted.
✅ 1
e
Some service on your machine is using the same port
7881
c
I checked. but no such service is coming.. I tried restarting my machine as well
e
For your information, this is how you thread your messages.
c
ok
e
If you post in the main thread of the channel, all users of the channels will be notified. If you post in a thread like this, only those who are involved in the conversation will be notified. 🙂
c
okok.. got that "will don " repy in thread " now
e
You can run something like this to see what process is using your ports:
Copy code
lsof -Pi | grep LISTEN
c
shgupta@INGUWN171177:~$ sudo lsof -i :7881 [sudo] password for shgupta: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME livekit-s 3673 root 24u IPv6 49534 0t0 TCP *:7881 (LISTEN)
this is the output i got.. shall i kill this process?
e
If you want to free the port, you will have to end the process, yes.
c
i tried.. sudo kill -9 3673 .. but this is not working
it is not killing the process
??
e
How did you install livekit server, how did you start it? Please provide detailed steps of what you did.
c
used following commands: curl -sSL https://get.livekit.io | bash
started with this command:livekit-server --dev
now this livekit process getting start again and again
by itself
e
I don’t know how the Livekit server is started, but it sounds like it runs as a service that restarts automatically. Can you check if this is the case? You could start by listing all services like this:
Copy code
systemctl list-units --type=service --all
And then you could stop the service with something like:
Copy code
sudo systemctl stop <servicename>
c
ok let me check
got this output on running the above command:
shgupta@INGUWN171177:/etc$ sudo systemctl status livekit-docker.service ● livekit-docker.service - LiveKit Server Container Loaded: loaded (/etc/systemd/system/livekit-docker.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2023-07-10 191135 IST; 1min 1s ago Process: 3902 ExecStartPre=/usr/local/bin/docker-compose -f docker-compose.yaml down (code=exited, status=0/SUCCESS) Process: 3914 ExecStart=/usr/local/bin/docker-compose -f docker-compose.yaml up (code=exited, status=1/FAILURE) Process: 23679 ExecStop=/usr/local/bin/docker-compose -f docker-compose.yaml down (code=exited, status=0/SUCCESS) Main PID: 3914 (code=exited, status=1/FAILURE) Jul 10 191135 INGUWN171177 docker-compose[23679]: Container livekit-caddy-1 Removing Jul 10 191135 INGUWN171177 docker-compose[23679]: Container livekit-livekit-1 Removed Jul 10 191135 INGUWN171177 docker-compose[23679]: Container livekit-caddy-1 Removed Jul 10 191135 INGUWN171177 docker-compose[3914]: Error response from daemon: No such container: ce25b9f20bf8799793dd14da6daabf921f67bf7e85bf70ed7c646f833ea4539a Jul 10 191135 INGUWN171177 systemd[1]: livekit-docker.service: Main process exited, code=exited, status=1/FAILURE Jul 10 191135 INGUWN171177 docker-compose[23679]: Container livekit-redis-1 Stopped Jul 10 191135 INGUWN171177 docker-compose[23679]: Container livekit-redis-1 Removing Jul 10 191135 INGUWN171177 docker-compose[23679]: Container livekit-redis-1 Removed Jul 10 191135 INGUWN171177 systemd[1]: livekit-docker.service: Failed with result 'exit-code'. Jul 10 191135 INGUWN171177 systemd[1]: Stopped LiveKit Server Container.
when i check for livekit server process :
ps -ef|grep livekit root 16978 16957 0 19:09 ? 000000 /livekit-server --config /etc/livekit.yaml shgupta 24127 1930 0 19:14 pts/2 000000 grep --color=auto livekit
this is the putput i am getting
it seems this process is running again and again
e
I’m not very familiar with the LiveKit server setup. Let’s wait for some of the folks from the Pacific time zone to come online. Did you just follow this guide or did you try to install LiveKit server in another way? There seems to be some Docker involved and I’m not sure if this is the case with the default setup from the example.
c
iy worked 🙂
👍 1
i deleted the docker-compose
and the again downloaded the livekit and restart the server
okk
one more query i have .. where i can check the logs of livekit call logs
?
actuallly I need to understand the call flow of livekit by mapping logs and code ..
e
You are looking for the LiveKit server logs?
c
yes
i need to understand the call flows of livekit .. with code mapping
e
If you run
livekit-server --dev
, the logs will be printed directly to your console.
c
ohh ok.. Now i see .. i am nt able to connect the call .. getting this: 2023-07-10T193227.916+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"} 2023-07-10T193227.955+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"}
it is saying api key is invalid
any idea how to correct it ?? or what wrong i am doing ?
i generated the keys on server then started the server
then generated the token on client like emntioned on this page: https://docs.livekit.io/getting-started/cli-setup/
and then put the generated token in this app in custom section: https://meet.livekit.io/?tab=custom
after that i am getting this error
e
Is your LiveKit server exposed to the Internet or are you just running it locally as described in the guide?
c
locally
e
Then you can’t use https://meet.livekit.io/?tab=custom because there is no way to connect to your local server.
c
ws://localhost:7880/ this is the url i am using
okkk
then how can i connect to local server any other client ?
so any other way I can run calls and get logs and understand the flow
I need to understand the flows of these : create conf join conf rejoin conf mute others mute all mute conf
e
One question, what are you trying to accomplish? If you want to do some testing or play around with some client code, you can use the free LiveKit Cloud plan. Then you don’t have to worry about the server setup part.
You get 50GB of free bandwidth and don’t have to enter your credit card information. https://cloud.livekit.io
c
actually i wanna understand the server code flow and call logics
i am mainly need to play around server code not the client code 🙂 need to understand its features
e
Ok, if you want to deploy LiveKit yourself, this is the docs section: https://docs.livekit.io/oss/deployment/
c
only after this deployment i can run the server locally and egt the logs ??? no other way ??
because i tried this also .. got stucked in multiple issues
e
No, you can connect to the local server just like any other server. Just replace the URL with your local server’s URL. Like in the manual: https://docs.livekit.io/getting-started/cli-setup/#simulating-another-publisher
You can also download the example app and update the
.env
file with the details from your server: https://github.com/livekit-examples/meet?ref=meet
c
./livekit-cli join-room --url ws://localhost:7880 --api-key APIEuhDh8knPZeN --api-secret eTCfXuDVeoU c6uNtYMVofSQ0Le0A0t1lgeuuQvBpxuMD --room my-first-room --identity bot-user --publish-demo 2023/07/10 195558 "msg"="error establishing signal connection" "error"="websocket: bad handshake" "httpResponse"={"Status":"401 Unauthorized","StatusCode":401,"Proto":"HTTP/1.1","ProtoMajor":1,"ProtoMinor":1,"Header":{"Content-Type":["text/plain; charset=utf-8"],"Vary":["Origin"],"Date":["Mon, 10 Jul 2023 142558 GMT"],"Content-Length":["32"]},"Body":{"Reader":{}},"ContentLength":32,"TransferEncoding":[],"Close":false,"Uncompressed":false,"Trailer":{},"Request":{"Method":"GET","URL":"http://localhost:7880/rtc?protocol=8&amp;sdk=go&amp;version=1.0.13&amp;auto_subscribe=1","Proto":"HTTP/1.1","ProtoMajor":1,"ProtoMinor":1,"Header":{"Upgrade":["websocket"],"Connection":["Upgrade"],"Sec-WebSocket-Key":["Dx+1v6WhoCyvmYLj9gYFgQ=="],"Sec-WebSocket-Version":["13"],"Authorization":["Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODkwMjA3NTgsImlzcyI6IkFQSUV1aERoOGtuUFplTiIsIm5iZiI6MTY4ODk5OTE1OCwic3ViIjoiYm90LXVzZXIiLCJ2aWRlbyI6eyJyb29tIjoibXktZmlyc3Qtcm9vbSIsInJvb21Kb2luIjp0cnVlfX0.bZ1XsMLES0xkrrbnJsWzj4jJ_mesC54k1ntqcU3N3oE"]},"Body":null,"GetBody":"<unhandled-func>","ContentLength":0,"TransferEncoding":[],"Close":false,"Host":"localhost:7880","Form":{},"PostForm":{},"MultipartForm":null,"Trailer":{},"RemoteAddr":"","RequestURI":"","TLS":null,"Cancel":"<unhandled-chan>","Response":null},"TLS":null}
getting same erro
basicallly we need to start client locally also and not on the internet
e
you can test your localserver with this app
Follow the getting started here: https://github.com/livekit/livekit#getting-started and then pass in the generated access token into the token field in the app and click connect.
c
2023-07-10T195558.668+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"} 2023-07-10T195558.675+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"} 2023-07-10T200319.964+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"} 2023-07-10T200319.965+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"} 2023-07-10T200339.528+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"} 2023-07-10T200339.548+0530 WARN livekit service/auth.go:69 error handling request {"status": 401, "error": "invalid API key: APIEuhDh8knPZeN"}
getting the similar issue
e
Did you follow the instructions step by step?
Copy code
livekit-cli create-token \
    --api-key devkey --api-secret secret \
    --join --room my-first-room --identity user1 \
    --valid-for 24h
c
got it
thanks
earlier i was using my self generatd key and secret
now tried with default once
it worked 🙂
Thanks
for your time
🙂