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 09:56:03.293
2026-07-22 09:56:03.299 act_src = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 09:56:03.305 act_res = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 09:56:03.311 tmp_fbk = PosixPath('/var/tmp/qa_2024/test_1884/tmp_core_4524.encrypted.fbk')
2026-07-22 09:56:03.318 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-22 09:56:03.324
2026-07-22 09:56:03.336 @pytest.mark.encryption
2026-07-22 09:56:03.345 @pytest.mark.version('>=4.0')
2026-07-22 09:56:03.353 def test_1(act_src: Action, act_res: Action, tmp_fbk:Path, capsys):
2026-07-22 09:56:03.359
2026-07-22 09:56:03.364 init_sql = """
2026-07-22 09:56:03.369 set bail on;
2026-07-22 09:56:03.374 create sequence gen_ba0bab start with 12192683;
202

[...SKIPPED...]

-07-22 09:56:04.344 E           gbak:Exiting before completion due to errors
2026-07-22 09:56:04.351
2026-07-22 09:56:04.357 tests/bugs/core_4524_test.py:254: ExecutionError
2026-07-22 09:56:04.363 ---------------------------- Captured stdout setup -----------------------------
2026-07-22 09:56:04.368 Creating db: localhost:/var/tmp/qa_2024/test_1884/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-22 09:56:04.374 Creating db: localhost:/var/tmp/qa_2024/test_1884/tmp_core_4524.restored.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-22 09:56:04.380 -------------------------- Captured gbak stderr call ---------------------------
2026-07-22 09:56:04.385 gbak: ERROR:unsuccessful metadata update
2026-07-22 09:56:04.391 gbak: ERROR:    ALTER DATABASE failed
2026-07-22 09:56:04.398 gbak: ERROR:    no permission for ALTER access to DATABASE
2026-07-22 09:56:04.405 gbak:Exiting before completion due to errors