-
Notifications
You must be signed in to change notification settings - Fork 477
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
在 Openwrt procd init 脚本中设置 env RUST_BACKTRACE=1
,在哪里看到 log?
#143
Comments
刚刚遇到一个问题,没断网,但 server 端显示其中一个端口 Shutdown,其它的正常。只能重启 client 端 |
连接偶尔断开是正常的,只要能自动重连就不影响使用。你可以提供复现环境和这个问题相关的日志吗? |
我就是不知那里看日志才发 issue |
rathole 的日志输出在 stdout/stderr。你可以试试
参见 https://openwrt.org/docs/guide-developer/procd-init-scripts |
谢谢,在系统日志中看到log了,我再观察一下,到时有什么情况再跟你反馈一下。 |
看了 log ,client 端在路由器断网 ( 04:30 ) 后,不能自动重连 server 端吗? 下面是log
|
04:31:14 之后还有日志吗? |
没了,我早上10点多看的,进程还在,没其它日志,此时只能重启 client 。。前几天好似是重启 server 端也行(不确定) |
可以麻烦你用 |
我也是第一次用 rathole,直接上了 v0.4.0,我去设置一下 |
下面是我重启 rathole 后,路由器系统日志 Fri Mar 25 11:22:09 我设了
|
感谢你的反馈 |
还有问题吗? |
rathole 是安装在旁路由 openwrt 中。是从这里下载的 https://github.com/rapiz1/rathole/releases/download/v0.4.0/rathole-aarch64-unknown-linux-musl.zip
主路由每晚4点30分会自动重启,重启后,server 端( docker 0.4.0 版) 大约在 4点47分左右 显示下面这样的 log
为了搞清什么问题,我在 openwrt 启动脚本
/etc/init.d/rathole
中 加了RUST_BACKTRACE=1
重启 op,rathole 能正常启动,但没找到地方看 log。。在 openwrt 的系统日志中也看不到
感觉是 env 没起作用,然后将脚本改成
procd_set_param command RUST_BACKTRACE=1 $PROG --client $CONFIG
结果 rathole 不能启动。。
我应该怎样 debug 呢?
The text was updated successfully, but these errors were encountered: