Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

v7 rc1 stat lsof fuser hangup when a uad remote share goes offline, nchan issue

  • 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

 

image.png.07882631860ace02e651f05c422ea420.png

 

as soon the remote share comes back online, the corresponding error is here from the remote share (even lsof local disk was executed)

 

image.png.a5915dc6903313e3e589f1b78997d62a.png

 

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

 

image.png.94d01aea13dc221888e45c6adbdd2acb.png

 

i think this introduced lately with some v7 release ...

 

thanks ahead for taking a look

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.