infisical
infisical copied to clipboard
Migration scripts fails with multiple issues
Describe the bug
Infisical Migration Job failed when connecting to Kubernetes Internal Database
To Reproduce
Steps to reproduce the behavior:
- Create K8S Secret with Database URI variable: DB_CONNECTION_URI=postgresql://user:password@postgres-cluster-dev-ha.postgres-cluster.svc.cluster.local:5432/infisical
- Deploy Infisical with Helmchart in the Cluster
- Check logs of Migration Script
- See error
Error:
> [email protected] migration:latest
> knex --knexfile ./src/db/knexfile.ts --client pg migrate:latest
Requiring external module ts-node/register
Working directory changed to /backend/src/db
Using environment: production
getaddrinfo EAI_AGAIN base
Error: getaddrinfo EAI_AGAIN base
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
npm notice To update run: npm install -g [email protected]
npm notice
Expected behavior
Migration script should start up without any issues
Screenshots
Platform you are having the issue on:
Kubernetes 1.25.7 Infisical Standalone Helmchart: 1.0.8 Infisical Docker Image: v0.68.2-postgres