Overview
When running an update manually via PowerShell (c.f. /article/M-Files-Hubshare-On-Premises-How-to-manually-upgrade-Hubshare-via-PowerShell), you might get stuck during the Viewer installation.
It will give you warnings in a loop saying that it is waiting for the WebViewer-Server service to stop.
This may take a few minutes to stop by itself, this article shows you how to stop the service manually.
Solution
- Open the Task Manager
- Go to the "Details" tab
- Display the "command line" column if you don't have it.
- Go to the java.exe lines (You should have two) and identify the one that has a command line that starts with "C:\WebViewer-Server"
- Right click on it, and press "End Task"
- Go back to your PowerShell window, the script should now continue.
In some rare cases, this might not end the WebViewer-Server service, if that happens to you, please follow the next steps:
- Get to the Task Manager again, and go in the Details tab
- Look for BlackBoxWorker.exe and end the task
- Look for tomcat10.exe and end this task as well
Your PowerShell script should now continue.
