Open L-Trump opened 2 months ago
I have similar issue since I switched to using systemd-resolved
:
panic occurred: PanicInfo { payload: Any { .. }, message: Some(called `Result::unwrap()` on an `Err` value: TunnelError(IOError(Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }))), location: Location { file: "easytier/src/easytier-core.rs", line: 668, col: 22 }, can_unwind: true, force_no_backtrace: false }
Have any ideas?
I have similar issue since I switched to using
systemd-resolved
:panic occurred: PanicInfo { payload: Any { .. }, message: Some(called `Result::unwrap()` on an `Err` value: TunnelError(IOError(Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }))), location: Location { file: "easytier/src/easytier-core.rs", line: 668, col: 22 }, can_unwind: true, force_no_backtrace: false }
Have any ideas?
This is more of a startup order issue, we need to ensure that the network is ready when easytier starts up. So an available workaround is to modify easytier's systemd service to start after nss-lookup.target and made it restart on failure.
[Unit]
After=network-online.target nss-lookup.target
Description=EasyTier Service
Wants=network-online.target nss-lookup.target
[Service]
ExecStart=/nix/store/ns0fdssq7bx8a2pvpi0ni73skc24iyz8-easytier-2.0.3/bin/easytier-core -c /etc/easytier/ltnet.conf --multi-thread
Restart=on-failure
Type=simple
[Install]
WantedBy=multi-user.target
@L-Trump In my case panic still occurs each time even if I restart easytier-core manually.
复现:
日志:
期望的现象: 程序不Panic,而是进行重连