Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Error: NoSuchMessageException: No message found under code 'rbac_resource_supply' for locale 'en_US'. (COMMON_SERVER_ERROR)

Note: Confirm that you are not using the Supplies plugin in production. If yes, contact Krishagni support.

The above error comes because some extra resources were added by mistake in the previous releaseError occurs because the roles are associated to ‘Supplies’ resource even after removing the supplies plugin.

The error can be resolved in two ways:

At database levelVia User Interface:

  • Sign in as Super admin.

  • Go to Roles --> Administrator.

...

  • Click on edit --> Supplies

  • Click on the delete icon to remove the privilege --> Update.

...

Via database:

Note down the identifier of the below query.

...

Code Block
languagesql
delete from rbac_role_access_list where RESOURCE_ID = <identifier of query #1>;

delete from rbac_role_access_list_ops where ACL_ID in (select identifier from rbac_role_access_list where RESOURCE_ID = <identifier of query #1>);

delete from rbac_resources where name = 'Supply';

At UI level

  • Sign in as Super admin.

  • Go to Roles --> Administrator.

...

  • Click on edit --> Supplies

  • Click on the delete icon to remove the privilege --> Update.

...