- Minor
Hi,
while investigating some hangups here, i stumbled over the following behaviour.
all scripts, plugins, ... hungup from time to time lately when executing lsof.
in the end the result is now, if a unrelated remote share goes offline which is even not related to the executed lsof command, it will hang forever ... or if i set a timeout it ll return "terminated" as it cant execute ...
as uad doesnt execute any lsof commands and @dlandon pointed me to a direction (thank again)
it looks like its somehow related to these processes in nchan from (or may before, after, ...)
./emhttp/plugins/dynamix/nchan/update_1
exec('LANG="en_US.UTF8" lsof -Fn /mnt/* 2>/dev/null|awk -F/ \'$1=="n" && $2=="mnt" && $5!="" {print $4"/"$5"/"$6"/"$7}\'|sort -u|awk -F/ \'{print $1}\'',$lsof);
sample usecase, lsof -a /mnt/disk1 will "stall" while /mnt/remotes/whatever goes unexpected offline
here a screen where it hangs
as soon the remote share comes back online, the corresponding error is here from the remote share (even lsof local disk was executed)
if i implement a timeout in my script, plugin it ll end up like this, terminated as some background process is blocking ...
1/ lsof executed with unrelated remote share /mnt/remotes/... online
2/ lsof executed with unrelated remote share /mnt/remotes/... offline
i think this introduced lately with some v7 release ...
thanks ahead for taking a look