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
Mongo error on startup #15186
Comments
@SabreCat Can you take a look at this? Thanks! |
@ploissken Never tried the regular install of Habitica (I want to make it work using docker), but I found out that the mongoose version 7.6.3 is messing things up when using mongo5 (again, this is my observation for docker containers) I would suggest switching mongoose to 5.13.22 in |
@ploissken also, the Wiki (fandom) page seems outdated since Habitica 5.22 is supposed to run on Node20/Npm10. |
@diyoyo you are correct--we are running Node 20 and MongoDB 5.0.23 now. I'd recommend that @ploissken run |
General Info
Description
I was following instructions here for starting the server on localhost.
I never had mongo installed here before. Running
npm run mongo:dev
resulted in an error:I went googling around and found a workaround.
Posting it here to raise awareness about the issue and also in case anyone runs into it.
mongo:dev
script inpackages.json
. I've added-h 127.0.0.1
to it, following a hint from this thread. The updated line inpackage.json
now looks like this:"mongo:dev": "run-rs -v 5.0.23 -h 127.0.0.1 -l ubuntu1804 --keep --dbpath mongodb-data --number 1 --quiet",
/mongodb-data
npm run mongo:dev
again, the error is gone:getDevelopmentConnectionUrl
inwebsite/server/libs/mongodb.js
. (Pretty nasty sorry)npm run start
went fine and no more troubles after thatI'll try to research deeper into this for a proper solution. Any hints would be appreciate!
The text was updated successfully, but these errors were encountered: