Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server suddenly fails to start again #314

Closed
alliuca opened this issue Oct 30, 2017 · 1 comment
Closed

Server suddenly fails to start again #314

alliuca opened this issue Oct 30, 2017 · 1 comment
Assignees
Labels
issue: bug Issue reporting a bug

Comments

@alliuca
Copy link

alliuca commented Oct 30, 2017

Not sure what happened but at some point the strapi process errored out and on subsequent strapi start would just throw this error:

DEBUG (12407 on [hostname]): Server wasn't able to start properly.
ERROR (12407 on [hostname]): Cannot convert undefined or null to object
    TypeError: Cannot convert undefined or null to object
        at Function.keys (<anonymous>)
        at Strapi.module.exports.app (/usr/local/lib/node_modules/strapi/lib/core/configurations.js:81:45)
        at Strapi.load (/usr/local/lib/node_modules/strapi/lib/Strapi.js:174:29)
        at <anonymous>

I did try to change strapi.config.locales to strapi.config.functions.locales both in that conversions.js file and in /lib/middlewares/language/index.js and now seems to work fine again.
I should note that none of this happened on first start after I generated a new project.

Node.js version: 8.6.0
npm version: 5.3.0
Strapi version: 3.0.0-alpha.6.4
Operating system: macOS Sierra v10.12.6

@lauriejim
Copy link
Contributor

I don't really understand changes you did to have this issue. Can you explain more precisely what you did?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug
Projects
None yet
Development

No branches or pull requests

3 participants