Connect to the appliance via SSH and execute the commands in the following order.
# Switch to root user
sudo su
# 3.1 Install Database Role (Replace 'Database Password Here')
/opt/bitdefender/eltiw/installer -n install db 'Database Password Here'
# 3.2 Stop Required Services
systemctl stop vasync gz-update-system-service bd-installer@tty1
# 3.3 Disable MongoDB Authentication
sed -i 's/authorization: enabled/authorization: disabled/g' /etc/mongodb.conf
service mongodb restart
sleep 30
# 3.4 Restore Backup (Replace DUMP-NAME.gz with actual filename)
mongorestore --noIndexRestore --nsExclude "admin.*" --nsExclude "installer.*" --drop --gzip --archive=/home/bdadmin/DUMP-NAME.gz
# 3.5 Remove Conflicting Data
mongo local --quiet --eval 'db.dropDatabase()'
mongo devdb --quiet --eval 'db.packageStats.remove({})'
mongo devdb --quiet --eval 'db.endpointKits.remove({})'
mongo devdb --quiet --eval 'db.applianceSpecifics.remove({})'
mongo devdb --quiet --eval 'db.vpnSettings.drop()'
mongo devdb --quiet --eval 'db.vpnCluster.drop()'
# 3.6 Remove Non-Database Roles
mongo devdb --quiet --eval 'db.applianceInstalls.remove({name:{$ne:"db"}})'
# 3.7 Select Appliance ID (Replace 'Database Password Here')
/opt/bitdefender/bin/mongoshell -u bd -p 'Database Password Here' --eval 'print(db.applianceInstalls.findOne({name:"db"}).applianceId);' --quiet devdb > /opt/bitdefender/etc/applianceid
# 3.8 Remove Entries with Incorrect IDs
mongo devdb --quiet --eval 'db.applianceInstalls.remove({applianceId:{$ne:"'"${applid}"'"}})'
# 3.9 Re-Enable Authentication
sed -i 's/authorization: disabled/authorization: enabled/g' /etc/mongodb.conf
service mongodb restart
sleep 150
# 3.10 Start Services
service vasync start; sleep 120
systemctl start bd-installer@tty1
Reboot the appliance. After the reboot, access the GravityZone Web Console. It should now be fully operational.