-
Notifications
You must be signed in to change notification settings - Fork 313
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
Recording Fails with error - Failed to read the 'localStorage' property from 'Window': Access is denied for this document. #240
Comments
Are you sure that setting is checked for the chrome instance that Jibri is using? |
Did you check the community posts about similar issues? https://community.jitsi.org/search?q=Failed%20to%20read%20the%20%27localStorage%27%20property%20from%20%27Window%27%3A%20Access%20is%20denied%20for%20this%20document |
@bbaldino Yes, as far as I know there is only one Chrome installed. This Ubuntu installation is running inside a VirtualBox VM so I can login using graphical interface (gdm3) and run the chrome normally. I'm not sure how I can see the exact path / version of chrome which Jibri is running? Edit: |
You run chrome as your user. Selenium starts chrome in new user folder. |
@bbaldino @damencho Thank you for your help. I think that I found the root cause now. It's the SSL certificate used by the local jitsy meet server (the default self generated SSL certificate). I recompiled jibri with the following line added: I'm using this setup for just for local testing, so it should be good enough for now. When I need to use it in any other setup, I will obtain a valid certificate and this error should disappear. However, it would be great if the logs could say something more specific, instead of |
You can add the CA certificate to the CA storage of the jibri's chrome : certutil -d sql:/home/jibri/.pki/nssdb -A -t TC -n "CAAD" -i CAAD48.crt It's simplier than recompile. |
Hi, Like many also stuck trying to get jibri in docker-jisti-meet to work. I modified jibri itself like this:
So this did help - it resolves the Access is denied:
So the call page fails to load. I think the reason is CORS. The browser.0.log has:
This is confusing since this method logged is "leaveCallAndQuitBrowser". But I presume that is CORS policy blocked this request it would have blocked earlier requests too. Since API requests to the jitsi-meet server side fail that is a a credible explanation as to why the call page didn't load. So it does seem like adding a "Access-Control-Allow-Origin: *" on the Jitsi-meet side might dodge this but I'm not sure if that is safe - don't know how these API calls are protected. Otherwise jibri really needs to use the proper name of the jitsi-meet instance and not meet.jitsi. |
In the context of docker-jitsi-meet, where this should "just work" it definitely doesn't. So for this case: Inside the jibri container there is a /etc/jitsi/jibri/config.json Unlike the other containers this is not on a volume, it appears to be generated from the .env with the help of jibri/rootfs/defaults/config.json - which is inside the container as /defaults/config.json. Anyway, in there it says:
We end up at https://meet.jitsi since we are talking to xmpp.jitsi.meet. So this won't work inside docker with the use or jitsi.meet and the internal docker addresses. And it doesn't look like there is a way to tell it the real domain. So it looks like jibri needs a new config element in config.json which allows you to "fix" the conference domain and I can then put in https://conf.elided.com/ resulting in ChomeDriver opening the call page on the right domain that has the right cert and isn't cross-domain. So I'm going to try to make this change |
I'm having trouble recompiling Jibri after making the changes to the JibriSelenium.kt file. |
This is a good topic for the community forum, please start a thread at community.jitsi.org. |
Hi, Could you please mention the steps of your solution? |
Based on comment from @elbow I solved the problem by extending the jibri.yml file with the followin: This way for the jibri container resolves meet.jitsi internally to the web container |
OS: Ubuntu 19.04
Both jitsi-meet and jibri are running on the same machine.
Added this to /etc/hosts:
127.0.0.1 meet.jitsylocaltest123.io
I can visit this url locally, and I can start the call. However, any time I click "Start Recording" it fails to record.
/var/log/jitsi/jibri/log.0.txt contains this:
I checked the threads about disabling "Block third party cookies" setting in Chrome - and it was already unchecked - still the same error.
The text was updated successfully, but these errors were encountered: