Open tgriesser opened 9 years ago
If you are having this issue with knex, knex v0.12.0 replaced pool2 with node-pool, see https://github.com/tgriesser/knex/issues/1591#issuecomment-246857570
Error: Pool was destroyed
at Pool._destroyPool (F:\Work\Node\Dragon\work\insightsnow\insightsnow\node_modules\pool2\lib\pool.js:569:20)
at Pool.
what can I do? I can't find this error. I have see all of article but there is nothing..
This seems to be key: Knex:Error Pool2 - Error: connect ECONNREFUSED 127.0.0.1:5432
You are either connecting to the wrong host/port, or your database is not running
The database is postgreSQL working on heroqu. I really can't imagine about this.
Connection refused just means that the database driver (pg
) could not establish a connection. I can't tell you what the host and port are, you'll have to determine that yourself... I haven't used Heroku, but if the servers are shared the port is probably different. Check whatever UI you get for setting the stuff up to see where it's located.
Not sure what's causing it and haven't had time to completely reproduce it, but the pool seems to be randomly being
destroyed
after aconnect ETIMEDOUT
- only seeing this recently so suspect it's something with the latest patch version.I'll see about being able to reproduce it, but any ideas there?