Arch Killing long running node/npm processes before finishing - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +---- Forum: Archlinux (https://forum.pine64.org/forumdisplay.php?fid=25) +---- Thread: Arch Killing long running node/npm processes before finishing (/showthread.php?tid=823) |
Arch Killing long running node/npm processes before finishing - faddah - 04-28-2016 hello all,
when i run certian longer processes in node.js/npm, like an update ($ npm update -g) or to search for an npm package ($ npm search elm), it starts the process on my Pine64 A64+ w/ 2 GB board, but then half- or even three-quarters of the way through, it just kills the process before it completes; particularly, i noticed, when it's waiting for info to come back across the 'net through the ethernet port, with —
Killed
then it just gives me the command prompt again, process never completes. this happens no matter how many times i re-try it.
is there anyway to change a setting, somewhere, that will extend the amount of time before these processes are killed? any help would be much appreciated, please. thank you and advance.
best,
— faddah
portland, oregon, u.s.a.
RE: Arch Killing long running node/npm processes before finishing - tkaiser - 04-28-2016 Can you please provide the output of 'uname -a' and 'cat /proc/meminfo' RE: Arch Killing long running node/npm processes before finishing - faddah - 04-28-2016 (04-28-2016, 10:59 AM)@tkaiser Wrote: Can you please provide the output of 'uname -a' and 'cat /proc/meminfo' @tkaiser — sure! thank you for the help. Code: $ uname -a there you go. please let me know and thank you for the help. best, — faddah portland, oregon, u.s.a. RE: Arch Killing long running node/npm processes before finishing - tkaiser - 04-28-2016 Thx for the answer. The OS image you're using is obviously only able to recognize 1 GB RAM (know issue, fixed by longsleep ages ago) and also the kernel is rather outdated. By simply executing the three lines below you get 1 GB more useable DRAM, a fixed MAC address without any hassles and a bunch of other fixes for free. Unfortunately the Pine64 folks do a really really bad job providing necessary informations (maybe for a reason? Marketing matters) and all you need to do is to update both u-boot and kernel. Please read through these instructions: - http://forum.pine64.org/showthread.php?tid=737 - http://forum.pine64.org/showthread.php?tid=293 TL;DR: To update any of the available OS images all that's needed is just the following executed as root followed by a reboot: Code: bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh) It's a shame that such essential information isn't provided at the download location where every new user searches for software. Regarding your real issue I would suspect reading through 'man nohup' should be able to solve the issue? RE: Arch Killing long running node/npm processes before finishing - patrickhwood - 04-28-2016 (04-28-2016, 10:14 AM)faddah Wrote: Linux doesn't normally kill processes that run long. Try "dmesg | tail" after the process is killed to see if something like oom is killing it. |