Network Mounts Randomly Dropping, Part Two
When I woke up this morning and saw this problem still open on my desktop I decided to go back an re-edit /etc/sudoers
and rewrote the line from yesterday at the bottom of the file and then removed the copy I had placed in the middle yesterday. Then I rebooted. Now it works correctly! So either it matters where in the file I place that or I had a typo the first time.
I wrote up a script for Paperless-NGXs and set up the task scheduler on the fileserver to run in a few minutes to test. I confirm that Paperless-NGX has rebooted as expected. I reset the task to run 15 minutes after boot. The next time I need to reboot the fileserver I'll have to test that aspect.
I wrote up a script and task for PhotoPrism and FileRun. Then I logged on to each server and set them up to allow the reboot.
Since I have my three scripts ready for testing I bring up an instance of each in Windows Terminal and leave them open. If the servers reboot the Windows Terminal windows will show the connection as closed. I rebooted my fileserver at about 10:38am this morning so I should be able to come back and check after 11:00am and confirm if the Linux servers rebooted as well.
I came back around 11:15am to check on my progress. Paperless-NGX and FileRun rebooted by PhotoPrism did not. Taking a look it appears like I did get everything setup correctly. Checking Task Scheduler I see the task is still in a running status with a last run result of The task is currently running. (0x41301)
.
I was able to find my problem pretty quickly. I had a typo for the SSH key which was causing the server to prompt for the key and causing the script to stall out. Hopefully I'm understanding my logs correctly? Let's test. A test run of the task reboots PhotoPrism. So it looks like I am now all set with this. Hooray for a job completed!