I installed MongoDB community edition following its doc on ubuntu. Then installed strapi following its doc. Started MongoDb in terminal from command-mongod
Getting the entry
...
[initandlisten] waiting for connections on port 27017
While creating the project with default values using strapi new myStrapiProject throws the error:
and mongod log details:
it goes till connection id: 62 I don't know why. I've tried creating the project by starting MongoDb using its start, stop command but no change. I'm completely new to MongoDb and Strapi. Any help would be appreciated. I have referred this but it didn't solve my issue.
Version details:
$ mongod --version
db version v3.6.4
$ strapi --version
3.0.0-alpha.12
$ node --version
v9.11.1
$ npm --version
5.6.0
$ git --version
git version 2.7.4
check your minimum requirements for the strapi alpha 3.0.0
From the official site:
Node.js >= 10.x
NPM >= 6.x
MongoDB >= 3.x
Related
I'm trying to upgrade mongodb to version 3.6. I ran brew update to get any new formulae. Then I ran brew upgrade mongodb and it complains that I already have 3.4. Is it possible to upgrade to 3.6 through homebrew, and if so, what am I doing wrong?
~: brew update
Updated 2 taps (homebrew/core, caskroom/cask).
==> New Formulae
ddgr
==> Updated Formulae
qt ✔ dialog octave suite-sparse
ansible-lint fd pyenv sundials
artifactory graphicsmagick python-markdown traefik
ceres-solver html-xml-utils reminiscence wtf
chromedriver libtiff sfk
~: brew upgrade mongodb
Error: mongodb 3.4.10 already installed
I also tried this this-morning and go the same error. I guess it is not yet available via homebrew ☹️
The mongoDB web site has a statement about it being untested on OSX 10.13:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
I was trying to install mongoDB version 3.1.9 on solaris 10 .
getting the below error while installation
ld.so.1: mongo: fatal: relocation error: file mongo: symbol strnlen: referenced symbol not found
Killed
I have never worked with mongoDB before not sure if I am installing properly.
Unfortunately MONGODB do not support Solaris 10 at this time. You'll need to upgrade to Solaris 11 if you'd like to use newer versions of MongoDB.
./mongod ld.so.1: mongod: fatal: libsocket.so.1: version 'SUNW_1.7' not found (required by file mongod) ld.so.1: mongod: fatal: libsocket.so.1: open failed: No such file or directory Killed #mahi_walia
This shows that some binary and libs files required by MongoDB are missing for successful installation.
If you apply the Solaris patch cluster that will upgrade all the necessary binaries and libs, this should resolve your issue.
Here you can download Recommended patch cluster for Solaris.
https://blogs.oracle.com/patch/entry/a_solaris_recommended_patchset_to
My aim is to be able to connect myself from my local machine to a remote mongodb (version 3.2.8) instance with the following cmd:
mongo XX.XX.XXX.XXX:27017/myDB -u toto -p myPwd
i am getting this error
Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210
exception: login failed
I checked the mongoDB documentation and i understood that i have to install the same version locally
So I updated my local mongodb with brew
like it is explained here Install MongoDB Community Edition on OS X and everything ran fine
toto$ brew install mongodb
toto$ Warning: mongodb-3.2.8 already installed
but when i try that:
toto$ mongod -version
db version v2.6.6
toto$ mongo -version
MongoDB shell version: 2.6.6
it seems that i am still using the old version locally.
I also tried to install it manually like it is explained in the documentation but nothing.
So I tried to set the path for mongo in my ~/.bashrc to use the version installed with brew like that:
toto$ cat ~/.bashrc
...
# Setting PATH for MongoDb 3.2.8
export MONGO_PATH=/usr/local/Cellar/mongodb/3.2.8
export PATH=$PATH:$MONGO_PATH/bin
...
but nothing.
What am I missing or misunderstanding ...?
I finally uninstall mongodb:
brew uninstall mongodb
I also did that just in case:
remove mongodb that was installed via brew
Raw
that helped me to found out the old mongoDB version (really used) so i removed everything from my local (binaries, the export in ~/.bashrc).
I restarted the machine, re install mongodb with brew and now everything is working properly.
Don't know why i didn't try that from the begining !
I hope it will help someone.
if it is the case don't forget to up vote please :)
I am not able to install the php mongo driver in a VPS. I've followed this and this documentantion
I checked this stack here but i can't figure out what I am doing wrong.
The VPS runs on PLESK 12 and CentOS 7.
lets say that I have the domain "mydomain.com" on my plesk and in mydomain.com/info.php a phpinfo script.
PHP INFO
PHP.ini
What amb I doing wrong?
The weird thing is that when I run the command "php -v" I get this output:
Which is not the version that is showing phpInfo.
Finally, I can't install the newest driver versions using pecl because I get the following error:
I would appreciate any help
Thanks!!
It's happens because you are call native OS binaries of php and pecl.
Plesk's PHP 5.6 binaries are stored in /opt/plesk/php/5.6/bin/. So you have to call /opt/plesk/php/5.6/bin/php and /opt/plesk/php/5.6/bin/pecl
Here full steps how to install mongodb for PHP 5.6:
[root#cos71x64-plesk12 ~]# /opt/plesk/php/5.6/bin/pecl install mongodb
/opt/plesk/php/5.6/bin/phpize not found. Run 'yum install plesk-php56-devel' to install it
[root#cos71x64-plesk12 ~]# yum install plesk-php56-devel
[root#cos71x64-plesk12 ~]# /opt/plesk/php/5.6/bin/pecl install mongodb
Build process completed successfully
Installing '/opt/plesk/php/5.6/lib64/php/modules/mongodb.so'
install ok: channel://pecl.php.net/mongodb-1.1.4
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongodb.so" to php.ini
[root#cos71x64-plesk12 ~]# echo "extension=mongodb.so" > /opt/plesk/php/5.6/etc/php.d/mongodb.ini
[root#cos71x64-plesk12 ~]# /opt/plesk/php/5.6/bin/php --info | grep mongo
/opt/plesk/php/5.6/etc/php.d/mongodb.ini,
mongodb
mongodb support => enabled
mongodb version => 1.1.4
mongodb stability => stable
libmongoc version => 1.3.3
mongodb.debug => no value => no value
I am using heroku for hosting my geddy app. The mongolab recently upgrade the version to mongo 3.x
I am using mongodb package 2.0.45 version which is latest. since the upgrade my app is throwing error of MongoError: auth failed error.
Old thread but just in case someone runs into this issue, I managed to solve this by upgrading my mongo shell to match the version in mongolab. I had 2.6 version of my mongo shell, but my mongolab db is in 3.0.6. This September, I believe Mongolab will again upgrade to 3.2 so you might need to upgrade again when that happens.
you may have to upgrade your mongo gem version.
Try:
bundle update mongo
The version in my Gemfile.lock that solved is:
gem 'bson_ext', '~> 1.12.3'
gem 'mongo', '~> 1.12.3'