nojsja / shadowsocks-electron

Shadowsocks GUI application made for Ubuntu / Mac / Win users and powered by Electron.
GNU General Public License v3.0
324 stars 55 forks source link

ubuntu20.04配置ss+v2ray,感觉ping没问题,但是无法链接 #14

Open Ericwln opened 2 years ago

Ericwln commented 2 years ago

这边按照正常小飞机配置;v2ray-plugin 放到了/opt下,给了权限;然后配置了参数,感觉能ping同,但是没办法链接;右下角离线状态, 2022-07-07_21-09 2022-07-07_21-08

Ericwln commented 2 years ago

然后点击节点后,出现报错,如图!感谢大佬开发这个好用的软件!求帮助谢谢! 2022-07-07_21-14

nojsja commented 2 years ago

@EricMzky 周末有时间测试一下,最近太忙:sweat_smile:

Ericwln commented 2 years ago

@EricMzky 周末有时间测试一下,最近太忙:sweat_smile:

啊哈哈啊哈。我能帮你现在测试吗哈哈哈 我已经等不及要用了哈哈哈

Ericwln commented 2 years ago

@nojsja 啊哈哈哈大佬!可以了用了吗!

Ericwln commented 2 years ago

@nojsja 大佬可以了吗,跪求更新

nojsja commented 2 years ago

@EricMzky 最近刚入职,需求搞不完,周末有时候还要加加班:joy:。静候佳音!

Ericwln commented 2 years ago

坐等啊 大佬

@EricMzky 最近刚入职,需求搞不完,周末有时候还要加加班:joy:。静候佳音!

nojsja commented 2 years ago

你从命令行启动客户端看看日志输出, 比如:

╭─nojsja@max ~  
╰─➤  shadowsocks-electron                                                 130 ↵
info: 2022/7/17 10:47:16 - appDataPath: /home/nojsja/.config/shadowsocks-electron
info: 2022/7/17 10:47:16 - pathRuntime: /home/nojsja/.config/shadowsocks-electron/runtime/
info: 2022/7/17 10:47:16 - pathExecutable: /opt/Shadowsocks Electron
hooks: >> checkEnvFiles
...
Start http proxy server...
info: 2022/7/17 10:47:17 - Exec command:/home/nojsja/.config/shadowsocks-electron/runtime/bin/linux/x64/ss-local -s fv2ta2aabuzsmormfq.xxxxx.top -p xxxxx -b 127.0.0.1 -l 1081 ...
info: 2022/7/17 10:47:17 - Started ss-local
info: 2022/7/17 10:47:17 -  2022-07-17 10:47:17 INFO: initializing acl...

>> SocketTransfer listening on port:  1080
...

Exec command 之后的就是客户端实际执行的命令,之后就是 ss 和 v2ray-plugin 的输出,你看看哪里有问题。 我测试过,将 v2ray-plugin (linux amd64) 放入 /usr/local/bin//opt 目录下都可以,只要客户端找到了 v2ray-plugin 的执行文件,启动时就不会显示黄色的 离线 状态。从你的情况来看可能没找到执行文件,不然就是执行文件启动报错。

Ericwln commented 2 years ago

我上面写的那个插件路径和配置,都是和手机端一样,除了路径。但是感觉还是不行啊。是linux x64的v2ray 咋办啊 > 你从命令行启动客户端看看日志输出,

比如:


╭─nojsja@max ~  

╰─➤  shadowsocks-electron                                                 130 ↵

info: 2022/7/17 10:47:16 - appDataPath: /home/nojsja/.config/shadowsocks-electron

info: 2022/7/17 10:47:16 - pathRuntime: /home/nojsja/.config/shadowsocks-electron/runtime/

info: 2022/7/17 10:47:16 - pathExecutable: /opt/Shadowsocks Electron

hooks: >> checkEnvFiles

...

Start http proxy server...

info: 2022/7/17 10:47:17 - Exec command:/home/nojsja/.config/shadowsocks-electron/runtime/bin/linux/x64/ss-local -s fv2ta2aabuzsmormfq.xxxxx.top -p xxxxx -b 127.0.0.1 -l 1081 ...

info: 2022/7/17 10:47:17 - Started ss-local

info: 2022/7/17 10:47:17 -  2022-07-17 10:47:17 INFO: initializing acl...

>> SocketTransfer listening on port:  1080

...

Exec command 之后的就是客户端实际执行的命令,之后就是 ss 和 v2ray-plugin 的输出,你看看哪里有问题。

我测试过,将 v2ray-plugin (linux amd64) 放入 /usr/local/bin//opt 目录下都可以,只要客户端找到了 v2ray-plugin 的执行文件,启动时就不会显示黄色的 离线 状态。从你的情况来看可能没找到执行文件,不然就是执行文件启动报错。

nojsja commented 2 years ago

还是要看看启动日志

Ericwln commented 2 years ago

还是要看看启动日志

行 我给抓一份启动日志

Ericwln commented 2 years ago

➜ /home/eric shadowsocks-electron info: 7/18/2022, 11:11:50 PM - appDataPath: /home/eric/snap/shadowsocks-electron/14/.config/shadowsocks-electron info: 7/18/2022, 11:11:50 PM - pathRuntime: /home/eric/snap/shadowsocks-electron/14/.config/shadowsocks-electron/runtime/ info: 7/18/2022, 11:11:50 PM - pathExecutable: /snap/shadowsocks-electron/14 hooks: >> checkEnvFiles hooks: >> chmodFiles fs.chmod => /home/eric/snap/shadowsocks-electron/14/.config/shadowsocks-electron/runtime/bin/linux/x64/ss-local with 457 fs.chmod => /home/eric/snap/shadowsocks-electron/14/.config/shadowsocks-electron/runtime/bin/linux/x64/ssr-local with 457 hooks: >> checkPlatform hooks: >> injectSentryMonitor

(shadowsocks-electron:548417): GdkPixbuf-WARNING **: 23:11:51.013: Cannot open pixbuf loader module file '/home/eric/snap/shadowsocks-electron/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken. Try running the command gdk-pixbuf-query-loaders > /home/eric/snap/shadowsocks-electron/common/.cache/gdk-pixbuf-loaders.cache to make things work again for the time being. GLib-GIO-Message: 23:11:51.041: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. [548497:0718/231151.053248:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. hooks: >> configureLanguage SNAP env is defined, updater is disabled Stop http proxy server... info: 7/18/2022, 11:11:51 PM - Closed PAC server info: 7/18/2022, 11:11:51 PM - Started PAC server info: 7/18/2022, 11:11:51 PM - Generating full PAC file... info: 7/18/2022, 11:11:51 PM - Generated full PAC file { code: 0, stderr: "GLib-GIO-Message: 23:11:51.896: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.\n" } [object Object] This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: { code: 0, stderr: "GLib-GIO-Message: 23:11:51.907: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.\n" } (node:548417) UnhandledPromiseRejectionWarning: # (Use shadowsocks-electron --trace-warnings ... to show where the warning was created) (node:548417) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

@nojsja

nojsja commented 2 years ago

你这个看来是客户端启动都有点问题,报一下详细操作系统信息呢:sweat_smile:

nojsja commented 2 years ago

你这个是snap版本,要不尝试一下 github releases 里面的 deb 包或 AppImage包?

Ericwln commented 2 years ago

那我试试 deb 马上哈哈

你这个是snap版本,要不尝试一下 github releases 里面的 deb 包或 AppImage包?

Ericwln commented 2 years ago

ubuntu20.04

你这个看来是客户端启动都有点问题,报一下详细操作系统信息呢:sweat_smile:

nojsja commented 2 years ago

ubuntu20.04

你这个看来是客户端启动都有点问题,报一下详细操作系统信息呢😅

ubuntu上 sudo apt install screenfetch,然后在终端里运行 screenfetch 就可以看到详细信息了

Ericwln commented 2 years ago

dpkg安装deb可以了。但是pac模式无法访问Google,全局可以 这个是不是做其他操作呀

ubuntu20.04

你这个看来是客户端启动都有点问题,报一下详细操作系统信息呢😅

ubuntu上 sudo apt install screenfetch,然后在终端里运行 screenfetch 就可以看到详细信息了

Ericwln commented 2 years ago

dpkg安装deb可以了。但是pac模式无法访问Google,全局可以 这个是不是做其他操作呀

ubuntu20.04

你这个看来是客户端启动都有点问题,报一下详细操作系统信息呢😅

ubuntu上 sudo apt install screenfetch,然后在终端里运行 screenfetch 就可以看到详细信息了

@nojsja 换了几个比较全的pac 白名单或黑名单。Shadowrockrt-ADBLOCK-RULES github有,白 黑都尝试过。pac Google不行 只能全局,这个问题该咋查一下 大佬

Ericwln commented 2 years ago

dpkg安装deb可以了。但是pac模式无法访问Google,全局可以 这个是不是做其他操作呀

ubuntu20.04

你这个看来是客户端启动都有点问题,报一下详细操作系统信息呢😅

ubuntu上 sudo apt install screenfetch,然后在终端里运行 screenfetch 就可以看到详细信息了

@nojsja 换了几个比较全的pac 白名单或黑名单。Shadowrockrt-ADBLOCK-RULES github有,白 黑都尝试过。pac Google不行 只能全局,这个问题该咋查一下 大佬

我会看到 pac或者全局会修改 NetworkProxy,我删除了所有Manual和auto 重新让他自动设置;但是没效果,感觉都不好用了。pac和全局 image

nojsja commented 2 years ago
图片

你是用的这个按钮加载的本地 pac 文件吗?这个是用来加载本地 gfwlist 文件的,比如手动下载 https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt 这个文件然后用那个按钮手动加载,因为考虑到有些用户不能通过客户端正常下载 gfwlist.txt 的情况。

加载自定义 pac 文件这个功能还没加 😂,我下个版本一并给加上去。

nojsja commented 2 years ago

我试过默认状态下,直接开启 pac 模式就能访问谷歌了。

Ericwln commented 2 years ago

。 尝试过 完全不可以了... pac已经缓存了... 不知道是否方便加一个联系方式,然后看看 谢谢...

nojsja commented 2 years ago

。 尝试过 完全不可以了... pac已经缓存了... 不知道是否方便加一个联系方式,然后看看 谢谢...

你给我发邮件,我告诉你微信

nojsja commented 2 years ago

另外,卸载重装可以自动清除缓存

Ericwln commented 2 years ago

。 尝试过 完全不可以了... pac已经缓存了... 不知道是否方便加一个联系方式,然后看看 谢谢...

你给我发邮件,我告诉你微信

已发送

Ericwln commented 2 years ago

最新版本现在这个可以用了不哈哈哈我看你发布了新版本

nojsja commented 2 years ago

最新版本现在这个可以用了不哈哈哈我看你发布了新版本

你这个问题需要单独解决,比较麻烦,还要买服务器和域名搞个ss v2ray 环境。而且客户端只是调用 shadowsocks-libev ,加了插件参数,没做别的处理,我怀疑libev是内部的问题

Ericwln commented 2 years ago

最新版本现在这个可以用了不哈哈哈我看你发布了新版本

你这个问题需要单独解决,比较麻烦,还要买服务器和域名搞个ss v2ray 环境。而且客户端只是调用 shadowsocks-libev ,加了插件参数,没做别的处理,我怀疑libev是内部的问题

服务器就是libev搭建的。客户端用的就是小火箭或小飞机嚒,配置参数都一样的。libev出问题的概率会很大不。 哈哈哈 等你发新版本

nojsja commented 2 years ago

最新版本现在这个可以用了不哈哈哈我看你发布了新版本

你这个问题需要单独解决,比较麻烦,还要买服务器和域名搞个ss v2ray 环境。而且客户端只是调用 shadowsocks-libev ,加了插件参数,没做别的处理,我怀疑libev是内部的问题

服务器就是libev搭建的。客户端用的就是小火箭或小飞机嚒,配置参数都一样的。libev出问题的概率会很大不。 哈哈哈 等你发新版本

这样子你下一个libev 的 bin 文件,然后用 ss-local 加上配置参数和插件参数啥的,试下能不能连接成功,能连接的话就是client参数的问题,试试吧