xo-server/bin doesn't exist after updating with yarn build.
-
@danp No, those are generated files.
Unfortunately they are not cleaned-up automatically but hopefully this won't happen too often
-
@julien-f and @Danp thanks a lot for your help! Now it works if I manually run cli.mjs
mex@xo-community:~/xen-orchestra/packages/xo-server$ sudo ./dist/cli.mjs 2021-06-30T06:21:41.457Z xo:main INFO Configuration loaded. 2021-06-30T06:21:41.478Z xo:main INFO Web server listening on http://[::]:80 2021-06-30T06:21:41.924Z xo:main INFO Setting up / ā /home/mex/xen-orchestra/packages/xo-web/dist
However, what should I do to recreate the service to start on boot. When setting up and using forever as described here. I'm still not able to load the web interface.
It seems that the service starts and is active
mex@xo-community:~/xen-orchestra/packages/xo-server$ sudo service orchestra status ā orchestra.service - LSB: forever-service startup script for orchestra Loaded: loaded (/etc/init.d/orchestra; generated) Active: active (exited) since Wed 2021-06-30 08:28:05 CEST; 3min 15s ago Docs: man:systemd-sysv-generator(8) Process: 1141 ExecStart=/etc/init.d/orchestra start (code=exited, status=0/SUCCESS) Jun 30 08:28:04 xo-community systemd[1]: Starting LSB: forever-service startup script for orchestra... Jun 30 08:28:05 xo-community orchestra[1141]: (node:1145) Warning: Accessing non-existent property 'padLevels' of module exports inside c Jun 30 08:28:05 xo-community orchestra[1141]: (Use `node --trace-warnings ...` to show where the warning was created) Jun 30 08:28:05 xo-community orchestra[1141]: (node:1145) Warning: Accessing non-existent property 'padLevels' of module exports inside c Jun 30 08:28:05 xo-community orchestra[1141]: Starting orchestra Jun 30 08:28:05 xo-community orchestra[1141]: (node:1162) Warning: Accessing non-existent property 'padLevels' of module exports inside c Jun 30 08:28:05 xo-community orchestra[1141]: (Use `node --trace-warnings ...` to show where the warning was created) Jun 30 08:28:05 xo-community orchestra[1141]: (node:1162) Warning: Accessing non-existent property 'padLevels' of module exports inside c Jun 30 08:28:05 xo-community systemd[1]: Started LSB: forever-service startup script for orchestra.
-
Just a little update: I didn't find a solution to the problem so I ended up restoring from my backup. However, I think I found what originally created the problems:
It was not directly related to XO, but before I upgraded XO, which caused the problems, I ran
sudo apt upgrade
and somehow the redis-server service stalled and maybe corrupted the update and thus created problems when I tried to update XO.So what I did was, after I restored from the backup I shutdown the redis-server.service and then
sudo apt upgrade
and then upgraded XO from git. And now it works. But thanks a lot for your help @julien-f and @Danp. -
Just to information if anyone else ends in a similar situation. My problem was created by two issues: 1) Failing to updating redis-server packet 2) Trouble with node modules.
-
Failing to update redis-server: I found out that I had trouble updating redis with the apt package manager. It stalled because the Forever service blocked
apt upgrade
. So I stopped the forever serviceforever stop orchestra
and then updated redis. -
The trouble with the node modules: Followed this post and removed the node modules and rebuild.
-
-
I had same issue.
doing: git clean -d -f
and then running yarn build again helped. -