Database replace through services API fails
-------------------------------------------

                 Key: CORE-4224
                 URL: http://tracker.firebirdsql.org/browse/CORE-4224
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.5.3
         Environment: Windows XP
            Reporter: michalk1


Gbak in service mode now fails to overwrite a database. The problem is specific 
to current FB2.5.3 snapshot builds, previous release version (2.5.2) is ok:

gbak -REP -USER sysdba -PASSWORD masterkey -SERVICE localhost:service_mgr 
C:\test.gbk C:\test.fdb

gbak: ERROR:could not drop database C:\test.fdb (database might be in use)
gbak: ERROR:    Exiting before completion due to errors

  Nevertheless, the replaced database file is removed by previous gbak call, so 
the next call of the same gbak command is successfull (since the file to 
overwrite is now missing). Once the database file exists, however, gbak fails 
again.
  To be sure that the file is really not in use, I even tried to stop the 
server before the gbak call, but it didn't help.

The same problem can be demonstrated by fbsvcmgr:

fbsvcmgr localhost:service_mgr -user sysdba -password masterkey action_restore 
verbose res_replace -dbname C:\test.fdb -bkp_file C:\test.gbk

gbak:opened file C:\test.gbk
could not drop database C:\test.fdb (database might be in use)
-Exiting before completion due to errors

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to