Error restore with gbak

541 views
Skip to first unread message

Check_Mail

unread,
Feb 10, 2022, 4:44:57 AM2/10/22
to firebird...@googlegroups.com

Hello,

 

last year, I have extendet a database at the customer far away from my office. After this, I have created a backup and now I wanted to restore this file.

 

Unfortunately, I get an error:

 

gbak: ERROR:invalid request BLR at offset 847

gbak: ERROR:    Input parameter mismatch for procedure P_AP_10

gbak:Exiting before completion due to errors

 

I have no Idea why this fails, the stored procedure p_ap_10 works fine on the customer side. How can I fix it? I see not one procedure after the backup.

 

Thank you.

Check_Mail

unread,
Feb 10, 2022, 6:54:52 AM2/10/22
to firebird...@googlegroups.com

Can I fix it or restore it with the wrong reference?

--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/000901d81e62%24de4c72d0%249ae55870%24%40satron.de.

i...@kaabnl.nl

unread,
Feb 10, 2022, 6:59:29 AM2/10/22
to firebird...@googlegroups.com

The same issue was posted by myself last saturday (same problem).

Your restore only restored the data, but got an error because of some dependency in stored procedures.

This means that stored procedures and triggers were not restored. Also deferred indexes were not created.

There will be some dependency that you missed. Export all metadata into TXT, and find the dependencies on procedure P_AP_10.

M.

Check_Mail

unread,
Feb 10, 2022, 7:02:53 AM2/10/22
to firebird...@googlegroups.com

Thanks M,

 

can I, after I do this, repair the fbk file or should I execute the SQL-Statements?

i...@kaabnl.nl

unread,
Feb 10, 2022, 7:05:20 AM2/10/22
to firebird...@googlegroups.com

i just executed (re-created) all stored procedures and triggers that i had in a local copy of database.

I don;t know what you can do with the fbk file, sorry.

M.

Check_Mail

unread,
Feb 10, 2022, 7:16:12 AM2/10/22
to firebird...@googlegroups.com

How can I export Metadata into txt? Gbak -r -m does not work with this function.

 


Gesendet: Donnerstag, 10. Februar 2022 12:53
An: firebird...@googlegroups.com

i...@kaabnl.nl

unread,
Feb 10, 2022, 7:17:52 AM2/10/22
to firebird...@googlegroups.com

Check_Mail

unread,
Feb 10, 2022, 7:23:40 AM2/10/22
to firebird...@googlegroups.com

Hello,

 

but I have only the backupfile, how can I extract the metadata from it? The restore fails.

i...@kaabnl.nl

unread,
Feb 10, 2022, 7:25:39 AM2/10/22
to firebird...@googlegroups.com

You still have a working database right?

Dimitry Sibiryakov

unread,
Feb 10, 2022, 7:28:26 AM2/10/22
to firebird...@googlegroups.com
Check_Mail wrote 10.02.2022 13:23:
> The restore fails.

It still leaves a partially restored database after that.

--
WBR, SD.

Check_Mail

unread,
Feb 10, 2022, 7:38:41 AM2/10/22
to firebird...@googlegroups.com
The still working database is at the customers side, far away from me. And I don’t let send it to me, because the wrong reference is already in the database an I cannot repair it from here. But I have to restore it and do some extensions.

-----Ursprüngliche Nachricht-----
Von: firebird...@googlegroups.com <firebird...@googlegroups.com> Im Auftrag von Dimitry Sibiryakov
Gesendet: Donnerstag, 10. Februar 2022 13:28
An: firebird...@googlegroups.com
Betreff: Re: AW: AW: AW: [firebird-support] Error restore with gbak
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/1e2d5a74-eeeb-d1dc-4fe2-148fe597edf4%40ibphoenix.com.

Dimitry Sibiryakov

unread,
Feb 10, 2022, 7:41:32 AM2/10/22
to firebird...@googlegroups.com
Check_Mail wrote 10.02.2022 13:38:
> But I have to restore it and do some extensions.

https://www.ibsurgeon.com/en/ibbackupsurgeon/

--
WBR, SD.

Check_Mail

unread,
Feb 10, 2022, 8:17:34 AM2/10/22
to firebird...@googlegroups.com
Nice, thank you.

-----Ursprüngliche Nachricht-----
Von: firebird...@googlegroups.com <firebird...@googlegroups.com> Im Auftrag von Dimitry Sibiryakov
Gesendet: Donnerstag, 10. Februar 2022 13:41
An: firebird...@googlegroups.com
Betreff: Re: AW: AW: AW: AW: [firebird-support] Error restore with gbak
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/130f95e1-bd7e-986b-78e2-343a8104a2a2%40ibphoenix.com.

Reply all
Reply to author
Forward
0 new messages