Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix opentofu-runner postgresql connection refused
``` opentofu-runner[17378]: Error: getaddrinfo ENOTFOUND host.containers.internal opentofu-runner[17378]: at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) opentofu-runner[17378]: Emitted 'error' event on DataSource instance at: opentofu-runner[17378]: at DataSource.postInit (/opt/app-root/src/node_modules/loopback/node_modules/loopback-datasource-juggler/lib/datasource.js:489:16) opentofu-runner[17378]: at PendingItem.callback (/opt/app-root/src/node_modules/loopback-connector-postgresql/lib/postgresql.js:130:17) opentofu-runner[17378]: at Client._connectionCallback (/opt/app-root/src/node_modules/pg-pool/index.js:254:23) opentofu-runner[17378]: at Client._handleErrorWhileConnecting (/opt/app-root/src/node_modules/pg/lib/client.js:327:19) opentofu-runner[17378]: at Client._handleErrorEvent (/opt/app-root/src/node_modules/pg/lib/client.js:337:19) opentofu-runner[17378]: at Connection.emit (node:events:517:28) opentofu-runner[17378]: at Socket.reportStreamError (/opt/app-root/src/node_modules/pg/lib/connection.js:58:12) opentofu-runner[17378]: at Socket.emit (node:events:517:28) opentofu-runner[17378]: at emitErrorNT (node:internal/streams/destroy:151:8) opentofu-runner[17378]: at emitErrorCloseNT (node:internal/streams/destroy:116:3) opentofu-runner[17378]: at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { opentofu-runner[17378]: errno: -3008, opentofu-runner[17378]: code: 'ENOTFOUND', opentofu-runner[17378]: syscall: 'getaddrinfo', opentofu-runner[17378]: hostname: 'host.containers.internal' opentofu-runner[17378]: } opentofu-runner[17378]: opentofu-runner[17378]: Node.js v18.20.2 ```
- Loading branch information