Knowledge Base
4.3.x
Search this version
Knowledge Base
Knowledge Base
CONFIGURATION & SETUP
Errors and Troubleshooting
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Why am I receiving the error "PostgreSQL migrations did not finish" when installing MetaDefender Storage Security?
Copy Markdown
Open in ChatGPT
Open in Claude
This article applies to MetaDefender Storage Security v4.0.x releases deployed on Windows systems.
Issue:
- When installing MetaDefender Storage Security on Windows server, the error "PostgreSQL migrations did not finish after 10000 retries. Please check logs for any issues.“ is received, even on a fresh installation.

Main Cause:
- This occurs because MetaDefender Storage Security was previously installed on the machine but not completely removed after an uninstall or problem. This leftover data causes the installer to recognize an existing installation and attempt an upgrade instead of a fresh install.

Resolution:
Please follow the steps below to safely remove and reinstall MetaDefender Storage Security (MDSS):
1. Stop MDSS Services
Stop all related MDSS services from Services (services.msc) or by using the following commands:
net stop mdssnet stop mdss_postgresqlnet stop mdss_rabbitmq2. Remove MDSS Windows Services
Run the following commands as Administrator to remove existing services:
sc.exe delete "mdss_postgresql"sc.exe delete "mdss_rabbitmq"sc.exe delete "mdss"3. Remove Installation Directory
Delete the default installation folder:
C:\Program Files\OPSWAT\MetaDefender Storage SecurityEnsure all files are removed.
4. Handle Locked Files (if any)
If some files cannot be deleted:
- Ensure all MDSS services are stopped
- Close any open log files
- Restart the system if needed
Advanced:
- Use Process Explorer to identify which process is locking the files
5. Remove Registry Entry
Clean up the registry by running:
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\OPSWAT\MetaDefender Storage Security" /f6. Reboot the System
Restart the machine to ensure all remaining components are fully cleared.
7. Reinstall MDSS
Run the installer again after completing all steps above.
If Further Assistance is required, please proceed to create a support case or chat with our support engineer.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
On This Page
Why am I receiving the error "PostgreSQL migrations did not finish" when installing MetaDefender Storage Security?Issue:Main Cause:Resolution:1. Stop MDSS Services2. Remove MDSS Windows Services3. Remove Installation Directory4. Handle Locked Files (if any)5. Remove Registry Entry6. Reboot the System7. Reinstall MDSS