I redeployed an old commit which was definitely working but due to improper version pinning on strapi dependency side it seems that it stoped working if redeploying the same code again. That’s kinda frustrating because this already happened several time to me with strapi.
After Upgrading strapi and all main plugins to 4.1.9 the error was gone.
I have same issue but after upgrading strapi to 4.1.9 have “Missing jwtSecret. Please, set configuration variable “jwtSecret” for the users-permissions plugin in config/plugins.js”
I’m getting the same issue, with strapi version 4.0.0. Any updates on this issue? Can anyone please share any workarounds?
when I run yarn develop in my local everything is fine, but when I deployed it on the cloud, it stops working
I have fixed the issue when I upgraded Strapi version to 4.1.11 and used node=14.19.1 & npm=6.14.16 without creating a new project. Hope this helps you all out too
Hey @webdev did you face the error " [Missing jwtSecret. Please, set configuration variable “jwtSecret” for the users-permissions plugin in config/plugins.js]" ?
Same as someone posted above. I fixed it by upgrading the version to 4.10.12. Btw, 4.0.6 and 4.1.8 don’t work for me.
And if you directly upgrade from 4.0.0 to 4.1.1+. Don’t miss the following setting, this is only mentioned in v4.1.8 migration guide.
You have to set jwtSecret in config/plugin.js
Strapi no longer populates default values for the admin JWT in config/admin . Initial values are generated and stored in the .env file during project creation. Strapi no longer passes secrets to non-development environments, requiring users to set the secrets purposefully.
Still waiting for some offical solution from strapi team
Let me know if that helps. If you are having these issues when deploying, share you platform where you are deploying and your deployment setting to help us help you best.
I will also try to reproduce the error on the platform where you are trying to deploy.