Getting 5000ms Timeout error while connecting Postgres #7182
Replies: 14 comments 8 replies
-
Can you try localhost at host and try |
Beta Was this translation helpful? Give feedback.
-
Please check
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@danielalejandrin Thank you for letting us know. Can you open a bug against |
Beta Was this translation helpful? Give feedback.
-
Hi guys, hello @danielalejandrin I'm still facing the same issue. Currently using node version 12.17.0 and the migrate command still fails. |
Beta Was this translation helpful? Give feedback.
-
Ensure that you're using a supported version of Node.js: v10, v12, v14. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Sorry not to open an issue but and new with node js and I was trying a framework to use instead of express, and I drop it cause I using express with sequalize ORM |
Beta Was this translation helpful? Give feedback.
-
I tried downgrading and it is still not working for me. Any further updates on this issue at all ? |
Beta Was this translation helpful? Give feedback.
-
@mericano1 please note that it is not necessary to manually code the bootstrap of DataSources. The DataSource Booter automatically inspects the files in It is better to run the command |
Beta Was this translation helpful? Give feedback.
-
As per the question post above, has anyone else come up with a resolution in getting loopback to work with Postgres properly? |
Beta Was this translation helpful? Give feedback.
-
Error: Timeout in connecting after 5000 ms at Timeout._onTimeout (/home/manthan/Desktop/temp/temp/node_modules/loopback-datasource-juggler/lib/datasource.js:2654:10) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)
But I also made a js file and tried to make connection there to check any issue with postgres ,
Package.json ->
`
{
"name": "temp",
"version": "1.0.0",
"description": "temp",
"keywords": [
"loopback-application",
"loopback"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": ">=10"
},
"scripts": {
"build": "npm run clean && lb-tsc",
"build:watch": "lb-tsc --watch",
"lint": "npm run prettier:check && npm run eslint",
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"prettier:cli": "lb-prettier "/*.ts" "/.js"",
"prettier:check": "npm run prettier:cli -- -l",
"prettier:fix": "npm run prettier:cli -- --write",
"eslint": "lb-eslint --report-unused-disable-directives .",
"eslint:fix": "npm run eslint -- --fix",
"pretest": "npm run clean && npm run build",
"test": "lb-mocha --allow-console-logs "dist/tests"",
"posttest": "npm run lint",
"test:dev": "lb-mocha --allow-console-logs dist/tests/**/.js && npm run posttest",
"docker:build": "docker build -t temp .",
"docker:run": "docker run -p 3000:3000 -d temp",
"migrate": "node ./dist/migrate",
"prestart": "npm run build",
"start": "node -r source-map-support/register .",
"clean": "lb-clean dist .tsbuildinfo .eslintcache"
},
"repository": {
"type": "git"
},
"author": "",
"license": "",
"files": [
"README.md",
"dist",
"src",
"!/tests"
],
"dependencies": {
"@loopback/boot": "^2.3.1",
"@loopback/context": "^3.8.1",
"@loopback/core": "^2.7.0",
"@loopback/openapi-v3": "^3.4.1",
"@loopback/repository": "^2.5.1",
"@loopback/rest": "^5.0.1",
"@loopback/rest-explorer": "^2.2.2",
"@loopback/service-proxy": "^2.3.0",
"@types/pg": "^7.14.3",
"loopback-connector-postgresql": "^3.9.1",
"tslib": "^1.10.0"
},
"devDependencies": {
"@loopback/build": "^5.4.1",
"@loopback/eslint-config": "^7.0.1",
"@loopback/testlab": "^3.1.5",
"@types/node": "^10.17.24",
"eslint": "^7.0.0",
"pg": "^8.2.1",
"source-map-support": "^0.5.19",
"typescript": "~3.9.3"
}
}
`
Beta Was this translation helpful? Give feedback.
All reactions