There are two occasions when I had to do a hard reboot, as a FreeBSD system was stuck with a connection and/or possibly a file handle.
The first one was when I had an NFS mount, which got disconnected without unmount. I couldn't unmount or do anything, I had to do a reboot, and at the very end of the reboot, I had to hard reboot.
The second one was when an
In both cases I asked on the IRC channel, but in that moment no one had any alternative idea.
My questions:
- Is it possible that npm was stuck with a file/directory handle, or this kind of "kill -9" not responding can only happen with network connections?
- If both cases were network related, what could I have done?
- How can I debug such cases?
FreeBSD 10.2 p8, bare metal host
The first one was when I had an NFS mount, which got disconnected without unmount. I couldn't unmount or do anything, I had to do a reboot, and at the very end of the reboot, I had to hard reboot.
The second one was when an
npm install ...
got stuck, and there was no way to kill -9 <PID>
out that npm process. Every chown ...
, rm -r ...
, find ...
process which tried to access the folder in which the npm was stuck got stuck as well. Ctrl + C didn't work on any of them. There is an issue ticket for npm being stuck, with 143 comments so far, so it seems to be a common issue: https://github.com/npm/npm/issues/7862In both cases I asked on the IRC channel, but in that moment no one had any alternative idea.
My questions:
- Is it possible that npm was stuck with a file/directory handle, or this kind of "kill -9" not responding can only happen with network connections?
- If both cases were network related, what could I have done?
ifconfig <interface> down; ifconfig <interface> up
and hope it goes back via SSH?- How can I debug such cases?
lsof -p
didn't really give me any meaningful info, except seeing the same directory in all stuck processes in case of npm.FreeBSD 10.2 p8, bare metal host
Last edited by a moderator: