Skip to content

Running hosted docker with custom image fails #4167

@ChetanBhasin

Description

@ChetanBhasin

I've run into a weird issue that if I try to run Nango in docker-compose, it works fine but if I try to run the docker image independently with just the postgres configuration on a locally hosted database it doesn't work. I'm very surprised and I can't quite figure out what's going on here. Does anyone have any idea?

I'm attaching some logs:

++ pwd
+ dir=/app/nango
/app/nango/packages/server/dist/server.js
+ echo /app/nango/packages/server/dist/server.js
+ '[' true == true ']'
+ node /app/nango/packages/server/dist/server.js
+ wait -n
+ npm run -w @nangohq/connect-ui serve:unsafe

> @nangohq/connect-ui@0.0.0 serve:unsafe
> serve dist -p ${NANGO_CONNECT_UI_PORT:-3009}

 INFO  Accepting connections at http://localhost:3009
08:00:59.377 info (Server) Migrating database ...
migration failed with error: Cannot convert undefined or null to object
migration file "20241122212401_integration_backfill_missing_fields.cjs" failed
migration failed with error: Cannot convert undefined or null to object
migration file "20241122212401_integration_backfill_missing_fields.cjs" failed
migration failed with error: Cannot convert undefined or null to object
08:01:03.474 error (Server) Received uncaughtException... Cannot convert undefined or null to object TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at exports.up (/app/nango/packages/database/lib/migrations/20241122212401_integration_backfill_missing_fields.cjs:21:38)
    at /app/nango/node_modules/knex/lib/migrations/migrate/Migrator.js:551:36
    at /app/nango/node_modules/knex/lib/execution/transaction.js:233:22
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
08:01:03.475 error ([err]) TypeError: Cannot convert undefined or null to object

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions