Updating plugins fail after server runs for a few days


Go to solution Solved by tonyhamm,

Recommended Posts

I am having trouble updating plug-ins (any plug in) after the server has run for a few days.  I get error such as " Unable to install as gzip is not available on this system."  I can see that gzip is installed and should be in the path

root@Tower:~# which gzip
/usr/bin/gzip

If I reboot the server, plug ins will install fine......until the server has a few days uptime.

 

It is frustrating that everything else seems to be running fine in UnRaid but having to restart fairly regularly to install upgraded plugins is getting old.

 

Any ideas??

tower-diagnostics-20221102-1301.zip

Link to comment
  • Solution

I found the problem!!  I had a bash script that was scheduled to run every other day that, as part of the script, was incorrectly redirecting the output of a command to /dev/null.  Because it was not doing the redirection of stdout and stderr it was overwriting the character device /dev/null with a regular file called /dev/null.

 

Anytime something was trying to redirect to /dev/null it was failing.

 

I have

  • removed the incorrect /dev/null file 
  • created a new character device named /dev/null
  • and finally corrected the redirection to 
rm -rf *.1 > /dev/null 2>&1

instead of 

rm -rf *.1 2>&1 /dev/null

 

Since making this change to script and running manually the permissions on /dev/null are staying

root@Tower:/dev# ll null
crw-rw-rw- 1 root 1, 3 Nov  2 14:59 null

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.