Responses to the discussion on Github
Collaborator
"connector": "strapi-hook-mongoose",
You are using a fairly old version of Strapi if you still have the hook set there. What version are you running?
Author
Hi…
Sorry by the delay… the version is strapi 3.0.0-alpha.26.2
I have try with “mongoose” connector:
root@vmstrapi:~/myproject# strapi start
[2020-05-12T17:01:06.712Z] debug Server wasn’t able to start properly.
[2020-05-12T17:01:06.712Z] error (hook:mongoose) takes too long to load
(hook:mongoose) takes too long to load
Regards.
Collaborator
strapi 3.0.0-alpha.26.2
This version is no longer supported and hasn’t been in over a year.
Author
Hi:
I have use latest version 3.0.0-beta.20.3

{
“defaultConnection”: “default”,
“connections”: {
“default”: {
“connector”: “mongoose”,
“settings”: {
“uri”: “mongodb://myuser:mypassword@mongo-cluster-node01.domain.com:27017,mongo-cluster-node02.domain.com:27017,mongo-cluster-node03.domain.com:27017/ddbbname?replicaSet=replicasetname&ssl=true&sslCAFile=/tmp/certificates/mongoCA.crt&sslPEMKeyFile=/tmp/certificates/mycertificate.domain.com.pem&authSource=admin”
},
“options”: {
“ssl”: false
}
}
}
}
If i use a MongoDb standalone very basic connect without problem.

Regards.
Does the option “ssl”: false conflict with SSL true from Mongo string?
Author
Hi:
I have try with both options “true” and “false” and the result is the same:

Reagards.
@daguadofernandez I had the same issue a few days ago, in my case the problem was in the password of Mongo, as I copied it Encoded from Mongo string URL, but Strapi accepts it only as Decoded.
Also, can you connect to your external MongoDB from Mongo Compass? If you can, problem is 100% the password, but if you can’t, then you should verify if your Mongo instance has external access for port 27017. Also, be aware to whitelist your server’s IP and allow access only from it.
Author
Hi:
I´m using decode password, in text plane.
I can connect from Mongo Compass and Studio 3D without problem.
So that’s the problem, try to pass the password as encoded in strapi.
Author
Hi:
How encode?? base64???
Thanks
Sorry, my bad, it should be decoded in strapi* and encoded in Mongo compass.
In strapi I have it stored like this:
"password": "1N@3ZbFE3@e"
But in Mongo compass I use it like this:
1N%403ZbFE3%40e
Also, make sure you use the right environment. Maybe you use development, but you set the password only for production.