Veeam Backup Service wont Start

Have you ever installed a new Veeam Backup server but then Veeam won’t start? 

I ran into this issue recently can got the error ‘The Veeam Backup Service service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.’ However, this does not make sense because the main Veeam backup service needs to run. The first thing I thought to check was the event logs.  I found this:

veeam event viewer error

Veeam wont start and it seemed to be a database issue. However this was a brand new Veeam server and was using a fresh SQL instance. I re-traced the steps I took to configure the server and the last thing I did was add the server to the domain and rebooted. 

After some web searches I found and option to check the registry. Apparently sometimes Veeam doesn’t update if you install Veeam before you add the server to the domain. 

regedit search

First go to HKEY_LOCAL_MACHINE > SOFTWARE > Veeam > Veeam Backup and Replication and verify that SqlServerName is correct and not some random windows generated name.

regedit sql server name

Second go to HKEY_LOCAL_MACHINE > SOFTWARE > Veeam > Veeam Backup Catalog and verify the CatalogSharedFolderPath is correct. 

regedit veeam catalogsharedfolderpath

After that the service should start up like normal. Now the event log about the database issue makes sense because of the registry setting for the SQL server name. I hope this saved you some trouble in case Veeam wont start. 

Check out my Veeam Engineer Study guide here.

Create Restart Program Batch Script

This week I was playing around with a new setup, multiple computers and multiple monitors. I tried to use a program called mouse ShareMouse… and it worked great. However the free version causes you to buy or restart the program every 30 min or so to use the ‘pro’ features. That’s when I thought to just create a restart program script just to see if it would work. 

I decided to use batch to script the restart for ShareMouse. I would need to use a loop, timeout, taskkill and start. First I stopped the service when the script started to ensure the loop didn’t fail if the program was already running. 

@echo off
title SharedMouse Restart Script

taskkill /F /IM ShareMouse.exe

Then you enter the loop. I start the program, wait an amount of time less than the program pro version timeout and stop ShareMouse. 

:loop
echo Starting Application
start "" "C:\Program Files (x86)\ShareMouse\ShareMouse.exe"
timeout /t 300
echo Stopping Application
taskkill /F /IM ShareMouse.exe
goto loop

I ran this script on every computer with ShareMouse and it worked fine. I went all day without hiccup. Just thought I’d share this simple restart program script. 

If you want to get ShareMouse you can find it here

Check out my last scripting post here.