The permissions are all elevated due to chroot install. This means that the final user does not have access to the files.
Yarn missing .yarnrc.yaml causing it to default to pnp mode. Not necessarily a bad thing, but just unclear whether the dependencies exist
corepack enable is enough, dont npm i -g yarn
A setup with pm2 might be better as it is clearer what goes wrong.
Overall, I got the sqlite image to run. But I had to hack a lot by using sudo chown -R pi /home/pi/fdm-monster/.
and sudo chown -R pi /home/pi/fdm-monster-deamon/.
I finished the node_modules install in
yarn workspaces focus --all --productioncd /home/pi/fdm-monster-deamon/sudo npm isudo service fdmmonster status
There's quite a big amount of work to be done:
.yarnrc.yaml
causing it to default to pnp mode. Not necessarily a bad thing, but just unclear whether the dependencies existcorepack enable
is enough, dontnpm i -g yarn
pm2
might be better as it is clearer what goes wrong.Overall, I got the sqlite image to run. But I had to hack a lot by using
sudo chown -R pi /home/pi/fdm-monster/.
andsudo chown -R pi /home/pi/fdm-monster-deamon/.
I finished the node_modules install inyarn workspaces focus --all --production
cd /home/pi/fdm-monster-deamon/
sudo npm i
sudo service fdmmonster status