Encryption problem

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-23 18:48:15.499
2026-07-23 18:48:15.499 act = <firebird.qa.plugin.Action object at [hex]>
2026-07-23 18:48:15.499 tmp_fbk = WindowsPath('R:/Temp/qa/fbqa/test_11276/tmp_core_6071_encrypted.fbk')
2026-07-23 18:48:15.499 tmp_res = WindowsPath('R:/Temp/qa/fbqa/test_11276/tmp_core_6071_restored.fdb')
2026-07-23 18:48:15.499 tmp_log = WindowsPath('R:/Temp/qa/fbqa/test_11276/tmp_core_6071_bkup_rest.log')
2026-07-23 18:48:15.499 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-23 18:48:15.499
2026-07-23 18:48:15.499     @pytest.mark.encryption
2026-07-23 18:48:15.499     @pytest.mark.version('>=4.0')
2026-07-23 18:48:15.499     @pytest.mark.platform('Windows')
2026-07-23 18:48:15.499     def test_1(act: Action,

[...SKIPPED...]

tadata update
2026-07-23 18:48:15.499 E           gbak: ERROR:    ALTER DATABASE failed
2026-07-23 18:48:15.499 E           gbak: ERROR:    no permission for ALTER access to DATABASE
2026-07-23 18:48:15.499 E           gbak:Exiting before completion due to errors
2026-07-23 18:48:15.499
2026-07-23 18:48:15.499 tests\bugs\core_6071_test.py:125: ExecutionError
2026-07-23 18:48:15.499 ---------------------------- Captured stdout setup ----------------------------
2026-07-23 18:48:15.499 Creating db: localhost:R:\Temp\qa\fbqa\test_11276\test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2026-07-23 18:48:15.499 -------------------------- Captured gbak stderr call --------------------------
2026-07-23 18:48:15.499 gbak: ERROR:unsuccessful metadata update
2026-07-23 18:48:15.499 gbak: ERROR:    ALTER DATABASE failed
2026-07-23 18:48:15.499 gbak: ERROR:    no permission for ALTER access to DATABASE
2026-07-23 18:48:15.499 gbak:Exiting before completion due to errors