wilon / lantern

Lantern for docker. Docker运行蓝灯。
https://hub.docker.com/r/wilon/lantern/
30 stars 11 forks source link

突然开始报错`unable to find binary`,无法使用了? #16

Open occultskyrong opened 1 year ago

occultskyrong commented 1 year ago

最近不知道咋回事,莫名其妙无法连接,然后重启后报错直接起不来,只能重新compose

docker-compose 启动的

version: '3.9'

services:
  lantern-proxy:
    container_name: lantern-proxy
    image: wilon/lantern:latest
    restart: always
    ports:
      - "39131:3128"
      - "39132:3129"
      - "39133:8089"
    volumes:
      - /root/.lantern:/root

配置文件应该是默认,然后改了下token

addr: '[::]:3128'
autoLaunch: true
autoReport: false
googleAds: true
lang: zh-CN
localHTTPToken: ----
migratedDeviceIDForUserID: ---
proxyAll: true
socksAddr: '[::]:3129'
systemProxy: true
uiAddr: 0.0.0.0:8080
userID: ---
userToken: -----
Jan 31 00:51:13.105 - 0m2s DEBUG lantern-desktop.main: main.go:205 Using locale: zh-CN
Jan 31 00:51:13.105 - 0m2s DEBUG i18n: translate.go:114 Setting locale zh-CN
Jan 31 00:51:13.107 - 0m2s DEBUG lantern-desktop.main: main.go:152 Running headless
Jan 31 00:51:13.108 - 0m2s DEBUG lantern-desktop.app: app.go:266 {0.0.0.0:3128  /root false     false   0.0.0.0:8080 true false   true false false    false false false false false 0s
  false [] []  []}
Jan 31 00:51:13.108 - 0m2s DEBUG app.settings: settings.go:597 Setting map[proxyAll:true] in map[addr:[::]:3128 autoLaunch:true autoReport:false buildDate:20221223.232439 deviceID:55e7d13f-0d85-4bad-8135-8b584dea34da disconnected:false enabledExperiments:[] googleAds:true lang:zh-CN localHTTPToken:531fad4e4327d491f74e0eb0b15b1fc0 migratedDeviceIDForUserID:265683987 proxyAll:true revisionDate:20221223.232044 socksAddr:[::]:3129 systemProxy:true uiAddr:0.0.0.0:8080 userID:265683987 userToken:5ZN8nWWVDe4xjOWZXrYMMQOWX1ktJUbbRm8fR-byUQBWNDRetz18sw version:7.2.0]
Jan 31 00:51:13.108 - 0m2s DEBUG flashlight.geolookup: geolookup.go:54 Could not get IP: could not get geoinfo with timeout 0s: context deadline exceeded
Jan 31 00:51:13.110 - 0m2s DEBUG flashlight: flashlight.go:354 Running in app: Lantern
Jan 31 00:51:13.110 - 0m2s DEBUG flashlight: flashlight.go:355 Using configdir: /root
Jan 31 00:51:13.110 - 0m2s DEBUG flashlight: flashlight.go:611 ---- flashlight version: 7.2.0, release: 7.2.0, build revision date: 20221223.232044, build date: 20221223.232439 ---- Jan 31 00:51:13.110 - 0m2s DEBUG balancer: balancer.go:161 Constructing new balancer with 0 dialers [op=client_started root_op=client_started]
Jan 31 00:51:13.110 - 0m2s DEBUG flashlight.geolookup: geolookup.go:65 Could not get country: could not get geoinfo with timeout 0s: context deadline exceeded [op=client_started root_op=client_started]
Jan 31 00:51:13.110 - 0m2s ERROR flashlight: flashlight.go:222 No global configuration! [op=client_started root_op=client_started]
Jan 31 00:51:13.110 - 0m2s DEBUG flashlight.geolookup: geolookup.go:65 Could not get country: could not get geoinfo with timeout 0s: context deadline exceeded [op=client_started root_op=client_started]
Jan 31 00:51:13.110 - 0m2s DEBUG flashlight: flashlight.go:218 Blocking related feature googlesearchads disabled because geolookup has not yet finished [op=client_started root_op=client_started]
Jan 31 00:51:13.110 - 0m2s DEBUG lantern-desktop.app: app.go:465 Got first config [op=client_started root_op=client_started]
Jan 31 00:51:13.110 - 0m2s ERROR lantern-desktop.app: app.go:982 Exiting app 1(0) because of unable to set up sysproxy setting tool: unable to find binary: [] [error=Exiting app %d(%d) because of %v error_location=github.com/getlantern/lantern-desktop/desktop.(*App).doExit (app.go:883) error_text=Exiting app 1(0) because of unable to set up sysproxy setting tool: unable to find binary: [] error_type=errors.Error op=client_started root_op=client_started]
ERROR lantern-desktop.app: app.go:982   at github.com/getlantern/lantern-desktop/desktop.(*App).doExit (app.go:883)
ERROR lantern-desktop.app: app.go:982   at github.com/getlantern/lantern-desktop/desktop.(*App).Exit (app.go:875)
Jan 31 00:51:13.110 - 0m2s DEBUG flashlight.geolookup: geolookup.go:65 Could not get country: could not get geoinfo with timeout 0s: context deadline exceeded
ERROR lantern-desktop.app: app.go:982   at github.com/getlantern/lantern-desktop/desktop.(*App).beforeStart (app.go:473)
ERROR lantern-desktop.app: app.go:982   at github.com/getlantern/lantern-desktop/desktop.(*App).Run.func3 (app.go:362)
ERROR lantern-desktop.app: app.go:982   at runtime.goexit (asm_amd64.s:1571)
ERROR lantern-desktop.app: app.go:982 Caused by: unable to set up sysproxy setting tool: unable to find binary: []
Jan 31 00:51:13.240 - 0m2s DEBUG httpseverywhere-deserializer: deserializer.go:54 Loaded HTTPS Everywhere in 130.02847ms
Jan 31 00:51:14.081 - 0m3s DEBUG lantern-desktop.app: app.go:925 Running 2 exit functions
Jan 31 00:51:14.081 - 0m3s DEBUG lantern-desktop.app: app.go:863 Processing exit function: Closing dhtupContext
Jan 31 00:51:14.081 - 0m3s DEBUG lantern-desktop.app: app.go:863 Processing exit function: stopping analytics
Jan 31 00:51:14.081 - 0m3s DEBUG lantern-desktop.app: app.go:865 Done processing exit function: stopping analytics
Jan 31 00:51:14.082 - 0m3s DEBUG lantern-desktop.app: app.go:865 Done processing exit function: Closing dhtupContext
Jan 31 00:51:14.082 - 0m3s DEBUG lantern-desktop.app: app.go:912 Finished running exit functions [op=client_started root_op=client_started]
Jan 31 00:51:14.082 - 0m3s DEBUG lantern-desktop.app: app.go:901 Finished exiting app 1(0) [op=client_started root_op=client_started]
Jan 31 00:51:14.082 - 0m3s DEBUG flashlight.config: bootstrap.go:103 Opening bootstrap file from: /root/.lantern/.packaged-lantern.yaml [op=client_started root_op=client_started]
Jan 31 00:51:14.082 - 0m3s DEBUG flashlight.config: bootstrap.go:53 Opening file at: /root/.lantern/.packaged-lantern.yaml [op=client_started root_op=client_started]
Jan 31 00:51:14.082 - 0m3s DEBUG flashlight.config: bootstrap.go:63 Read bytes: startupurl: [op=client_started root_op=client_started]
Jan 31 00:51:14.082 - 0m3s ERROR lantern-desktop.main: main.go:156 Lantern stopped with error unable to set up sysproxy setting tool: unable to find binary: [] [error=Lantern stopped with error %v error_location=main.main (main.go:156) error_text=Lantern stopped with error unable to set up sysproxy setting tool: unable to find binary: [] error_type=errors.Error]Jan 31 00:51:14.082 - 0m3s DEBUG lantern-desktop.app: app.go:836 Hitting local URL: http://0.0.0.0:8080/531fad4e4327d491f74e0eb0b15b1fc0/startup [op=client_started root_op=client_started]
ERROR lantern-desktop.main: main.go:156   at main.main (main.go:156)
ERROR lantern-desktop.main: main.go:156   at runtime.main (proc.go:250)
ERROR lantern-desktop.main: main.go:156   at runtime.goexit (asm_amd64.s:1571)
ERROR lantern-desktop.main: main.go:156 Caused by: unable to set up sysproxy setting tool: unable to find binary: []

不知道有没有人遇到过这个问题

caosir commented 1 year ago

lantern 启动的时候,autoupdate到7.2.0版本了,而lantern 7以上的版本,启动的时候,都会报“main.go:156 Caused by: unable to set up sysproxy setting tool: unable to find binary: []”的错误。

所以,每次启动的时候,你可以把lantern 6.x.x版的二进制文件替换到/root/.lantern/bin/lantern, 然后执行启动Lantern的时候,写上/root/.lantern/bin/lantern 的绝对路径,就可以了。