[SOLVED] Mup, abernix/meteord:base deployment

Hi guys,

I have spent the weekend trying to figure this out but failing to make any progress. I am able to get green light from mup deploy but the container which is generated for the meteor app gives me this error upon attaching to the container which seems to be trying to rebuild the bundle continuously.

Any help, indication or clues appreciated. I can share my mup.js but really nothing worth mentioning as local version works smoothly.

Hiwa

$ sudo docker attach 9ff26b636f3d
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
  COPY Release/bcrypt_lib.node
  COPY /bundle/bundle/programs/server/npm/node_modules/bcrypt/lib/binding/bcrypt_lib.node
  TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/bundle/bundle/programs/server/npm/node_modules/bcrypt/build'

> radium@0.18.4 postinstall /bundle/bundle/programs/server/npm/node_modules/radium
> cd lib || npm run lib


> serialport@4.0.7 install /bundle/bundle/programs/server/npm/node_modules/serialport
> node-pre-gyp install --fallback-to-build

[serialport] Success: "/bundle/bundle/programs/server/npm/node_modules/serialport/build/Release/serialport.node" is installed via remote

> usb@1.2.0 install /bundle/bundle/programs/server/npm/node_modules/usb
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v46-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@4.8.0 (node-v46 ABI) (falling back to source compile with node-gyp) 
make: Entering directory '/bundle/bundle/programs/server/npm/node_modules/usb/build'
  CC(target) Release/obj.target/libusb/libusb/libusb/core.o
  CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
  CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
  CC(target) Release/obj.target/libusb/libusb/libusb/io.o
  CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
  CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or directory
 #include <libudev.h>
                     ^
compilation terminated.
make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
libusb.target.mk:135: recipe for target 'Release/obj.target/libusb/libusb/libusb/os/linux_udev.o' failed
make: Leaving directory '/bundle/bundle/programs/server/npm/node_modules/usb/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/bundle/bundle/programs/server/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Linux 4.4.0-62-generic
gyp ERR! command "/opt/nodejs/bin/node" "/bundle/bundle/programs/server/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/bundle/bundle/programs/server/npm/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/bundle/bundle/programs/server/npm/node_modules/usb/src/binding"
gyp ERR! cwd /bundle/bundle/programs/server/npm/node_modules/usb
gyp ERR! node -v v4.8.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/opt/nodejs/bin/node /bundle/bundle/programs/server/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/bundle/bundle/programs/server/npm/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/bundle/bundle/programs/server/npm/node_modules/usb/src/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/bundle/bundle/programs/server/npm/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:854:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
node-pre-gyp ERR! System Linux 4.4.0-62-generic
node-pre-gyp ERR! command "/opt/nodejs/bin/node" "/bundle/bundle/programs/server/npm/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /bundle/bundle/programs/server/npm/node_modules/usb
node-pre-gyp ERR! node -v v4.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok 
Failed to execute '/opt/nodejs/bin/node /bundle/bundle/programs/server/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/bundle/bundle/programs/server/npm/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/bundle/bundle/programs/server/npm/node_modules/usb/src/binding' (1)

npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/opt/nodejs/bin/node" "/opt/nodejs/bin/npm" "rebuild" "--update-binary"
npm ERR! node v4.8.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! usb@1.2.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the usb@1.2.0 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the usb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs usb
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls usb
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /bundle/bundle/programs/server/npm/npm-debug.log

npm WARN meteor-dev-bundle@0.0.0 No description
npm WARN meteor-dev-bundle@0.0.0 No repository field.
npm WARN meteor-dev-bundle@0.0.0 No license field.
npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install" "--unsafe-perm"
npm ERR! node v4.8.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script 'node npm-rebuild.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the meteor-dev-bundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node npm-rebuild.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs meteor-dev-bundle
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /bundle/bundle/programs/server/npm-debug.log

docker ps

$ sudo docker ps
CONTAINER ID        IMAGE                                           COMMAND                  CREATED             STATUS              PORTS                                      NAMES
2cabcd6fd77b        jrcs/letsencrypt-nginx-proxy-companion:latest   "/bin/bash /app/en..."   18 minutes ago      Up 18 minutes                                                  appName-nginx-letsencrypt
4c370347a2c5        jwilder/nginx-proxy:latest                      "/app/docker-entry..."   19 minutes ago      Up 19 minutes       0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   appName-nginx-proxy
9ff26b636f3d        abernix/meteord:base                            "/bin/sh -c 'bash ..."   19 minutes ago      Up 15 seconds       80/tcp                                     appName
643f4d44f55a        mongo:3.4.1                                     "/entrypoint.sh mo..."   2 hours ago         Up 2 hours          127.0.0.1:27017->27017/tcp                 mongodb

Dead USB package was causing this error. CLOSED.

same problem. could you please reference the package which caused the issue? @hiwa