firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Sometimes "shutdown in progress" after gbak restore since 3.0.11 (Classic)

Open mielverh opened this issue 1 year ago • 3 comments

Since we are using Firebird 3.0.11 some of our customers (about 1%) report a problem with gbak restore. The output then ends with:

gbak:finishing, closing, and going home gbak:adjusting the ONLINE and FORCED WRITES flags [FireDAC][Phys][FB]database D:\DATA\DATABASE.FDB shutdown in progress IProvider::attachDatabase failed when loading mapping cache unknown ISC error 336330835

This might be caused by https://github.com/FirebirdSQL/firebird/pull/7233

There is no shutdown in progress, it just thinks it is?

In our tools we delete the restored fdb afterwards in case of a problem, so we don't have a database to analyze. If the customer repeats the backup+restore, it runs without a problem. We are not able to reproduce the problem.

Windows, Delphi application, scheduled backup+restore under system account, Firebird Classic, svcmgr.

mielverh avatar Aug 27 '24 10:08 mielverh

We switched most customers who experienced the problem from Classic to SuperServer (still 3.0.11). So far the problem has not occurred with SuperServer.

mielverh avatar Oct 09 '24 14:10 mielverh

Related to https://github.com/FirebirdSQL/firebird/issues/7122 ?

mielverh avatar Jul 17 '25 10:07 mielverh

This problem exists also in 3.0.13.33818. Previously we reverted customers to 3.0.5, but with the security issue that is no longer possible. Today we captured a database after the restore, and it turned out to be fine. Could it be a timing issue, that we should wait a few seconds after the restore before performing other actions on the database?

mielverh avatar Aug 18 '25 07:08 mielverh