Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

运行electron-ssr后报错且无法访问外网 #26

Open
paradoxLOI opened this issue Aug 3, 2019 · 16 comments
Open

运行electron-ssr后报错且无法访问外网 #26

paradoxLOI opened this issue Aug 3, 2019 · 16 comments

Comments

@paradoxLOI
Copy link

您好,我此前一直使用electron-ssr,但今天上午在浏览器更新后突然无法访问外网(在这之后尝试换ubuntu自带的浏览器也无法访问),在尝试了多种方法无效后我选择删除配置文件并卸载electron-ssr并重装,在重装并按照Ubuntu.md的步骤将网络代理设置为手动后仍无法解决问题,具体信息如下,非常希望能够得到你的帮助,谢谢
操作系统: Ubunutu16.04LTS
浏览器:firefox 68.0.1
electron-ssr:0.2.6.deb
问题描述:从剪切板导入自己的配置后仍无法访问外网(如www.google.com)但能够访问大陆网站(如www.baidu.com)
log:
2019-08-03 16:26:36:029 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-03 16:26:36:907 [error] Unhandled Rejection at: Promise [object Promise], reason: SyntaxError: Unexpected token : in JSON at position 3
2019-08-03 16:26:37:105 [info] start download ssr
2019-08-03 16:26:37:897 [error] Unhandled Rejection at: Promise [object Promise], reason: SentryError: HTTP Error (429): Creation of this event was denied due to rate limiting
2019-08-03 16:26:37:898 [error] Unhandled Rejection at: Promise [object Promise], reason: SentryError: HTTP Error (429): Creation of this event was denied due to rate limiting
2019-08-03 16:26:44:456 [info] ssr download success
2019-08-03 16:26:47:355 [info] import config from clipboard
2019-08-03 16:26:47:496 [info] run command: python /home/paradox/.config/electron-ssr/shadowsocksr/shadowsocks/local.py (个人信息)
2019-08-03 16:26:47:504 [info] pac server listen at: 127.0.0.1:2333
2019-08-03 16:26:47:505 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-03 16:26:47:685 [error] 2019-08-03 16:26:47 INFO util.py:85 loading libcrypto from libcrypto.so.1.0.0

2019-08-03 16:26:47:686 [error] 2019-08-03 16:26:47 INFO local.py:50 local start with (个人信息)
2019-08-03 16:26:47 INFO local.py:54 starting local at 127.0.0.1:1080
2019-08-03 16:26:47 INFO asyncdns.py:324 dns server: [('127.0.1.1', 53)]

@qingshuisiyuan
Copy link
Owner

安装所需要的依赖后重启软件并设置系统代理。
参考:https://github.com/qingshuisiyuan/electron-ssr-backup/blob/master/Ubuntu.md

@qingshuisiyuan
Copy link
Owner

可以尝试:
sudo apt-get install libssl-dev
请继续跟帖

@qingshuisiyuan
Copy link
Owner

再者:
sudo apt install libsodium-devel
请将两条命令依次安装重启软件测试后继续跟帖
你提供的信息非常重要

@paradoxLOI
Copy link
Author

您好,十分感谢您的回复。
我首先执行了sudo apt-get install libssl-dev,成功安装
后执行sudo apt install libsodium-devel,显示无法定位软件包 libsodium-devel,在尝试 sudo apt-get update及sudo apt-get upgrade后仍无法定位软件包。
之后尝试执行 sudo apt-get install libsodium-dev ,成功安装。
按照参考设置系统代理,此后命令行启动electron-ssr。产生新的报错如下。再次感谢您的帮助!
2019-08-05 20:22:07:802 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-05 20:22:07:814 [info] run command: python /home/paradox/.config/electron-ssr/shadowsocksr/shadowsocks/local.py (个人信息)
2019-08-05 20:22:07:821 [info] pac server listen at: 127.0.0.1:2333
2019-08-05 20:22:07:822 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-05 20:22:07:857 [error] Unhandled Rejection at: Promise [object Promise], reason: Error: net::ERR_PROXY_CONNECTION_FAILED
2019-08-05 20:22:07:892 [error] http proxy server connect error: Error: Socket Closed
2019-08-05 20:22:07:898 [error] Unhandled Rejection at: Promise [object Promise], reason: Error: net::ERR_TUNNEL_CONNECTION_FAILED
2019-08-05 20:22:07:898 [error] Unhandled Rejection at: Promise [object Promise], reason: Error: net::ERR_TUNNEL_CONNECTION_FAILED
2019-08-05 20:22:07:903 [error] http proxy server connect error: Error: Socket Closed
2019-08-05 20:22:07:904 [error] Unhandled Rejection at: Promise [object Promise], reason: Error: net::ERR_TUNNEL_CONNECTION_FAILED
2019-08-05 20:22:07:905 [error] Unhandled Rejection at: Promise [object Promise], reason: Error: net::ERR_TUNNEL_CONNECTION_FAILED
2019-08-05 20:22:07:965 [error] 2019-08-05 20:22:07 INFO util.py:85 loading libcrypto from libcrypto.so.1.0.0

2019-08-05 20:22:07:966 [error] 2019-08-05 20:22:07 INFO local.py:50 local start with (个人信息)
2019-08-05 20:22:07 INFO local.py:54 starting local at 127.0.0.1:1080
2019-08-05 20:22:07 INFO asyncdns.py:324 dns server: [('127.0.1.1', 53)]

@qingshuisiyuan
Copy link
Owner

您提供了一个非常重要的信息!
您再次提供的错误信息中写道:浏览器无法找到正确的代理。
请检查系统上面有没有安装代理服务类软件如proxychains等,如果有请关闭服务。
为确保我的猜想正确,请重新启动系统后并执行完以上步骤,在终端输入electron-ssr运行本程序。
如果您没有安装其他代理软件或关闭了其他代理服务,请在系统设置中手动设置一下代理,具体请参考https://github.com/qingshuisiyuan/electron-ssr-backup/blob/master/Ubuntu.md
请多测试几条节点,从您提供的信息中不排除你的节点不可用。也许是你的节点信息有错误导致无法正确代理!
期待您的回复,跟帖。

@paradoxLOI
Copy link
Author

您好,首先十分感谢你的无私帮助,问题已经得到了解决。
下面分享一下我的解决过程,希望能够对有同样问题的朋友有所帮助。
首先确定我的节点为可用的,因为在Windows及Android环境中均可正常使用
之后我排查了此前在Ubuntu系统中安装过的代理服务,发现均已关闭且卸载
考虑到我是在更新了Firefox浏览器后出现了无法正常使用的问题,且我在尝试修复的过程中曾在Firefox中安装了Proxy SwitchyOmega插件(之后又卸载),所以考虑可能是Firefox的问题,尝试重装Firefox。
在重装后仍无法解决,想起Firefox中有设置浏览器代理的功能,选择进行手动代理,参数同系统的手动代理参数,只能够在electron-ssr开启的状态下正常上网(包括外网),之后切换浏览器代理模式为“使用系统代理设置”,在关闭electron-ssr的情况下能够正常访问大陆网站,在开启时能够访问外网。
虽然electron-ssr在启动时log中仍会出现此前的error字段,但不影响正常使用。
最后,再次感谢您备份了这个项目以及对我的帮助,祝万事顺意

@hyf6661669
Copy link

看起来UBUNTU的系统代理设置总是有点麻烦,不像win那样直接在小飞机里选择PAC模式就一切OK了。。。

@bestsort
Copy link

您好,我在 Ubuntu18.04LTS 中也发现了同样的问题。具体信息如下:
操作系统: Ubunutu18.04LTS
浏览器:Chrome 版本 76.0.3809.100(正式版本) (64 位)
electron-ssr:0.2.7.deb(0.2.5.deb也发现了同样的问题)

根据上文中的建议,已执行 sudo apt-get install libssl-devsudo apt install libsodium-devel 并且确定节点可用。 但是问题依旧未得到解决,日志内容如下

2019-08-10 23:34:19:416 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-10 23:34:21:449 [info] start download ssrr
2019-08-10 23:34:44:147 [info] ssrr download success
2019-08-10 23:35:02:402 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s b790370c-42b6-47a2-acb7-f9eb9175d9d2.sh.node.touhou.world -p 28394 -k ****** -m aes-256-cfb -O auth_aes128_md5 -o http_simple -g download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:35:02:408 [info] pac server listen at: 127.0.0.1:2333
2019-08-10 23:35:02:409 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-10 23:35:02:539 [error] 2019-08-10 23:35:02 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:35:02:540 [error] 2019-08-10 23:35:02 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [PSi2W6] method [aes-256-cfb] obfs [http_simple] obfs_param [download.windowsupdate.com]
2019-08-10 23:35:02 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:35:02 INFO     asyncdns.py:287 black_hostname_list init as : []
2019-08-10 23:35:02 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:10:255 [info] Kill client
2019-08-10 23:36:10:258 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s 7699a2f3-b8f2-4cda-9295-84625f910c4b.jp.node.touhou.world -p 8080 -k ****** -m aes-256-cfb -O auth_aes128_md5 -G 35204:PSi2W6 -o http_simple -g b0b9c35204.download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [ssmu] method [aes-256-cfb] obfs [http_simple] obfs_param [b0b9c35204.download.windowsupdate.com]
2019-08-10 23:36:10 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:36:10 INFO     asyncdns.py:287 black_hostname_list init as : []

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:30:526 [info] http proxy server closed.
2019-08-10 23:36:30:528 [info] http proxy server listen at: 127.0.0.1:12332
2019-08-10 23:36:32:148 [info] http proxy server closed.
2019-08-10 23:36:32:150 [info] http proxy server listen at: 127.0.0.1:12333

另: 我的 Ubuntu18.04LTS 是最简化安装,不清楚是否会有影响。 因为在另一台 Ubuntu18.04LTS 的机器上, 0.2.5.deb 是可用的。

@bestsort
Copy link

已解决, 安装了 Firefox 后根据 @paradoxLOI 的步骤手动设置代理后 Chrome 也能正常使用代理了。非常感谢二位

@qingshuisiyuan
Copy link
Owner

看起来UBUNTU的系统代理设置总是有点麻烦,不像赢得那样直接在小飞机里选择PAC模式就一切OK了...

据我所知,那是因为windows的机制垃圾。
他是靠设置ie实现代理的?
windows万物基于ie。

@qingshuisiyuan
Copy link
Owner

qingshuisiyuan commented Aug 12, 2019

您好,我在Ubuntu18.04LTS中也发现了同样的问题。具体信息如下:
操作系统:Ubunutu18.04LTS
浏览器:Chrome版本76.0.3809.100(正式版本)(64位)
electron-ssr:0.2.7。 DEB(0.2.5.deb也发现了同样的问题)

根据上文中的建议,已执行sudo apt-get install libssl-devsudo apt install libsodium-devel 并且确定节点可用。但是问题依旧未得到解决,日志内容如下

2019-08-10 23:34:19:416 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-10 23:34:21:449 [info] start download ssrr
2019-08-10 23:34:44:147 [info] ssrr download success
2019-08-10 23:35:02:402 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s b790370c-42b6-47a2-acb7-f9eb9175d9d2.sh.node.touhou.world -p 28394 -k ****** -m aes-256-cfb -O auth_aes128_md5 -o http_simple -g download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:35:02:408 [info] pac server listen at: 127.0.0.1:2333
2019-08-10 23:35:02:409 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-10 23:35:02:539 [error] 2019-08-10 23:35:02 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:35:02:540 [error] 2019-08-10 23:35:02 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [PSi2W6] method [aes-256-cfb] obfs [http_simple] obfs_param [download.windowsupdate.com]
2019-08-10 23:35:02 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:35:02 INFO     asyncdns.py:287 black_hostname_list init as : []
2019-08-10 23:35:02 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:10:255 [info] Kill client
2019-08-10 23:36:10:258 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s 7699a2f3-b8f2-4cda-9295-84625f910c4b.jp.node.touhou.world -p 8080 -k ****** -m aes-256-cfb -O auth_aes128_md5 -G 35204:PSi2W6 -o http_simple -g b0b9c35204.download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [ssmu] method [aes-256-cfb] obfs [http_simple] obfs_param [b0b9c35204.download.windowsupdate.com]
2019-08-10 23:36:10 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:36:10 INFO     asyncdns.py:287 black_hostname_list init as : []

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:30:526 [info] http proxy server closed.
2019-08-10 23:36:30:528 [info] http proxy server listen at: 127.0.0.1:12332
2019-08-10 23:36:32:148 [info] http proxy server closed.
2019-08-10 23:36:32:150 [info] http proxy server listen at: 127.0.0.1:12333

另:我的Ubuntu18.04LTS是最简化安装,不清楚是否会有影响。因为在另一台Ubuntu18.04LTS的机器上,0.2.5.deb是可用的。

周六周日休息,没来得及回复。
看你的日志,没什么大问题,成功下载了python-ssr,并且成功开启本地端口代理。有可能是系统设置有问题或浏览器代理设置有问题,需要手动设置下代理。
日志中出现了这一段话
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1
请解决下依赖,尝试:
sudo apt install libcrypto
看能否解决,请跟帖回复。
另,原作者并没有发布0.2.7的安装包,最高0.2.6

@bestsort
Copy link

您好,我在 Ubuntu18.04LTS 中也发现了同样的问题。具体信息如下:
操作系统:Ubunutu18.04LTS
浏览器:Chrome 版本 76.0.3809.100(正式版本)(64 位)
electron-ssr:0.2.7。 DEB(0.2.5.deb 也发现了同样的问题)
根据上文中的建议,已执行 sudo apt-get install libssl-devsudo apt install libsodium-devel 并且确定节点可用。但是问题依旧未得到解决,日志内容如下

2019-08-10 23:34:19:416 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-10 23:34:21:449 [info] start download ssrr
2019-08-10 23:34:44:147 [info] ssrr download success
2019-08-10 23:35:02:402 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s b790370c-42b6-47a2-acb7-f9eb9175d9d2.sh.node.touhou.world -p 28394 -k ****** -m aes-256-cfb -O auth_aes128_md5 -o http_simple -g download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:35:02:408 [info] pac server listen at: 127.0.0.1:2333
2019-08-10 23:35:02:409 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-10 23:35:02:539 [error] 2019-08-10 23:35:02 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:35:02:540 [error] 2019-08-10 23:35:02 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [PSi2W6] method [aes-256-cfb] obfs [http_simple] obfs_param [download.windowsupdate.com]
2019-08-10 23:35:02 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:35:02 INFO     asyncdns.py:287 black_hostname_list init as : []
2019-08-10 23:35:02 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:10:255 [info] Kill client
2019-08-10 23:36:10:258 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s 7699a2f3-b8f2-4cda-9295-84625f910c4b.jp.node.touhou.world -p 8080 -k ****** -m aes-256-cfb -O auth_aes128_md5 -G 35204:PSi2W6 -o http_simple -g b0b9c35204.download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [ssmu] method [aes-256-cfb] obfs [http_simple] obfs_param [b0b9c35204.download.windowsupdate.com]
2019-08-10 23:36:10 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:36:10 INFO     asyncdns.py:287 black_hostname_list init as : []

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:30:526 [info] http proxy server closed.
2019-08-10 23:36:30:528 [info] http proxy server listen at: 127.0.0.1:12332
2019-08-10 23:36:32:148 [info] http proxy server closed.
2019-08-10 23:36:32:150 [info] http proxy server listen at: 127.0.0.1:12333

另:我的 Ubuntu18.04LTS 是最简化安装,不清楚是否会有影响。因为在另一台 Ubuntu18.04LTS 的机器上,0.2.5.deb 是可用的。

周六周日休息,没来得及回复。
看你的日志,没什么大问题,成功下载了 python-ssr,并且成功开启本地端口代理。有可能是系统设置有问题或浏览器代理设置有问题,需要手动设置下代理。
日志中出现了这一段话
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1
请解决下依赖,尝试:
sudo apt install libcrypto
看能否解决,请跟帖回复。
另,原作者并没有发布 0.2.7 的安装包,最高 0.2.6

您好,非常感谢您的回复。我尝试了 0.2.5-0.2.7 (其中0.2.7是另一个repo),都有出现同样的问题。进行的操作如下:

在尝试sudo apt install libcrypto 后提示无法定位安装包, 但是我在 ~/.config/electron-ssr/shadowsocksr/shadowsocks/crypto/util.py 中发现 python 貌似在尝试载入 crypto或者libcrypto 这两个库(只根据代码大致推测)。 然后我又尝试执行了 pip install cryptopip install libcrypto。 其中, crypto 能定位并安装,但是日志中的2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1 仍未解决。

感谢您的回复,祝万事顺意!

@qingshuisiyuan
Copy link
Owner

您好,我在 Ubuntu18.04LTS 中也发现了同样的问题。具体信息如下:
操作系统:Ubunutu18.04LTS
浏览器:Chrome 版本 76.0.3809.100(正式版本)(64 位)
electron-ssr:0.2.7。 DEB(0.2.5.deb 也发现了同样的问题)
根据上文中的建议,已执行 sudo apt-get install libssl-devsudo apt install libsodium-devel 并且确定节点可用。但是问题依旧未得到解决,日志内容如下

2019-08-10 23:34:19:416 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-10 23:34:21:449 [info] start download ssrr
2019-08-10 23:34:44:147 [info] ssrr download success
2019-08-10 23:35:02:402 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s b790370c-42b6-47a2-acb7-f9eb9175d9d2.sh.node.touhou.world -p 28394 -k ****** -m aes-256-cfb -O auth_aes128_md5 -o http_simple -g download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:35:02:408 [info] pac server listen at: 127.0.0.1:2333
2019-08-10 23:35:02:409 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-10 23:35:02:539 [error] 2019-08-10 23:35:02 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:35:02:540 [error] 2019-08-10 23:35:02 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [PSi2W6] method [aes-256-cfb] obfs [http_simple] obfs_param [download.windowsupdate.com]
2019-08-10 23:35:02 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:35:02 INFO     asyncdns.py:287 black_hostname_list init as : []
2019-08-10 23:35:02 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:10:255 [info] Kill client
2019-08-10 23:36:10:258 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s 7699a2f3-b8f2-4cda-9295-84625f910c4b.jp.node.touhou.world -p 8080 -k ****** -m aes-256-cfb -O auth_aes128_md5 -G 35204:PSi2W6 -o http_simple -g b0b9c35204.download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [ssmu] method [aes-256-cfb] obfs [http_simple] obfs_param [b0b9c35204.download.windowsupdate.com]
2019-08-10 23:36:10 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:36:10 INFO     asyncdns.py:287 black_hostname_list init as : []

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:30:526 [info] http proxy server closed.
2019-08-10 23:36:30:528 [info] http proxy server listen at: 127.0.0.1:12332
2019-08-10 23:36:32:148 [info] http proxy server closed.
2019-08-10 23:36:32:150 [info] http proxy server listen at: 127.0.0.1:12333

另:我的 Ubuntu18.04LTS 是最简化安装,不清楚是否会有影响。因为在另一台 Ubuntu18.04LTS 的机器上,0.2.5.deb 是可用的。

周六周日休息,没来得及回复。
看你的日志,没什么大问题,成功下载了 python-ssr,并且成功开启本地端口代理。有可能是系统设置有问题或浏览器代理设置有问题,需要手动设置下代理。
日志中出现了这一段话
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1
请解决下依赖,尝试:
sudo apt install libcrypto
看能否解决,请跟帖回复。
另,原作者并没有发布 0.2.7 的安装包,最高 0.2.6

您好,非常感谢您的回复。我尝试了 0.2.5-0.2.7 (其中0.2.7是另一个repo),都有出现同样的问题。进行的操作如下:

在尝试sudo apt install libcrypto 后提示无法定位安装包, 但是我在 ~/.config/electron-ssr/shadowsocksr/shadowsocks/crypto/util.py 中发现 python 貌似在尝试载入 crypto或者libcrypto 这两个库(只根据代码大致推测)。 然后我又尝试执行了 pip install cryptopip install libcrypto。 其中, crypto 能定位并安装,但是日志中的2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1 仍未解决。

感谢您的回复,祝万事顺意!

非常感谢您提供了一个非常重要的信息,electron-ssr是ssr-python的一个UI界面,里面的报错大多可能来源于ssr-python。
而我去找到ssr-python的项目备份寻找README.md说明的时候,并没有给出相关python依赖说明,而总结本项目以往的Issues基本得出缺少这些库貌似也能正常运行ssr-python,在极个别系统环境下需要去解决个别算法的依赖,如libsodium。
另我希望另有人继续开发这个项目,并把本项目electron-ssr-backup存档。似乎这个不错。

@bestsort
Copy link

您好,我在 Ubuntu18.04LTS 中也发现了同样的问题。具体信息如下:
操作系统:Ubunutu18.04LTS
浏览器:Chrome 版本 76.0.3809.100(正式版本)(64 位)
electron-ssr:0.2.7。 DEB(0.2.5.deb 也发现了同样的问题)
根据上文中的建议,已执行 sudo apt-get install libssl-devsudo apt install libsodium-devel 并且确定节点可用。但是问题依旧未得到解决,日志内容如下

2019-08-10 23:34:19:416 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-10 23:34:21:449 [info] start download ssrr
2019-08-10 23:34:44:147 [info] ssrr download success
2019-08-10 23:35:02:402 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s b790370c-42b6-47a2-acb7-f9eb9175d9d2.sh.node.touhou.world -p 28394 -k ****** -m aes-256-cfb -O auth_aes128_md5 -o http_simple -g download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:35:02:408 [info] pac server listen at: 127.0.0.1:2333
2019-08-10 23:35:02:409 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-10 23:35:02:539 [error] 2019-08-10 23:35:02 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:35:02:540 [error] 2019-08-10 23:35:02 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [PSi2W6] method [aes-256-cfb] obfs [http_simple] obfs_param [download.windowsupdate.com]
2019-08-10 23:35:02 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:35:02 INFO     asyncdns.py:287 black_hostname_list init as : []
2019-08-10 23:35:02 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:10:255 [info] Kill client
2019-08-10 23:36:10:258 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s 7699a2f3-b8f2-4cda-9295-84625f910c4b.jp.node.touhou.world -p 8080 -k ****** -m aes-256-cfb -O auth_aes128_md5 -G 35204:PSi2W6 -o http_simple -g b0b9c35204.download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [ssmu] method [aes-256-cfb] obfs [http_simple] obfs_param [b0b9c35204.download.windowsupdate.com]
2019-08-10 23:36:10 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:36:10 INFO     asyncdns.py:287 black_hostname_list init as : []

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:30:526 [info] http proxy server closed.
2019-08-10 23:36:30:528 [info] http proxy server listen at: 127.0.0.1:12332
2019-08-10 23:36:32:148 [info] http proxy server closed.
2019-08-10 23:36:32:150 [info] http proxy server listen at: 127.0.0.1:12333

另:我的 Ubuntu18.04LTS 是最简化安装,不清楚是否会有影响。因为在另一台 Ubuntu18.04LTS 的机器上,0.2.5.deb 是可用的。

周六周日休息,没来得及回复。
看你的日志,没什么大问题,成功下载了 python-ssr,并且成功开启本地端口代理。有可能是系统设置有问题或浏览器代理设置有问题,需要手动设置下代理。
日志中出现了这一段话
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1
请解决下依赖,尝试:
sudo apt install libcrypto
看能否解决,请跟帖回复。
另,原作者并没有发布 0.2.7 的安装包,最高 0.2.6

您好,非常感谢您的回复。我尝试了 0.2.5-0.2.7 (其中 0.2.7 是另一个 repo),都有出现同样的问题。进行的操作如下:
在尝试 sudo apt install libcrypto 后提示无法定位安装包, 但是我在~/.config/electron-ssr/shadowsocksr/shadowsocks/crypto/util.py 中发现 python 貌似在尝试载入 crypto 或者 libcrypto 这两个库(只根据代码大致推测)。 然后我又尝试执行了 pip install cryptopip install libcrypto。 其中, crypto 能定位并安装,但是日志中的 2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1 仍未解决。
感谢您的回复,祝万事顺意!

非常感谢您提供了一个非常重要的信息,electron-ssr 是 ssr-python 的一个 UI 界面,里面的报错大多可能来源于 ssr-python。
而我去找到 ssr-python 的项目备份寻找 README.md 说明的时候,并没有给出相关 python 依赖说明,而总结本项目以往的 Issues 基本得出缺少这些库貌似也能正常运行 ssr-python,在极个别系统环境下需要去解决个别算法的依赖,如 libsodium。
另我希望另有人继续开发这个项目,并把本项目 electron-ssr-backup 存档。似乎这个不错。

确实, 在依赖安装完并正确配置代理后我没有感觉到那一项 util.py:94 loading libcrypto from libcrypto.so.1.1 的错误对实际使用有什么影响. 估计我一开始遇到的问题可能跟我个人对系统的配置改动有关. 因为在我另一台搭载 Ubuntu18.04 的机器上并没有发现无法代理或者是需要进入 Firefox 设置代理的情况

@lele2010lele
Copy link

各位,我关闭pac,不启用代理模式,配合switchOmega一切正常

@zhangwanyue
Copy link

zhangwanyue commented Sep 30, 2019

您好,我在 Ubuntu18.04LTS 中也发现了同样的问题。具体信息如下:
操作系统:Ubunutu18.04LTS
浏览器:Chrome 版本 76.0.3809.100(正式版本)(64 位)
electron-ssr:0.2.7。 DEB(0.2.5.deb 也发现了同样的问题)
根据上文中的建议,已执行 sudo apt-get install libssl-devsudo apt install libsodium-devel 并且确定节点可用。但是问题依旧未得到解决,日志内容如下

2019-08-10 23:34:19:416 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2019-08-10 23:34:21:449 [info] start download ssrr
2019-08-10 23:34:44:147 [info] ssrr download success
2019-08-10 23:35:02:402 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s b790370c-42b6-47a2-acb7-f9eb9175d9d2.sh.node.touhou.world -p 28394 -k ****** -m aes-256-cfb -O auth_aes128_md5 -o http_simple -g download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:35:02:408 [info] pac server listen at: 127.0.0.1:2333
2019-08-10 23:35:02:409 [info] http proxy server listen at: 127.0.0.1:12333
2019-08-10 23:35:02:539 [error] 2019-08-10 23:35:02 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:35:02:540 [error] 2019-08-10 23:35:02 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [PSi2W6] method [aes-256-cfb] obfs [http_simple] obfs_param [download.windowsupdate.com]
2019-08-10 23:35:02 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:35:02 INFO     asyncdns.py:287 black_hostname_list init as : []
2019-08-10 23:35:02 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:10:255 [info] Kill client
2019-08-10 23:36:10:258 [info] run command: python /home/bestsort/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s 7699a2f3-b8f2-4cda-9295-84625f910c4b.jp.node.touhou.world -p 8080 -k ****** -m aes-256-cfb -O auth_aes128_md5 -G 35204:PSi2W6 -o http_simple -g b0b9c35204.download.windowsupdate.com -b 127.0.0.1 -l 1080
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     util.py:94 loading libcrypto from libcrypto.so.1.1

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     local.py:50 local start with protocol[auth_aes128_md5] password [ssmu] method [aes-256-cfb] obfs [http_simple] obfs_param [b0b9c35204.download.windowsupdate.com]
2019-08-10 23:36:10 INFO     local.py:54 starting local at 127.0.0.1:1080
2019-08-10 23:36:10 INFO     asyncdns.py:287 black_hostname_list init as : []

2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO     asyncdns.py:335 dns server: [('127.0.0.53', 53)]

2019-08-10 23:36:30:526 [info] http proxy server closed.
2019-08-10 23:36:30:528 [info] http proxy server listen at: 127.0.0.1:12332
2019-08-10 23:36:32:148 [info] http proxy server closed.
2019-08-10 23:36:32:150 [info] http proxy server listen at: 127.0.0.1:12333

另:我的 Ubuntu18.04LTS 是最简化安装,不清楚是否会有影响。因为在另一台 Ubuntu18.04LTS 的机器上,0.2.5.deb 是可用的。

周六周日休息,没来得及回复。
看你的日志,没什么大问题,成功下载了 python-ssr,并且成功开启本地端口代理。有可能是系统设置有问题或浏览器代理设置有问题,需要手动设置下代理。
日志中出现了这一段话
2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1
请解决下依赖,尝试:
sudo apt install libcrypto
看能否解决,请跟帖回复。
另,原作者并没有发布 0.2.7 的安装包,最高 0.2.6

您好,非常感谢您的回复。我尝试了 0.2.5-0.2.7 (其中 0.2.7 是另一个 repo),都有出现同样的问题。进行的操作如下:
在尝试 sudo apt install libcrypto 后提示无法定位安装包, 但是我在~/.config/electron-ssr/shadowsocksr/shadowsocks/crypto/util.py 中发现 python 貌似在尝试载入 crypto 或者 libcrypto 这两个库(只根据代码大致推测)。 然后我又尝试执行了 pip install cryptopip install libcrypto。 其中, crypto 能定位并安装,但是日志中的 2019-08-10 23:36:10:337 [error] 2019-08-10 23:36:10 INFO util.py:94 loading libcrypto from libcrypto.so.1.1 仍未解决。
感谢您的回复,祝万事顺意!

非常感谢您提供了一个非常重要的信息,electron-ssr 是 ssr-python 的一个 UI 界面,里面的报错大多可能来源于 ssr-python。
而我去找到 ssr-python 的项目备份寻找 README.md 说明的时候,并没有给出相关 python 依赖说明,而总结本项目以往的 Issues 基本得出缺少这些库貌似也能正常运行 ssr-python,在极个别系统环境下需要去解决个别算法的依赖,如 libsodium。
另我希望另有人继续开发这个项目,并把本项目 electron-ssr-backup 存档。似乎这个不错。

确实, 在依赖安装完并正确配置代理后我没有感觉到那一项 util.py:94 loading libcrypto from libcrypto.so.1.1 的错误对实际使用有什么影响. 估计我一开始遇到的问题可能跟我个人对系统的配置改动有关. 因为在我另一台搭载 Ubuntu18.04 的机器上并没有发现无法代理或者是需要进入 Firefox 设置代理的情况

我也发现了这个error,觉得很奇怪,去看了下代码发现:

    for path in paths:
        try:
            lib = CDLL(path)
            if hasattr(lib, search_symbol):
                logging.info('loading %s from %s', library_name, path)
                return lib
            else:
                logging.warn('can\'t find symbol %s in %s', search_symbol,
                             path)

也就是说,这个不是error,只是一个普通的info,不知道为什么前面被加了一个[error],仔细看这条日志后面半段也写明了是INFO。
如果日志是can't find symbol ... in ...,才是error。
另外,如果缺少libcrypto.so.1.1这个包,可以用命令sudo apt-get install libssl1.1安装,可以用命令sudo locate libcrypto.so.1.1查看这个包的定位。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants