nango icon indicating copy to clipboard operation
nango copied to clipboard

Running hosted docker with custom image fails

Open ChetanBhasin opened this issue 7 months ago • 2 comments

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/[email protected] 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

ChetanBhasin avatar Jun 05 '25 08:06 ChetanBhasin

Can you try to comment this in the docker-compose?

        volumes:
            - './packages/providers/providers.yaml:/app/nango/packages/providers/providers.yaml'

bodinsamuel avatar Jun 05 '25 11:06 bodinsamuel

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 05 '25 16:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 20 '25 16:07 github-actions[bot]

commenting these line i was able to solve the problem

    volumes:
        - './packages/providers/providers.yaml:/app/nango/packages/providers/providers.yaml'

prasathsekar avatar Oct 10 '25 12:10 prasathsekar