firebird.qa.plugin.ExecutionError: gbak execution failed

gbak: ERROR:unsuccessful metadata update
gbak: ERROR:    ALTER DATABASE failed
gbak: ERROR:    no permission for ALTER access to DATABASE 
gbak:Exiting before completion due to errors

LOG DETAILS:

2026-07-22 12:37:06.676
2026-07-22 12:37:06.687 act_src = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 12:37:06.697 act_res = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 12:37:06.708 tmp_fbk = PosixPath('/var/tmp/qa_2024/test_1880/tmp_core_4524.encrypted.fbk')
2026-07-22 12:37:06.721 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-22 12:37:06.730
2026-07-22 12:37:06.744 @pytest.mark.encryption
2026-07-22 12:37:06.754 @pytest.mark.version('>=4.0')
2026-07-22 12:37:06.766 def test_1(act_src: Action, act_res: Action, tmp_fbk:Path, capsys):
2026-07-22 12:37:06.776
2026-07-22 12:37:06.784 init_sql = """
2026-07-22 12:37:06.790 set bail on;
2026-07-22 12:37:06.797 create sequence gen_ba0bab start with 12192683;
202

[...SKIPPED...]

-07-22 12:37:07.872 E           gbak:Exiting before completion due to errors
2026-07-22 12:37:07.879
2026-07-22 12:37:07.885 tests/bugs/core_4524_test.py:254: ExecutionError
2026-07-22 12:37:07.893 ---------------------------- Captured stdout setup -----------------------------
2026-07-22 12:37:07.900 Creating db: localhost:/var/tmp/qa_2024/test_1880/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-22 12:37:07.911 Creating db: localhost:/var/tmp/qa_2024/test_1880/tmp_core_4524.restored.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-22 12:37:07.922 -------------------------- Captured gbak stderr call ---------------------------
2026-07-22 12:37:07.930 gbak: ERROR:unsuccessful metadata update
2026-07-22 12:37:07.937 gbak: ERROR:    ALTER DATABASE failed
2026-07-22 12:37:07.945 gbak: ERROR:    no permission for ALTER access to DATABASE
2026-07-22 12:37:07.950 gbak:Exiting before completion due to errors