New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database which has active attachments can not be replaced from backup file even after database shut down [CORE1475] #1891
Comments
Modified by: Yakov Hrebtov (jake)summary: Database which has active attachments can not be replaced from backup file even ater database shut down => Database which has active attachments can not be replaced from backup file even after database shut down |
Modified by: @dyemanovassignee: Dmitry Yemanov [ dimitr ] |
Modified by: @dyemanovTarget: 2.5.0 [ 10221 ] |
Modified by: Yakov Hrebtov (jake)Version: 2.1 Beta 2 [ 10190 ] Version: 2.0.3 [ 10200 ] Version: 2.0.1 [ 10090 ] description: An error occurs on attempt to replace shut down database which has an active attachments. Steps to reproduce: And you will get: gbak:opened file /opt/firebird/data/manual-backup/generation_devel.fbk => An error occurs on attempt to replace shut down database which has an active attachments. Steps to reproduce: You'll get: gbak:opened file /tmp/test.fbk This is expected, but this step is required to reproduce subsequent error on step 4. 3. Shutdown database: And you will get: gbak:opened file /opt/firebird/data/manual-backup/generation_devel.fbk environment: snapshot build: LI-T2.1.0.16657 CS => snapshot build: LI-T2.1.0.16657 CS, LI-T2.1.0.17520 CS, FB 2.0.1 CS, FB 2.0.3 CS |
Modified by: @pcisarWorkflow: jira [ 13150 ] => Firebird [ 13955 ] |
Modified by: @dyemanovstatus: Open [ 1 ] => Open [ 1 ] Fix Version: 2.5 Beta 1 [ 10251 ] Fix Version: 2.5 Alpha 1 [ 10224 ] => |
Modified by: @dyemanovstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.5.3 [ 10461 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @pavel-zotovQA Status: No test |
Submitted by: Yakov Hrebtov (jake)
An error occurs on attempt to replace shut down database which has an active attachments.
Database remains partially (almost empty) restored.
Steps to reproduce:
1. Open database connection as unpriviledged database user;
2. Try to replace database from backup file:
/opt/firebird/bin/gbak -V -REP backupfile dbname
You'll get:
gbak:opened file /tmp/test.fbk
gbak: ERROR:could not drop database localhost:test (database might be in use)
gbak:Exiting before completion due to errors
This is expected, but this step is required to reproduce subsequent error on step 4.
3. Shutdown database:
/opt/firebird/bin/gfix -shut multi -force 0 dbname
4. Try to replace database from backup file:
/opt/firebird/bin/gbak -V -REP backupfile dbname
And you will get:
gbak:opened file /opt/firebird/data/manual-backup/generation_devel.fbk
gbak:transportable backup -- data in XDR format
gbak: backup file is compressed
gbak: ERROR:database shutdown unsuccessful
gbak: ERROR: no permission for shutdown or online access to database generation_devel
gbak: ERROR:failed to create database generation_devel
gbak:Exiting before completion due to errors
The text was updated successfully, but these errors were encountered: