Hi @Danp,
I did the following commands:
# yarn global add forever
yarn global v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "forever@4.0.3" with binaries:
- forever
Done in 5.19s.
#
# yarn global add forever-service
yarn global v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "forever-service@0.5.11" with binaries:
- forever-service
- get-forever-config
Done in 4.48s.
#
# forever-service install orchestra -r xo -s dist/cli.mjs
forever-service version 0.5.11
Platform - Debian GNU/Linux 12 (bookworm)
orchestra provisioned successfully
Commands to interact with service orchestra
Start - "sudo service orchestra start"
Stop - "sudo service orchestra stop"
Status - "sudo service orchestra status"
Restart - "sudo service orchestra restart"
#
# sudo service orchestra start
#
# sudo service orchestra status
ā orchestra.service - LSB: forever-service startup script for orchestra
Loaded: loaded (/etc/init.d/orchestra; generated)
Active: active (exited) since Thu 2024-03-28 08:38:18 EDT; 22s ago
Docs: man:systemd-sysv-generator(8)
Process: 199365 ExecStart=/etc/init.d/orchestra start (code=exited, status=0/SUCCESS)
CPU: 19ms
Mar 28 08:38:16 XO systemd[1]: Starting orchestra.service - LSB: forever-service startup script for orchestra...
Mar 28 08:38:17 XO orchestra[199365]: Starting orchestra
Mar 28 08:38:18 XO systemd[1]: Started orchestra.service - LSB: forever-service startup script for orchestra.
#
# systemctl enable orchestra.service
orchestra.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable orchestra
Then I rebooted the system, but XO is not running:
# ss -tupln
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 0.0.0.0:111 0.0.0.0:* users:(("rpcbind",pid=472,fd=5),("systemd",pid=1,fd=37))
udp UNCONN 0 0 [::]:111 [::]:* users:(("rpcbind",pid=472,fd=7),("systemd",pid=1,fd=39))
tcp LISTEN 0 4096 0.0.0.0:111 0.0.0.0:* users:(("rpcbind",pid=472,fd=4),("systemd",pid=1,fd=36))
tcp LISTEN 0 511 127.0.0.1:6379 0.0.0.0:* users:(("redis-server",pid=517,fd=6))
tcp LISTEN 0 511 [::1]:6379 [::]:* users:(("redis-server",pid=517,fd=7))
tcp LISTEN 0 4096 [::]:111 [::]:* users:(("rpcbind",pid=472,fd=6),("systemd",pid=1,fd=38))
The log shows me the following error:
2024-03-28T12:45:02.002Z xo:main WARN Access denied.
2024-03-28T12:45:02.003Z xo:main WARN Ports < 1024 are often reserved to privileges users.
ā EACCES: permission denied, open '/home/xo/.config/xo-server/config.z-auto.json'
Error: EACCES: permission denied, open '/home/xo/.config/xo-server/config.z-auto.json'
{"level":"error","message":"Forever detected script exited with code: 1"}
{"level":"error","message":"Script restart attempt #28"}
What should I do if I want to completely remove XO and use the script xenorchestra_installer?