Upgrade fails on Repository server
fatherjack2
Posts: 311
I ran the install on my 'central' SQL Backup server and got an error item:
Can anyone offer any advice please?
Edit:
Change that, I clicked the 'upgrade' icon in application and went through upgrade process for 3rd time and the install succeeded'. However, there seems to be no activity history ... anyone else had similar issues?
Edit #2:
OK, restarted SQL Backup on client twice and now everything seems to be as expected: All servers are showing full activity history and jobs are running as normal. No issue outstanding, just a shared experience that may prove useful ...
Jonathan
<servername> Server Component Installation - Failed ================================================= Copy SQBServerSetup.exe to server - Successful ---------------------------------------------- This operation completed successfully. Run setup on server - Successful -------------------------------- This operation completed successfully. Start SQL Backup Agent service - Successful ------------------------------------------- This operation completed successfully. Check installed versions - Failed --------------------------------- The SQL Backup extended stored procedure DLL version is 5.4.0.55, and 6.0.0.412 was expected. Check SQLBackup extended stored procedures - Successful ------------------------------------------------------- This operation completed successfully. Delete setup file from server - Successful ------------------------------------------ This operation completed successfully. Updating SQL Server information - Successful -------------------------------------------- This operation completed successfully.
Can anyone offer any advice please?
Edit:
Change that, I clicked the 'upgrade' icon in application and went through upgrade process for 3rd time and the install succeeded'. However, there seems to be no activity history ... anyone else had similar issues?
Edit #2:
OK, restarted SQL Backup on client twice and now everything seems to be as expected: All servers are showing full activity history and jobs are running as normal. No issue outstanding, just a shared experience that may prove useful ...
Jonathan
Senior DBA
Careers South West Ltd
Comments
We have had several reports of the extended stored procedure not being freed by SQL Server, which is expected on a small number of installations. This most likely will happen on SQL Server 2000. However, repeated attempts to run the upgrade wizard do seem to solve the problem. We don't have a firm explanation for why it would work on the second or third attempt.
Brian -
I had the same issue on 3 SQL 2005 servers. Finally gave up and did the install manually using the executable. This worked.
Tim
After 5 or 6 unsuccessful attempts from the client, I switched to manual upgrade on the repository server after first stopping the SQL Backup service. Even that failed, but gave a somewhat different error msg: "The extended stored procedure file (xp_sqlbackup.dll) that exists is an earlier version. Check that you have rights to overwrite the existing file,and run the installation again."
It was no surprise to find that the DLL was locked (C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\xp_sqlbackup.dll).
To successfully upgrade the repository server, I had to unlock the DLL (using unlocker), run SQBServerSetup again, delete and re-register the two extended stored procs:
sp_addextendedproc 'sqlbackup','xp_sqlbackup.dll'
sp_addextendedproc 'sqbutility','xp_sqlbackup.dll'
and restart the SQL Server instance.
By the way, the repository runs in a SS 2005 default instance on the same server with a SS 2000 named instance. I did not have any problems upgrading the SS 2000 named instance prior to the above adventures with the repository instance.
As part of the upgrade process we issue to get SQL Server to release our dll file for upgrade.
However SQL Server does not release the file and we have never been able to accurately identify the cause.
In some cases, retrying the upgrade process resolves the problem.
Another way of loading the new or upgrade dll file is to perform the following:
DBCC xp_sqlbackup(FREE)
EXEC sp_dropextendedproc sqlbackup
EXEC sp_dropextendedproc sqbstatus
EXEC sp_dropextendedproc sqbutility
EXEC sp_dropextendedproc sqbmemory
EXEC sp_dropextendedproc sqbdata
EXEC sp_dropextendedproc sqbdir
EXEC sp_dropextendedproc sqbtest
EXEC sp_dropextendedproc sqbtestcancel
EXEC sp_dropextendedproc sqbteststatus
Stop the SQL Server Service.
Find all previous versions of xp_sqlbackup on your system and remove them including the installation folder.
Find the new version of xp_sqlbackup.dll ( a copy can be found in the SQL Backup GUI installation folder) and copy this to the SQL Server instance BINN folder.
Start the SQL Server Service.
sp_addextendedproc sqlbackup, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbstatus, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbutility, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbmemory, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbdata, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbdir, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbtest, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbtestcancel, “xp_sqlbackup.dllâ€
sp_addextendedproc sqbteststatus, “xp_sqlbackup.dllâ€
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com