gshang2017 / docker

Synology nas docker
600 stars 111 forks source link

ubuntu 16.04 docker baidu 加载失败,请重试 #45

Open yuritry opened 4 years ago

yuritry commented 4 years ago

执行 docker create --name=baidunetdisk -p 5800:5800 -p 5900:5900 -v /root/baidu:/config -v /home/baidu/baidunetdiskdownload:/config/baidunetdiskdownload --restart unless-stopped johngong/baidunetdisk:latest

浏览器 连接 5800,vnc连接5900,连接不上,显示: 加载失败,请重试。 多次尝试都无结果,删掉 -v /root/baidu:/config 也一样错误。

请问会是什么问题? 谢谢!

yuritry commented 4 years ago

05/11/2020 19:44:49 Got connection from client 127.0.0.1 05/11/2020 19:44:49 other clients: 05/11/2020 19:44:49 Got 'ws' WebSockets handshake 05/11/2020 19:44:49 Got protocol: binary 05/11/2020 19:44:49 - webSocketsHandshake: using binary/raw encoding 05/11/2020 19:44:49 - WebSockets client version hybi-13 05/11/2020 19:44:49 Disabled X server key autorepeat. 05/11/2020 19:44:49 to force back on run: 'xset r on' (3 times) 05/11/2020 19:44:49 incr accepted_client=1 for 127.0.0.1:56182 sock=10 05/11/2020 19:44:49 Client Protocol Version 3.8 05/11/2020 19:44:49 Protocol version sent 3.8, using 3.8 05/11/2020 19:44:49 rfbProcessClientSecurityType: executing handler for type 1 05/11/2020 19:44:49 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8 05/11/2020 19:44:49 Pixel format for client 127.0.0.1: 05/11/2020 19:44:49 32 bpp, depth 24, little endian 05/11/2020 19:44:49 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0 05/11/2020 19:44:49 no translation needed 05/11/2020 19:44:49 Enabling NewFBSize protocol extension for client 127.0.0.1 05/11/2020 19:44:49 Enabling full-color cursor updates for client 127.0.0.1 05/11/2020 19:44:49 Using image quality level 6 for client 127.0.0.1 05/11/2020 19:44:49 Using JPEG subsampling 0, Q79 for client 127.0.0.1 05/11/2020 19:44:49 Using compression level 9 for client 127.0.0.1 05/11/2020 19:44:49 Enabling LastRect protocol extension for client 127.0.0.1 05/11/2020 19:44:49 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC) 05/11/2020 19:44:49 Using tight encoding for client 127.0.0.1 05/11/2020 19:44:49 client_set_net: 127.0.0.1 0.0021 05/11/2020 19:44:58 created selwin: 0x200024 05/11/2020 19:44:58 called initialize_xfixes() browser engine version: 1.0.1.2 (node:1029) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 05/11/2020 19:45:07 copy_tiles: allocating first_line at size 33 (node:1029) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [ 'http_code=undefined&Yme=undefined&Logid=undefined&data=undefined' ]

gshang2017 commented 4 years ago

ubuntu 16.04应该可以运行。 检查你的网络配置,是否有去广告等软件阻挡了baidunetdisk的连接。

yuritry commented 4 years ago

谢谢。 运行没问题,就是连不上。机器是2核2G的vps。换浏览器,换软件,换电脑,都连不上。先转圈,然后显示:加载失败,请重试。

gshang2017 commented 4 years ago

如果你直接用vps的ip地址加端口访问都显示这样。说明问题在vps端,软件连接到百度有问题。

yuritry commented 4 years ago

我在自己机器上测试,没问题。 vbs 是openvz的,没有防火墙,只安装了宝塔,连接宝塔没问题。跟这个有关系吗? 谢谢!

yuritry commented 4 years ago

10/11/2020 22:17:34 got closure, reason 1001 10/11/2020 22:17:34 rfbProcessClientNormalMessage: read: Connection reset by peer 10/11/2020 22:17:34 client_count: 0 10/11/2020 22:17:34 Client 127.0.0.1 gone 10/11/2020 22:17:34 Statistics events Transmit/ RawEquiv ( saved) 10/11/2020 22:17:34 FramebufferUpdate : 444 | 0/ 0 ( 0.0%) 10/11/2020 22:17:34 LastRect : 18 | 216/ 216 ( 0.0%) 10/11/2020 22:17:34 tight : 836 | 206693/ 6839600 ( 97.0%) 10/11/2020 22:17:34 RichCursor : 1 | 1374/ 1374 ( 0.0%) 10/11/2020 22:17:34 TOTALS : 1299 | 208283/ 6841190 ( 97.0%) 10/11/2020 22:17:34 Statistics events Received/ RawEquiv ( saved) 10/11/2020 22:17:34 PointerEvent : 300 | 1800/ 1800 ( 0.0%) 10/11/2020 22:17:34 FramebufferUpdate : 445 | 4450/ 4450 ( 0.0%) 10/11/2020 22:17:34 SetEncodings : 1 | 56/ 56 ( 0.0%) 10/11/2020 22:17:34 SetPixelFormat : 1 | 20/ 20 ( 0.0%) 10/11/2020 22:17:34 TOTALS : 747 | 6326/ 6326 ( 0.0%) 10/11/2020 22:17:35 Got connection from client 127.0.0.1 10/11/2020 22:17:35 other clients: 10/11/2020 22:17:35 Got 'ws' WebSockets handshake 10/11/2020 22:17:35 Got protocol: binary 10/11/2020 22:17:35 - webSocketsHandshake: using binary/raw encoding 10/11/2020 22:17:35 - WebSockets client version hybi-13 10/11/2020 22:17:35 Disabled X server key autorepeat. 10/11/2020 22:17:35 to force back on run: 'xset r on' (3 times) 10/11/2020 22:17:35 incr accepted_client=7 for 127.0.0.1:53766 sock=10 10/11/2020 22:17:35 Client Protocol Version 3.8 10/11/2020 22:17:35 Protocol version sent 3.8, using 3.8 10/11/2020 22:17:35 rfbProcessClientSecurityType: executing handler for type 1 10/11/2020 22:17:35 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8 10/11/2020 22:17:35 Pixel format for client 127.0.0.1: 10/11/2020 22:17:35 32 bpp, depth 24, little endian 10/11/2020 22:17:35 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0 10/11/2020 22:17:35 no translation needed 10/11/2020 22:17:35 Enabling NewFBSize protocol extension for client 127.0.0.1 10/11/2020 22:17:35 Enabling full-color cursor updates for client 127.0.0.1 10/11/2020 22:17:35 Using image quality level 6 for client 127.0.0.1 10/11/2020 22:17:35 Using JPEG subsampling 0, Q79 for client 127.0.0.1 10/11/2020 22:17:35 Using compression level 9 for client 127.0.0.1 10/11/2020 22:17:35 Enabling LastRect protocol extension for client 127.0.0.1 10/11/2020 22:17:35 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC) 10/11/2020 22:17:35 Using tight encoding for client 127.0.0.1 10/11/2020 22:17:35 client_set_net: 127.0.0.1 0.0001 10/11/2020 22:17:35 active keyboard: turning X autorepeat off. (node:1027) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

yuritry commented 4 years ago

11/11/2020 17:56:18 client_count: 0 11/11/2020 17:56:18 Client 172.17.0.1 gone 11/11/2020 17:56:18 Statistics events Transmit/ RawEquiv ( saved) 11/11/2020 17:56:18 FramebufferUpdate : 325 | 0/ 0 ( 0.0%) 11/11/2020 17:56:18 ZRLE : 570 | 31959/ 1410848 ( 97.7%) 11/11/2020 17:56:18 ServerIdentify : 1 | 42/ 42 ( 0.0%) 11/11/2020 17:56:18 SupportedEncoding : 1 | 96/ 96 ( 0.0%) 11/11/2020 17:56:18 SupportedMessage : 1 | 76/ 76 ( 0.0%) 11/11/2020 17:56:18 PointerPos : 1 | 12/ 12 ( 0.0%) 11/11/2020 17:56:18 RichCursor : 1 | 402/ 402 ( 0.0%) 11/11/2020 17:56:18 TOTALS : 900 | 32587/ 1411476 ( 97.7%) 11/11/2020 17:56:18 Statistics events Received/ RawEquiv ( saved) 11/11/2020 17:56:18 ClientCutText : 3 | 400/ 400 ( 0.0%) 11/11/2020 17:56:18 PointerEvent : 440 | 2640/ 2640 ( 0.0%) 11/11/2020 17:56:18 FramebufferUpdate : 326 | 3260/ 3260 ( 0.0%) 11/11/2020 17:56:18 SetEncodings : 1 | 80/ 80 ( 0.0%) 11/11/2020 17:56:18 SetPixelFormat : 1 | 20/ 20 ( 0.0%) 11/11/2020 17:56:18 TOTALS : 771 | 6400/ 6400 ( 0.0%) 11/11/2020 17:56:20 Got connection from client 172.17.0.1 11/11/2020 17:56:20 other clients: 11/11/2020 17:56:20 Normal socket connection 11/11/2020 17:56:20 Disabled X server key autorepeat. 11/11/2020 17:56:20 to force back on run: 'xset r on' (3 times) 11/11/2020 17:56:20 incr accepted_client=15 for 172.17.0.1:58766 sock=10 11/11/2020 17:56:20 Client Protocol Version 3.8 11/11/2020 17:56:20 Protocol version sent 3.8, using 3.8 11/11/2020 17:56:20 rfbProcessClientSecurityType: executing handler for type 1 11/11/2020 17:56:20 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8 11/11/2020 17:56:21 Pixel format for client 172.17.0.1: 11/11/2020 17:56:21 8 bpp, depth 8 11/11/2020 17:56:21 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6 11/11/2020 17:56:21 rfbProcessClientNormalMessage: ignoring unsupported encoding type ultraZip 11/11/2020 17:56:21 Using compression level 9 for client 172.17.0.1 11/11/2020 17:56:21 Enabling X-style cursor updates for client 172.17.0.1 11/11/2020 17:56:21 Enabling full-color cursor updates for client 172.17.0.1 11/11/2020 17:56:21 Enabling cursor position updates for client 172.17.0.1 11/11/2020 17:56:21 Enabling KeyboardLedState protocol extension for client 172.17.0.1 11/11/2020 17:56:21 Enabling NewFBSize protocol extension for client 172.17.0.1 11/11/2020 17:56:21 Enabling SupportedMessages protocol extension for client 172.17.0.1 11/11/2020 17:56:21 Enabling SupportedEncodings protocol extension for client 172.17.0.1 11/11/2020 17:56:21 Enabling ServerIdentity protocol extension for client 172.17.0.1 11/11/2020 17:56:21 Using ZRLE encoding for client 172.17.0.1 11/11/2020 17:56:41 client_set_net: 172.17.0.1 20.0163 11/11/2020 17:56:41 active keyboard: turning X autorepeat off. (node:1027) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

gshang2017 commented 3 years ago

这日志看不出什么问题,我在vps上试了下是正常的。我认为还是你vps网络的问题。如果你真的要用,建议你卸载宝塔或者有快照功能备个份重新做个系统测试一下,看是否正常。

yuritry commented 3 years ago

谢谢。 重装了系统,运行: docker create --name=baidunetdisk -p 5800:5800 -p 5900:5900 -v /root/baidu:/config -v /root/baidu/downloads:/config/baidunetdiskdownload --restart unless-stopped johngong/baidunetdisk:latest 系统正常,但仍然无法连接:加载失败,请重试-105_1_ERR_NAME_NOT_RESOLVED

gshang2017 commented 3 years ago

改一下vps的dns试试。

DrPoohXi commented 3 years ago

我记得宝塔会自动加载防火墙规则,你手动用命令把所有规则清空,然后重启容器因为容器要要自动创建防火墙端口映射规则