参考官方Docker部署指引网页Self-Holding Guide -Docker
1.1、关于docker-compose的坑
1~4步很正常的通过,到第5步时,docker-compose up d
,这个docker-compose又是个什么鬼?
于是网上搜索安装docker-compse的方法,结果需要python的pip命令。
这里又折腾了一下,因为这台系统中已经安装过python3,但在/usr/bin/
下没有pip执行文件,于是找到python的安装路径/usr/bin/pip3.6
,并在/usr/bin/
下建立pip的链接:
ln -s /usr/bin/pip3.6 /usr/bin/pip3
此时有可能会提示pip的版本需要升级,如果这样,通过以下命令升级:
python -m pip install --upgrade pip
或
python3 -m pip install --upgrade pip
pip成功link之后,使用以下命令安装docker-compose:
pip3 install docker-compose --ignore-installed requests
1.2、Chrome不安全链接无法继续访问!
Jitsi是需要用到https的,第一次部署docker之后,在Chrome中输入https://xxx.xxx/
之后,会提示:
您的连接不是私密连接 攻击者可能会试图从 xxx.xxx.xxx.xxx 窃取您的信息(例如:密码、通讯内容或信用卡信息)。了解详情 NET::ERR_CERT_INVALID
此时点击高级
按钮,欲继续前往不安全连接
,纳尼!我的Chrome居然没有这个链接,记得以前是有的啊!
网上搜索解决方案,原来在此网页显示的时候,直接输入thisisunsafe
,Bingo!进入~
1.3、wss不能连接的坑!
按照docker部署指引网页Self-Holding Guide -Docker,做完第6步后,在Chrome中输入私服地址,愉快滴进入到Jitsi-meet首页!
约上小伙伴,打算来个畅快滴视频会议测试,然鹅界面总是提示 你已经断开。请检查你的网络连接。将会在xx秒后重新连接...
!
在浏览器中 检查
网页,在控制台获得以下错误信息:
1、无法建立到 wss://localhost:8443/xmpp-websocket?room=prospectivephasesexplodeby 服务器的连接。 lib-jitsi-meet.min.js:2:672470 2、[JitsiMeetJS.js] <getGlobalOnErrorHandler>: UnhandledError: Strophe: Websocket error [object Event] Script: null Line: null Column: null StackTrace: go/ct.Strophe.log@https://xxx.xxx.xxx.xxx:8443/libs/lib-jitsi-meet.min.js?v=5913:2:367497 error@https://xxx.xxx.xxx.xxx:8443/libs/lib-jitsi-meet.min.js?v=5913:2:636220 _onError@https://xxx.xxx.xxx.xxx:8443/libs/lib-jitsi-meet.min.js?v=5913:2:675693 Logger.js:154:22 r Logger.js:154 getGlobalOnErrorHandler JitsiMeetJS.js:532 onerror middleware.js:108 callErrorHandler GlobalOnErrorHandler.js:61 log strophe.util.js:88 error strophe.umd.js:1392 _onError strophe.umd.js:5730 3、[modules/xmpp/ strophe.util.js] <go/ct.Strophe.log>: Strophe: Websocket error [object Event] Logger.js:154:22 r Logger.js:154 log strophe.util.js:89 error strophe.umd.js:1392 _onError strophe.umd.js:5730 4、[connection.js] CONNECTION FAILED: connection.otherError Logger.js:152:50 i Logger.js:152 o connection.js:184 emit events.js:158 connectionHandler xmpp.js:359 _stropheConnectionCb XmppConnection.js:308 _changeConnectStatus strophe.umd.js:3011 _doDisconnect strophe.umd.js:3052 _interceptDoDisconnect strophe.stream-management.js:222 _disconnect strophe.umd.js:5617 _onError strophe.umd.js:5734 5、[JitsiMeetJS.js] <getGlobalOnErrorHandler>: UnhandledError: connection.otherError Script: null Line: null Column: null StackTrace: n/a Logger.js:154:22 r Logger.js:154 getGlobalOnErrorHandler JitsiMeetJS.js:532 onunhandledrejection middleware.js:124 6、uncaught exception: connection.otherError
按照字面意思,在wss连接xmpp服务时出现的问题,应该是服务器连接超时!
可是怎么解决这个问题呢?
wss://localhost:8443/xmpp-websocket?room=prospectivephasesexplodeby 服务器的连接。
这个localhost是什么鬼,外网访问localhost本来就不对啊!
一定是配置的问题,果然在部署指引 Configuration
部分,发现一个 PUBLIC_URL
的配置项。
然后在 .env
文件中也发现了以下内容:
# Public URL for the web service (required) #PUBLIC_URL=https://meet.example.com
果断开放注释,把私服地址完整输入,再 docker-compose up -d
,解决。
PS:参考资料2也谈到了这一点。