Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgyvpn 无法使用,且编译斐讯 K3 出错。 #707

Open
lxhao61 opened this issue Sep 6, 2023 · 10 comments
Open

pgyvpn 无法使用,且编译斐讯 K3 出错。 #707

lxhao61 opened this issue Sep 6, 2023 · 10 comments

Comments

@lxhao61
Copy link

lxhao61 commented Sep 6, 2023

phtunnel 无法启动,报错提示如下:
phtunnel is not running
另外日志文件打开报错如下:
image

最后尝试使用官方 bin 文件直接替换解决。
另外 pgyvpn 也无反应。
表现为:填好账号/SN码及密码后保存,长时间无反应,最后指向一个报错页面后停止。

@lxhao61 lxhao61 changed the title phtunnel 无法启动 phtunnel 与 pgyvpn 编译完成后都无法使用 Sep 9, 2023
@lxhao61 lxhao61 changed the title phtunnel 与 pgyvpn 编译完成后都无法使用 phtunnel 与 pgyvpn 编译成功后都无法使用 Sep 9, 2023
@lxhao61
Copy link
Author

lxhao61 commented Sep 14, 2023

kmod-tun 有吗?系统日志呢

有 kmod-tun。斐讯 K3 系统日志(phtunnel 相关)如下:
.....
Thu Sep 14 21:53:34 2023 user.notice oray: wan interface up and phtunnel restart
Thu Sep 14 21:53:34 2023 daemon.notice procd: /etc/rc.d/S80tailscale: 2023/09/14 13:53:34 logtail: upload: log upload of 528 bytes compressed failed: Post "https://log.tailscale.io/c/tailnode.log.tailscale.io/6044ff1559b2a0e4df2ee6b0e5dae0d2ee648c7ea96e97d12b4eca360734f766": context canceled
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 logtail started
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Program starting: v1.42.0-ERR-BuildInfo, Go 1.20.2: []string{"/usr/sbin/tailscaled", "--port", "41641", "--state", "/etc/tailscale/tailscaled.state"}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 LogID: 42faea44414fc669266ccb3f064b1921cf19d0eade83f115bfdb4bdfe6c55a21
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 logpolicy: using system state directory "/var/lib/tailscale"
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 wgengine.NewUserspaceEngine(tun "tailscale0") ...
Thu Sep 14 21:53:35 2023 user.err : jail: can't read from child
Thu Sep 14 21:53:35 2023 user.err : jail: can't write to parent
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 logtail: dial "log.tailscale.io:443" failed: dial tcp: lookup log.tailscale.io on [::1]:53: read udp [::1]:33955->[::1]:53: read: connection refused (in 32ms), trying bootstrap...
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 trying bootstrapDNS("derp9c.tailscale.com", "155.138.243.219") for "log.tailscale.io" ...
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 setting link attributes: netlink receive: no such file or directory
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 router: v6nat = true
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: [rc=unknown ret=direct]
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: using "direct" mode
Thu Sep 14 21:53:35 2023 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: using *dns.directManager
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 link state: interfaces.State{defaultRoute=pppoe-wan ifs={br-lan:[192.168.6.1/24 fd4a:9e1c:fc84::1/60] eth0.3:[10.52.118.246/20] eth0.4:[189.131.122.246/19] pppoe-wan:[218.6.202.243/32]} v4=true v6=true}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 magicsock: disco key = d:3b2d521bf0410fe4
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Creating WireGuard device...
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Bringing WireGuard device up...
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Bringing router up...
Thu Sep 14 21:53:35 2023 daemon.notice netifd: Interface 'wan_6' is now up
Thu Sep 14 21:53:35 2023 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/radvd
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Clearing router settings...
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Starting network monitor...
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Engine created.
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 pm: migrating "_daemon" profile to new format
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 external route: up
Thu Sep 14 21:53:35 2023 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 logpolicy: using system state directory "/var/lib/tailscale"
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 got LocalBackend in 324ms
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Start
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Backend: logs: be:42faea44414fc669266ccb3f064b1921cf19d0eade83f115bfdb4bdfe6c55a21 fe:
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 monitor: RTM_NEWROUTE: src=, dst=240e:398:31f:4a1a::/64, gw=, outif=1, table=254
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 monitor: RTM_NEWROUTE: src=, dst=240e:39a:37a:c110::/60, gw=, outif=1, table=254
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 monitor: RTM_NEWROUTE: src=, dst=240e:39a:37a:c110::/64, gw=, outif=7, table=254
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 monitor: RTM_NEWROUTE: src=, dst=, gw=fe80::2a41:c6ff:fefb:71f9, outif=12, table=254
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 monitor: RTM_NEWROUTE: src=, dst=, gw=fe80::2a41:c6ff:fefb:71f9, outif=12, table=254
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 [RATELIMIT] format("monitor: %s: src=%v, dst=%v, gw=%v, outif=%v, table=%v")
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Switching ipn state NoState -> NeedsLogin (WantRunning=false, nm=false)
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 blockEngineUpdates(true)
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 wgengine: Reconfig: configuring userspace WireGuard config (with 0/0 peers)
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 wgengine: Reconfig: configuring router
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 wgengine: Reconfig: configuring DNS
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[]}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: OScfg: {Nameservers:[] SearchDomains:[] MatchDomains:[] Hosts:[]}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 LinkChange: major, rebinding. New state: interfaces.State{defaultRoute=pppoe-wan ifs={br-lan:[192.168.6.1/24 240e:39a:37a:c110::1/60 fd4a:9e1c:fc84::1/60] eth0.3:[10.52.118.246/20] eth0.4:[189.131.122.246/19] pppoe-wan:[218.6.202.243/32 240e:398:31f:4a1a:767d:2472:372c:84b8/64]} v4=true v6=true}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[]}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 dns: OScfg: {Nameservers:[] SearchDomains:[] MatchDomains:[] Hosts:[]}
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 wgengine: set DNS config again after major link change
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 Rebind; defIf="pppoe-wan", ips=[218.6.202.243/32 240e:398:31f:4a1a:767d:2472:372c:84b8/64 fe80::767d:2472:372c:84b8/128]
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 magicsock: 0 active derp conns
Thu Sep 14 21:53:35 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:35 health("overall"): error: state=NeedsLogin, wantRunning=false
Thu Sep 14 21:53:35 2023 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Thu Sep 14 21:53:35 2023 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Thu Sep 14 21:53:35 2023 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Thu Sep 14 21:53:35 2023 user.notice firewall: Reloading firewall due to ifup of wan_6 (pppoe-wan)
Thu Sep 14 21:53:35 2023 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up /etc/config/passwall reload trigger for non-procd /etc/init.d/passwall
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up /etc/config/passwall_server reload trigger for non-procd /etc/init.d/passwall_server
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up /etc/config/turboacc reload trigger for non-procd /etc/init.d/turboacc
Thu Sep 14 21:53:36 2023 user.notice ucitrack: Setting up /etc/config/vlmcsd reload trigger for non-procd /etc/init.d/kms
Thu Sep 14 21:53:36 2023 user.notice ddns-scripts[3349]: myddns_ipv4: PID '3349' started at 2023-09-14 21:53
Thu Sep 14 21:53:36 2023 daemon.notice procd: /etc/rc.d/S90kms: KMS Server has started.
Thu Sep 14 21:53:37 2023 daemon.notice procd: /etc/rc.d/S90turboacc: net.ipv4.tcp_congestion_control = cubic
Thu Sep 14 21:53:37 2023 daemon.notice procd: /etc/rc.d/S90turboacc: killall: dnscache: no process killed
Thu Sep 14 21:53:37 2023 daemon.notice procd: /etc/rc.d/S90turboacc: sh: you need to specify whom to kill
Thu Sep 14 21:53:37 2023 daemon.notice procd: /etc/rc.d/S90turboacc: Stop DNS Caching
Thu Sep 14 21:53:37 2023 daemon.notice procd: /etc/rc.d/S90turboacc: DNSMASQ change
Thu Sep 14 21:53:38 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:38 bootstrapDNS("derp9c.tailscale.com", "155.138.243.219") for "log.tailscale.io" error: Get "https://derp9c.tailscale.com/bootstrap-dns?q=log.tailscale.io": context deadline exceeded
Thu Sep 14 21:53:38 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:38 trying bootstrapDNS("derp4c.tailscale.com", "2a03:b0c0:3:d0::1501:6001") for "log.tailscale.io" ...
Thu Sep 14 21:53:39 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:39 bootstrapDNS("derp4c.tailscale.com", "2a03:b0c0:3:d0::1501:6001") for "log.tailscale.io" = [54.161.152.147 2600:1f18:429f:9305:823d:72c0:16da:fb33]
Thu Sep 14 21:53:39 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:39 logtail: bootstrap dial succeeded
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 LinkChange: major, rebinding. New state: interfaces.State{defaultRoute=pppoe-wan ifs={br-lan:[192.168.6.1/24 240e:39a:37a:c110::1/60 fd4a:9e1c:fc84::1/60] eth0.2:[192.168.5.3/24] eth0.3:[10.52.118.246/20] eth0.4:[189.131.122.246/19] pppoe-wan:[218.6.202.243/32 240e:398:31f:4a1a:767d:2472:372c:84b8/64]} v4=true v6=true}
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0}
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[]}
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 dns: OScfg: {Nameservers:[] SearchDomains:[] MatchDomains:[] Hosts:[]}
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 wgengine: set DNS config again after major link change
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 Rebind; defIf="pppoe-wan", ips=[218.6.202.243/32 240e:398:31f:4a1a:767d:2472:372c:84b8/64 fe80::767d:2472:372c:84b8/128]
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 magicsock: 0 active derp conns
Thu Sep 14 21:53:41 2023 daemon.err tailscaled[3153]: 2023/09/14 13:53:41 logtail: upload: log upload of 3553 bytes compressed failed: Post "https://log.tailscale.io/c/tailnode.log.tailscale.io/6044ff1559b2a0e4df2ee6b0e5dae0d2ee648c7ea96e97d12b4eca360734f766": read tcp 218.6.202.243:59468->54.161.152.147:443: read: connection reset by peer
Thu Sep 14 21:54:22 2023 daemon.err asterisk[6190]: /bin/sh: /usr/sbin/astdb2sqlite3: not found
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 monitor: time jumped (probably wake from sleep); synthesizing major change event
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 LinkChange: major, rebinding. New state: interfaces.State{defaultRoute=pppoe-wan ifs={br-lan:[192.168.6.1/24 240e:39a:37a:c110::1/60 fd4a:9e1c:fc84::1/60] eth0.2:[192.168.5.3/24] eth0.3:[10.52.118.246/20] eth0.4:[189.131.122.246/19] pppoe-wan:[218.6.202.243/32 240e:398:31f:4a1a:767d:2472:372c:84b8/64]} v4=true v6=true}
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0}
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[]}
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 dns: OScfg: {Nameservers:[] SearchDomains:[] MatchDomains:[] Hosts:[]}
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 wgengine: set DNS config again after major link change
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 Rebind; defIf="pppoe-wan", ips=[218.6.202.243/32 240e:398:31f:4a1a:767d:2472:372c:84b8/64 fe80::767d:2472:372c:84b8/128]
Thu Sep 14 21:54:29 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:29 magicsock: 0 active derp conns
Thu Sep 14 21:54:39 2023 daemon.info procd: Instance phtunnel::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Thu Sep 14 21:54:47 2023 daemon.info procd: Instance haproxy::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Thu Sep 14 21:54:59 2023 daemon.err tailscaled[3153]: 2023/09/14 13:54:59 logtail: upload succeeded after 1 failures and 38s
Thu Sep 14 21:55:23 2023 cron.err crond[7158]: crond (busybox 1.36.0) started, log level 5
Thu Sep 14 21:55:31 2023 daemon.err tailscaled[3153]: 2023/09/14 13:55:31 [RATELIMIT] format("monitor: %s: src=%v, dst=%v, gw=%v, outif=%v, table=%v") (9 dropped)
Thu Sep 14 21:55:31 2023 daemon.err tailscaled[3153]: 2023/09/14 13:55:31 monitor: RTM_NEWROUTE: src=, dst=, gw=, outif=1, table=100
Thu Sep 14 21:55:31 2023 daemon.err tailscaled[3153]: 2023/09/14 13:55:31 monitor: RTM_NEWROUTE: src=, dst=, gw=, outif=1, table=100
Thu Sep 14 21:55:35 2023 cron.err crond[8650]: crond (busybox 1.36.0) started, log level 5
Thu Sep 14 21:55:36 2023 daemon.notice procd: /etc/rc.d/S99sing-box: sing-box is started!
Thu Sep 14 21:55:36 2023 daemon.info procd: - init complete -
Thu Sep 14 21:55:38 2023 daemon.err sing-box[8767]: [31mFATAL[0m[0000] read config at ./config.json: open ./config.json: no such file or directory
Thu Sep 14 21:55:43 2023 daemon.err sing-box[8864]: [31mFATAL[0m[0000] read config at ./config.json: open ./config.json: no such file or directory
Thu Sep 14 21:55:48 2023 daemon.err sing-box[8873]: [31mFATAL[0m[0000] read config at ./config.json: open ./config.json: no such file or directory
Thu Sep 14 21:55:53 2023 daemon.err sing-box[8881]: [31mFATAL[0m[0000] read config at ./config.json: open ./config.json: no such file or directory
Thu Sep 14 21:55:58 2023 daemon.err sing-box[8889]: [31mFATAL[0m[0000] read config at ./config.json: open ./config.json: no such file or directory
Thu Sep 14 21:56:03 2023 daemon.err sing-box[8897]: [31mFATAL[0m[0000] read config at ./config.json: open ./config.json: no such file or directory
Thu Sep 14 21:56:03 2023 daemon.info procd: Instance sing-box::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

另外同样源码编译的 Newifi 3 固件的 phtunnel 与 pgyvpn 都可正常启动,猜测应该是没有正确编译对应芯片程序。

@lxhao61 lxhao61 changed the title phtunnel 与 pgyvpn 编译成功后都无法使用 phtunnel 与 pgyvpn 在斐讯 K3 上无法使用 Sep 14, 2023
@lxhao61
Copy link
Author

lxhao61 commented Sep 15, 2023

k3 这个 cpu 是博通,表面上是 armv7 但没有 fpu 支持。。

是的,实际为 armv5。希望大神修订一下编译文件可正确识别。

@OpenWrtLi
Copy link

我更新了一下,给你用最新的,lede 你用coolsnowwolf/lede@ f12c5e7

x86 最新6.1内核编译出错

Package pgyvpn is missing dependencies for the following libraries:
libcrypto.so.1.1
libssl.so.1.1
make[3]: *** [Makefile:133: /home/li/lede6.1/bin/targets/x86/64/packages/pgyvpn_3.1.0-1_x86_64.ipk] Error 1
make[3]: Leaving directory '/home/li/lede6.1/feeds/packages/net/pgyvpn'
time: package/feeds/packages/pgyvpn/compile#0.32#0.09#2.25
ERROR: package/feeds/packages/pgyvpn failed to build.
make[2]: *** [package/Makefile:116: package/feeds/packages/pgyvpn/compile] Error 1
make[2]: Leaving directory '/home/li/lede6.1'
make[1]: *** [package/Makefile:110: /home/li/lede6.1/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/li/lede6.1'

@coolsnowwolf
Copy link
Owner

已经解决

@OpenWrtLi
Copy link

已经解决

lean大佬牛逼

@lxhao61
Copy link
Author

lxhao61 commented Sep 17, 2023

我更新了一下,feeds 你用最新的,lede 你用 coolsnowwolf/lede@f12c5e7

测试了,phtunnel 在斐讯 K3 上可以正常使用了;但 pgyvpn 在斐讯 K3 上还是无法使用,报错如下(如之前情况):
P{E`RWW F712GY)3V27T~Z0

斐讯 K3 系统日志(pgyvpn 相关)如下:
......
Sun Sep 17 12:41:10 2023 daemon.err uhttpd[1999]: cat: can't open '/etc/bench.log': No such file or directory
Sun Sep 17 12:41:44 2023 daemon.err uhttpd[1999]: Command failed: ubus call service delete { "name": "pgyvpn" } (Not found)
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: pgyvpn app filename is /usr/sbin/pgyvpnsvr
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: username is lxhao61
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: log path is /tmp/oray/pgyvpnsvr/log
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: log mask is 7
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: local ip is 192.168.6.1
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: local mask is 255.255.255.0
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: script for p2p init is /usr/share/pgyvpn/p2pinit.sh
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: script for vnc init is /usr/share/pgyvpn/vncinit.sh
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: script for progress is /usr/share/pgyvpn/vpnprogress.sh
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: oraysl filename is /usr/sbin/pgyvpn_oraysl
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: oraysl log path is /tmp/oray/pgyvpn_oraysl/log
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: oraysl status filename is /tmp/oray/pgyvpn_oraysl/status
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: oraysl pid filename is /tmp/oray/pgyvpn_oraysl/pid
Sun Sep 17 12:41:44 2023 user.notice pgyvpn: no use encrypt
Sun Sep 17 12:42:10 2023 daemon.info procd: Instance pgyvpn::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Sun Sep 17 12:42:47 2023 daemon.err uhttpd[1999]: cat: can't open '/etc/bench.log': No such file or directory

另外 Newifi 3 固件的 pgyvpn 可以正常启动,表现一切正常(显示已经成功组网),就是管理平台显示一直离线,不知道什么回事,从而造成还是无法使用。

@swirly0p
Copy link
Contributor

在pgyvpn的Makefile文件里增加了下载libssl.so.1.1,libcrypto.so.1.1,并安装到/usr/lib,应该可以临时解决问题

define Download/oraysl
FILE:=pgyvpn_oraysl
URL:=$(PKG_SOURCE_URL)
HASH:=skip
endef
PKG_LIB_VER:=3.0.9
define Download/libssl
FILE:=libssl.so.1.1
URL:=https://mirrors.oray.com/orayos/packages/$(PKG_NAME)/$(PKG_ARCH_PGYYPN)/$(PKG_LIB_VER)/bin
HASH:=skip
endef
define Download/libcrypto
FILE:=libcrypto.so.1.1
URL:=https://mirrors.oray.com/orayos/packages/$(PKG_NAME)/$(PKG_ARCH_PGYYPN)/$(PKG_LIB_VER)/bin
HASH:=skip
endef
define Download/oraysl
FILE:=pgyvpn_oraysl
URL:=$(PKG_SOURCE_URL)
HASH:=skip
endef
$(eval $(call Download,libssl))
$(eval $(call Download,libcrypto))
$(eval $(call Download,oraysl))
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
mv $(DL_DIR)/{pgyvpn_oraysl,pgyvpnsvr,libssl.so.1.1,libcrypto.so.1.1} $(PKG_BUILD_DIR)
chmod +x $(PKG_BUILD_DIR)/{pgyvpn_oraysl,pgyvpnsvr}
endef

$(INSTALL_DIR) $(1)/usr/share/pgyvpn
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/{pgyvpn_oraysl,pgyvpnsvr} $(1)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/{libssl.so.1.1,libcrypto.so.1.1} $(1)/usr/lib
$(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d

@lxhao61
Copy link
Author

lxhao61 commented Jan 31, 2024

在pgyvpn的Makefile文件里增加了下载libssl.so.1.1,libcrypto.so.1.1,并安装到/usr/lib,应该可以临时解决问题

define Download/oraysl
FILE:=pgyvpn_oraysl
URL:=$(PKG_SOURCE_URL)
HASH:=skip
endef
PKG_LIB_VER:=3.0.9
define Download/libssl
FILE:=libssl.so.1.1
URL:=https://mirrors.oray.com/orayos/packages/$(PKG_NAME)/$(PKG_ARCH_PGYYPN)/$(PKG_LIB_VER)/bin
HASH:=skip
endef
define Download/libcrypto
FILE:=libcrypto.so.1.1
URL:=https://mirrors.oray.com/orayos/packages/$(PKG_NAME)/$(PKG_ARCH_PGYYPN)/$(PKG_LIB_VER)/bin
HASH:=skip
endef
define Download/oraysl
FILE:=pgyvpn_oraysl
URL:=$(PKG_SOURCE_URL)
HASH:=skip
endef
$(eval $(call Download,libssl))
$(eval $(call Download,libcrypto))
$(eval $(call Download,oraysl))
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
mv $(DL_DIR)/{pgyvpn_oraysl,pgyvpnsvr,libssl.so.1.1,libcrypto.so.1.1} $(PKG_BUILD_DIR)
chmod +x $(PKG_BUILD_DIR)/{pgyvpn_oraysl,pgyvpnsvr}
endef

$(INSTALL_DIR) $(1)/usr/share/pgyvpn
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/{pgyvpn_oraysl,pgyvpnsvr} $(1)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/{libssl.so.1.1,libcrypto.so.1.1} $(1)/usr/lib
$(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d

报错,无法成功编译。

@swirly0p
Copy link
Contributor

swirly0p commented Jan 31, 2024

报错,无法成功编译。

看来oray网上没有与arm_cortex-a9-musl-unknown配套的文件,那就只能回退到openssl v1.1编译出文件再放入

@lxhao61 lxhao61 changed the title phtunnel 与 pgyvpn 在斐讯 K3 上无法使用 pgyvpn 无法使用,且 斐讯 K3 编译出错。 Jan 31, 2024
@lxhao61
Copy link
Author

lxhao61 commented Jan 31, 2024

报错,无法成功编译。

看来oray网上没有与arm_cortex-a9-musl-unknown配套的文件,那就只能回退到openssl v1.1编译出文件再放入

测试编译的 Newifi 3 固件, pgyvpn 可以正常启动,但故障依旧:表现一切正常(显示已经成功组网),就是管理平台显示一直离线,从而造成还是无法使用。

@lxhao61 lxhao61 changed the title pgyvpn 无法使用,且 斐讯 K3 编译出错。 pgyvpn 无法使用,且编译斐讯 K3 出错。 Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants