interledger-deprecated / ilp-kit-docker-compose

Deploy a complete ILP Kit in one command
3 stars 5 forks source link

libpq built against wrong NODE_MODULE_VERSION #18

Open phra opened 6 years ago

phra commented 6 years ago

i'm trying to get up and running the ilp-kit container but i keep getting the following error with libpq:

2018-02-22T15:20:47.790Z app CRIT Error: The module '/usr/src/app/api/node_modules/libpq/build/Release/addon.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:664:18)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at bindings (/usr/src/app/api/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/usr/src/app/api/node_modules/libpq/index.js:1:108)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/src/app/api/node_modules/pg-native/index.js:1:75)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/src/app/api/node_modules/pg/lib/native/index.js:9:14)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)

ilp-kit uses node8-slim in its Dockerfile (NODE_MODULE_VERSION 57) instead of node7-slim (NODE_MODULE_VERSION 51) and it seems that a node7 instance is being used to build the libpq native addon.