You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The port 5432 can't be assigned instead I had to port foward on 8080 like this : kubectl port-forward combined-db-0 8080:5432
Setting some stuff:
export POSTGRES_HOST=127.0.0.1:8080
export POSTGRES_PASSWORD=xxxxxxx (got from secret in magda namespace)
yarn create-api-key -l => FAIL Error: getaddrinfo ENOTFOUND http://127.0.0.1:8080
I had to edit node_modules/pg/lib/defaults.js to update the port definition to 8080.
The port-forward issue on 5432 seems to be related to my computer. But it doesn't change the fact that connection to pod combined-db-0 is being terminated.
@Docteur-RS
The port-forward on 5432 issue seems a combination of windows permission & firewall issues (the Connection terminated unexpectedly might be caused by the firewall issue).
Describe the bug
Script
create-api-key.js
fails with errorError: Connection terminated unexpectedly
To Reproduce
Following the documentation at how-to-create-api-key
yarn install
=> OKkubectl port-forward combined-db-0 5432:5432
=> FAILThe port 5432 can't be assigned instead I had to port foward on 8080 like this :
kubectl port-forward combined-db-0 8080:5432
yarn create-api-key -l
=> FAILError: getaddrinfo ENOTFOUND http://127.0.0.1:8080
I had to edit node_modules/pg/lib/defaults.js to update the port definition to 8080.
yarn create-api-key -l
=> FAILExpected behavior
Connection to pod combined-db-0 should work and list users
Desktop (please complete the following information):
WSL: Ubuntu 16.04
Magda version : 0.0.57
The text was updated successfully, but these errors were encountered: