Debug: Unknown action supplied when registering a new permission

System Information
  • Strapi Version: 4.5.3
  • Operating System: macOS Catalina (v10.15.7)
  • Database: PostgreSQL
  • Node Version: 16.19.0
  • NPM Version: 8.19.3
  • Yarn Version:

Hello all,
we are getting a lot of entries in our logs like this:

[2023-03-01 11:23:04.808] debug: Unknown action "plugin::article.articleController.recentArticles" supplied when registering a new permission

The mentioned action doesn’t exist anymore and also there is no reference to it anymore in our custom routes file (it used to be in the past).

The permission doesn’t show up in the Admin UI.

Other users were complaining about simular issue in Discord:

Any idea how to get rid of the logs?

Thanks in advance,
Jefferson Sofarelli

1 Like

Hello,

I recently started having the same issues in my project, did you ever figure out the solution for the problem?

Thanks

I do encounter the same issue after the migration from strapi v3 to v4.
In my case that’s because the count permission not exist anymore.

white the count permission was migrated from db level into the new permission table “up_permissions”.
once I clean up the records with sql below, problem solved.

select *
--delete
from up_permissions up 
where "action" ~ 'count'

The log detail in my case:

[2023-06-20 07:32:06.955] debug: Unknown action "api::product-attribute.product-attribute.count" supplied when registering a new permission
[2023-06-20 07:32:06.955] debug: Unknown action "api::product-category.product-category.count" supplied when registering a new permission
[2023-06-20 07:32:06.955] debug: Unknown action "api::product-image.product-image.count" supplied when registering a new permission
[2023-06-20 07:32:06.955] debug: Unknown action "api::product.product.count" supplied when registering a new permission

Hey, yes, I also had to clean-up some database entries manually.
I had searched for this strings “api::…” and deleted the entries from the permissions table (I don’t remember what is the exact table)