You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: Plugin rbac-backend Fails to Initialize after upgrading to version > 5.0.0
Description:
When attempting to initialize the rbac-backend plugin in Backstage, an error is encountered, preventing the plugin from starting properly. This issue occurs consistently, but only after the second execution of the Backstage.
Steps to Reproduce:
Set up a fresh instance of Backstage with a local PostgreSQL database.
Install the rbac-backend plugin following the official installation guidelines.
Start Backstage backend for the first time (no errors occur).
Stop the Backstage backend service.
Start Backstage backend for the second time.
Expected Behavior:
The rbac-backend plugin should initialize without errors in all executions, allowing it to function as intended within Backstage.
Actual Behavior:
An error is thrown during the initialization process, preventing the rbac-backend plugin from starting. The following error message is displayed:
backstage error Plugin 'permission' thew an error during startup type=initialization
.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:334
throw new ForwardedError(
^
ForwardedError: Plugin 'permission' startup failed; caused by Error: Failed to store policies [[role:default/rbac_admin, policy-entity, read, allow],[role:default/rbac_admin, policy-entity, create, allow],[role:default/rbac_admin, policy-entity, delete, allow],[role:default/rbac_admin, policy-entity, update, allow],[role:default/rbac_admin, catalog-entity, read, allow]]
at <anonymous> (.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:334:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async <anonymous> (.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:333:13)
... 3 lines matching cause stack trace ...
at async BackstageBackend.start (.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackstageBackend.ts:38:11) {
cause: Error: Failed to store policies [[role:default/rbac_admin, policy-entity, read, allow],[role:default/rbac_admin, policy-entity, create, allow],[role:default/rbac_admin, policy-entity, delete, allow],[role:default/rbac_admin, policy-entity, update, allow],[role:default/rbac_admin, catalog-entity, read, allow]]
at EnforcerDelegate.addPolicies (.\backstage\node_modules\@janus-idp\backstage-plugin-rbac-backend\src\service\enforcer-delegate.ts:109:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async addAdminPermissions (.\backstage\node_modules\@janus-idp\backstage-plugin-rbac-backend\src\admin-permissions\admin-creation.ts:125:9)
at async setAdminPermissions (.\backstage\node_modules\@janus-idp\backstage-plugin-rbac-backend\src\admin-permissions\admin-creation.ts:149:9)
at async Function.build (.\backstage\node_modules\@janus-idp\backstage-plugin-rbac-backend\src\policies\permission-policy.ts:108:11)
at async Function.build (.\backstage\node_modules\@janus-idp\backstage-plugin-rbac-backend\src\service\policy-builder.ts:152:16)
at async Object.init (.\backstage\node_modules\@janus-idp\backstage-plugin-rbac-backend\src\plugin.ts:71:11)
at async <anonymous> (.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:333:13)
at async Promise.allSettled (index 6)
at async BackendInitializer.#doStart (.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:278:21)
at async BackendInitializer.start (.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:187:5)
at async BackstageBackend.start (.\backstage\node_modules\@backstage\backend-app-api\src\wiring\BackstageBackend.ts:38:11)
}
Versions of software used and environment
Backstage v1.32.4
Node v20.18.0
@janus-idp/backstage-plugin-rbac-backend: "^5.1.2",
The text was updated successfully, but these errors were encountered:
Issue: Plugin
rbac-backend
Fails to Initialize after upgrading to version > 5.0.0Description:
When attempting to initialize the
rbac-backend
plugin in Backstage, an error is encountered, preventing the plugin from starting properly. This issue occurs consistently, but only after the second execution of the Backstage.Steps to Reproduce:
rbac-backend
plugin following the official installation guidelines.Expected Behavior:
The
rbac-backend
plugin should initialize without errors in all executions, allowing it to function as intended within Backstage.Actual Behavior:
An error is thrown during the initialization process, preventing the
rbac-backend
plugin from starting. The following error message is displayed:Versions of software used and environment
Backstage v1.32.4
Node v20.18.0
@janus-idp/backstage-plugin-rbac-backend: "^5.1.2",
The text was updated successfully, but these errors were encountered: