Strapi Fails to Start on Remote Server Due to Validation Error: 'field has unspecified keys: aliases

Hi everyone,

I’m facing an issue where Strapi fails to start on my remote server, but it works perfectly fine locally. The error I’m getting on the remote server is:
2024-08-23T22:03:34.575] error: [1] field has unspecified keys: aliases ValidationError: [1] field has unspecified keys: aliases at handleYupError (/app/node_modules/@strapi/utils/dist/index.js:410:9) at /app/node_modules/@strapi/utils/dist/index.js:431:7 at Object.registerMany (/app/node_modules/@strapi/admin/dist/server/index.js:2360:7) at module.exports [as bootstrap] (/app/node_modules/@strapi/plugin-users-permissions/server/bootstrap/index.js:130:57) at process.processTicksAndRejections (node
/process/task_queues:95:5) at async Object.bootstrap (/app/node_modules/@strapi/strapi/dist/core/domain/module/index.js:39:7) at async Object.bootstrap (/app/node_modules/@strapi/strapi/dist/core/registries/modules.js:23:9) at async Strapi.runLifecyclesFunctions (/app/node_modules/@strapi/strapi/dist/Strapi.js:440:5) at async Strapi.bootstrap (/app/node_modules/@strapi/strapi/dist/Strapi.js:420:5) at async Strapi.load (/app/node_modules/@strapi/strapi/dist/Strapi.js:426:5)

This error seems to be related to the users-permissions plugin, specifically when Strapi is trying to validate the schema or some configuration. Here’s what I’ve tried and observed so far:

  1. Versions:

    • Strapi version: 4.20.3 (locally and remotely)
    • Node.js version: 20.10.0 (locally and remotely)
    • @strapi/plugin-users-permissions: 4.25.8
  2. Behavior:

    • The error only occurs on the remote server. Locally, everything works fine.
    • The schema for the user content type is the same in both environments.

Has anyone encountered a similar issue or have any insights on why this might be happening only on the remote server? Any help or guidance would be greatly appreciated.

Thank you!

This topic has been created from a Discord post (1276793643755372565) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Finally fixed it by uprading the strapi version and plugin-users-permissions