infisical icon indicating copy to clipboard operation
infisical copied to clipboard

Migration scripts fails with multiple issues

Open ch9hn opened this issue 8 months ago • 2 comments

Describe the bug

Infisical Migration Job failed when connecting to Kubernetes Internal Database

To Reproduce

Steps to reproduce the behavior:

  1. Create K8S Secret with Database URI variable: DB_CONNECTION_URI=postgresql://user:password@postgres-cluster-dev-ha.postgres-cluster.svc.cluster.local:5432/infisical
  2. Deploy Infisical with Helmchart in the Cluster
  3. Check logs of Migration Script
  4. 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

Additional context

ch9hn avatar Jun 17 '24 12:06 ch9hn