Overview
The AutoUpdate feature exists since version 4 of Hubshare and allows you to update your Hubshare instance via the AutoUpdate page by just clicking the "Update" button.
In some situations, the update can fail, and if the logs show that the script could not open the database, it means we must switch the way we connect to your database. This article will show you how.
Solution
The application running the update will use the current Windows account to do the database update.
If your updates from the AutoUpdate page are failing or not finishing, look at your logs to confirm if you're in the situation this article is covering.
- Go to your PowerShell and AutoUpdate logs (C:\Hubshare\Logs\Powershell & C:\Hubshare\Logs\AutoUpdate)
- If the script stops at the SQL step and/or mentions "Cannot open the database" you are in the scenario where this article can help you.
- Now you will need to decrypt your database info to check its content (here is the article explaining you how to proceed /article/How-to-update-the-SQL-Server-name-for-Hubshare-On-Premise)
- When you have decrypted the registry key, please double check if your credentials are well set in the Database value of the registry keys, in this format (User Id=xxxxx;Password=xxxxx)
- Make sure you also have Integrated Security=False
- Encrypt your registry keys as explained in the article that was shared in Step 3.
- Try again to update from the AutoUpdate page
If you still encounter the issue, please create a case in the M-Files Support Portal and attach the logs related to AutoUpdate (which can be found in C:\Hubshare\Logs\AutoUpdate and C:\Hubshare\Logs\Powershell) via Cryptshare (/article/How-to-Send-Files-via-CryptShare-Portal)
