Responses to the discussion on Github
You are using a fairly old version of Strapi if you still have the hook set there. What version are you running?
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
strapi 3.0.0-alpha.26.2 This version is no longer supported and hasn’t been in over a year.
I have use latest version 3.0.0-beta.20.3
If i use a MongoDb standalone very basic connect without problem.
Does the option “ssl”: false conflict with SSL true from Mongo string?
I have try with both options “true” and “false” and the result is the same:
@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.
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.
How encode?? base64???
Sorry, my bad, it should be decoded in strapi* and encoded in Mongo compass.
In strapi I have it stored like this:
But in Mongo compass I use it like this:
Also, make sure you use the right environment. Maybe you use development, but you set the password only for production.