Closed Hou-Xiaoxuan closed 3 months ago
BTW, the code does not appear to be compatible with macOS, and running 'sudo ztm agent' on macOS results in an error。
sudo ./bin/ztm start agent --listen 0.0.0.0:7777 --database ./agent.db
Password:
ztm: cannot open file: /var/root/Library/LaunchAgents/io.flomesh.ztm.agent.plist
os info:
OS: macOS 14.5 23F79 arm64
Host: MacBookPro17,1
Kernel: 23.5.0
CPU: Apple M1
GPU: Apple M1
@Hou-Xiaoxuan ,
May be try ztm run agent --listen 0.0.0.0:7777 --database ./agent.db
?
@Hou-Xiaoxuan ,
May be try
ztm run agent --listen 0.0.0.0:7777 --database ./agent.db
?
Yes, the run command is perfectly fine. I just want to report a bug with the ztm start
command.
```fish ztm: cannot open file: /var/root/Library/LaunchAgents/io.flomesh.ztm.agent.plist
Yes, we haven't adopt system service on MacOS. BTW, this bug report has been accepted. We'll handle it asap. Thanks!
@Hou-Xiaoxuan this issue has been fixed.
Run
ztm start
didn't report any errors, but service didn't start.Check service status:
And check
/etc/systemd/system/ztm-agent.service
found:The relevant code is on line 405 of agent/main.js.
There are two reasons for this error.
First, some linux system didn't have
which
command. Such as my Archlinux WSL.In addition, even with
whitch
, ztm downloads from release will not be added to path, and the documentation and readme do not mention this.