I've got a Pi running Raspberry Pi OS Bookworm. I've been starting aHave you tried updating all of the npm packages too?
NODE app (not mine - one that I've downloaded) from a cron job and using
one of the start-at-boot mechanisms (I forget which!).
This has worked until did a "sudo apt update" and "sudo apt upgrade".
Now the cron job fails to start the app, even though an explicit
background job works from a terminal window.
I've got a Pi running Raspberry Pi OS Bookworm. I've been starting a
NODE app (not mine - one that I've downloaded) from a cron job and
using one of the start-at-boot mechanisms (I forget which!).
This has worked until did a "sudo apt update" and "sudo apt upgrade".
Now the cron job fails to start the app, even though an explicit
background job works from a terminal window.
The script runs fine - all the logging stuff is OK. But it seems
that "node" does not like running as a background job any more when
invoked from a cron job as opposed to a terminal session.
The reason it's run from a cron job is that it has a habit of
crashing every so often (no idea why, and writer of the app doesn't
reply to emails) so I run it from cron every 5 minutes to restart it
if it has stopped.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 54:23:48 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,563 |