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

Running Blog Project - Post Connection Error #1231

Closed
nonfungibletunji opened this issue May 24, 2019 · 6 comments
Closed

Running Blog Project - Post Connection Error #1231

nonfungibletunji opened this issue May 24, 2019 · 6 comments

Comments

@nonfungibletunji
Copy link

nonfungibletunji commented May 24, 2019

when I try to run demo on Mac Mojave, MongoDB Running 4.0.3

✖ Connecting to database
Error: Post connection error
    at /Users/stunjiturner/Downloads/Code/keystone-5/demo-projects/blog/node_modules/@keystone-alpha/utils/dist/utils.cjs.dev.js:72:21
    at async executeDefaultServer (/Users/stunjiturner/Downloads/Code/keystone-5/demo-projects/blog/node_modules/@keystone-alpha/keystone/bin/utils.js:108:3) {
  errors: {
    MongooseAdapter: Error: Post connection error
        at MongooseAdapter.connect (/Users/stunjiturner/Downloads/Code/keystone-5/demo-projects/blog/node_modules/@keystone-alpha/keystone/lib/adapters/index.js:31:23)
        at processTicksAndRejections (internal/process/task_queues.js:89:5)
        at async pReflect (/Users/stunjiturner/Downloads/Code/keystone-5/demo-projects/blog/node_modules/p-reflect/index.js:5:17)
        at async Promise.all (index 0)
        at async executeDefaultServer (/Users/stunjiturner/Downloads/Code/keystone-5/demo-projects/blog/node_modules/@keystone-alpha/keystone/bin/utils.js:108:3) {
      errors: [Array]
    }
  }
}
error Command failed with exit code 1.
@jesstelford
Copy link
Contributor

Thanks for the report! Are your able to run any of the other demos?

  • demo-projects/todo
  • demo-projects/meetup

@nonfungibletunji
Copy link
Author

I tried meetup as well, same error

@nonfungibletunji
Copy link
Author

is there a fix to this error

@jesstelford
Copy link
Contributor

Hey @stunjiturner, I've not had a chance to look into this particular issue yet.

You may be able to debug the issue yourself by placing a breakpoint on packages/keystone/lib/adapters/index.js:31 then running with NODE_OPTIONS=--inspect-brk

@MadeByMike
Copy link
Contributor

@stunjiturner did you find a solution to this? From the information available it looks it has failed to connect to mongo and it might be an issue with your local MongoDB installation or configuration.

@MadeByMike
Copy link
Contributor

I'm closing this for now but happy to help if we can get some more info. Or if we can narrow this down to an issue within keystone - even better :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants