{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/9621","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/9621/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/9621/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/9621/events","html_url":"https://github.com/meteor/meteor/issues/9621","id":293623687,"number":9621,"title":"Meteor Galaxy Deploy not working node-pre-gyp","user":{"login":"pedrofg","id":8161635,"avatar_url":"https://avatars0.githubusercontent.com/u/8161635?v=4","gravatar_id":"","url":"https://api.github.com/users/pedrofg","html_url":"https://github.com/pedrofg","followers_url":"https://api.github.com/users/pedrofg/followers","following_url":"https://api.github.com/users/pedrofg/following{/other_user}","gists_url":"https://api.github.com/users/pedrofg/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrofg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrofg/subscriptions","organizations_url":"https://api.github.com/users/pedrofg/orgs","repos_url":"https://api.github.com/users/pedrofg/repos","events_url":"https://api.github.com/users/pedrofg/events{/privacy}","received_events_url":"https://api.github.com/users/pedrofg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-01T17:45:50Z","updated_at":"2018-03-16T14:58:43Z","closed_at":null,"author_association":"NONE","body":"*Meteor version 1.6.1.\r\n*Working on Windows 10.\r\n*Some attempts without success: #8188 #7568\r\n\r\nTHAT IS THE GALAXY LOG:\r\n\r\n<details>\r\n<summary>Full log</summary>\r\n\r\n```\r\nv0006\t2018-02-01 12:42:47-05:00\tBuilding version 6.\r\nv0006\t2018-02-01 12:42:47-05:00\tPulling base image.\r\nv0006\t2018-02-01 12:42:47-05:00\tStep 1/2 : FROM meteor/galaxy-app@sha256:9fcf0b2ee698661a326b089f391e703b03eace088af33358cc23145573a0f10f\r\nv0006\t2018-02-01 12:42:47-05:00\t ---> 0cce728e18a4\r\nv0006\t2018-02-01 12:42:47-05:00\tStep 2/2 : RUN /bin/bash -x /app/setup.sh https://prod-galaxy-bundles.s3.amazonaws.com/bundles/duccFQkwjy4evcGQX/20180201-174139/bundle.ucXSim4rzZvoDighq.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAJ4JU4KHU7CAVLZ3Q%2F20180201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180201T174247Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=1f0a51ba832f3317fd32bb12f93e4e36b9b1244aa1a3982821d8f57927a34762\r\nv0006\t2018-02-01 12:42:47-05:00\t ---> [Warning] Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.\r\nv0006\t2018-02-01 12:42:47-05:00\t ---> Running in 4e7cd983277b\r\nv0006\t2018-02-01 12:42:48-05:00\t+ set -ex\r\nv0006\t2018-02-01 12:42:48-05:00\t+ cd /app\r\nv0006\t2018-02-01 12:42:48-05:00\t+ curl -sS 'https://prod-galaxy-bundles.s3.amazonaws.com/bundles/duccFQkwjy4evcGQX/20180201-174139/bundle.ucXSim4rzZvoDighq.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAJ4JU4KHU7CAVLZ3Q%2F20180201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180201T174247Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=1f0a51ba832f3317fd32bb12f93e4e36b9b1244aa1a3982821d8f57927a34762'\r\nv0006\t2018-02-01 12:42:48-05:00\t+ tar xz -m\r\nv0006\t2018-02-01 12:42:51-05:00\t+ cd /app/bundle\r\nv0006\t2018-02-01 12:42:51-05:00\t+ export NODE_VERSION\r\nv0006\t2018-02-01 12:42:51-05:00\t++ /app/select_node_version.sh\r\nv0006\t2018-02-01 12:42:51-05:00\t+ NODE_VERSION=8.9.4\r\nv0006\t2018-02-01 12:42:51-05:00\t+ /app/install_node.sh\r\nv0006\t2018-02-01 12:42:51-05:00\tInstalling node version 8.9.4 to /node-v8.9.4-linux-x64\r\nv0006\t2018-02-01 12:42:51-05:00\t+ curl -sSLO https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-x64.tar.gz\r\nv0006\t2018-02-01 12:42:51-05:00\t+ tar -xzf node-v8.9.4-linux-x64.tar.gz -C /\r\nv0006\t2018-02-01 12:42:52-05:00\t+ rm node-v8.9.4-linux-x64.tar.gz\r\nv0006\t2018-02-01 12:42:52-05:00\t+ export PATH=/node-v8.9.4-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\nv0006\t2018-02-01 12:42:52-05:00\t+ PATH=/node-v8.9.4-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\nv0006\t2018-02-01 12:42:52-05:00\t++ /app/select_npm_version.sh\r\nv0006\t2018-02-01 12:42:52-05:00\t+ npm_version=5.6.0\r\nv0006\t2018-02-01 12:42:52-05:00\t+ npm -g install npm@5.6.0\r\nv0006\t2018-02-01 12:43:06-05:00\t/node-v8.9.4-linux-x64/bin/npm -> /node-v8.9.4-linux-x64/lib/node_modules/npm/bin/npm-cli.js\r\nv0006\t2018-02-01 12:43:06-05:00\t/node-v8.9.4-linux-x64/bin/npx -> /node-v8.9.4-linux-x64/lib/node_modules/npm/bin/npx-cli.js\r\nv0006\t2018-02-01 12:43:07-05:00\t+ npm@5.6.0\r\nv0006\t2018-02-01 12:43:07-05:00\tupdated 2 packages in 14.065s\r\nv0006\t2018-02-01 12:43:07-05:00\t+ pushd programs/server\r\nv0006\t2018-02-01 12:43:07-05:00\t+ npm install --unsafe-perm\r\nv0006\t2018-02-01 12:43:07-05:00\t/app/bundle/programs/server /app/bundle\r\nv0006\t2018-02-01 12:43:12-05:00\t\r\nv0006\t2018-02-01 12:43:12-05:00\t> fibers@2.0.0 install /app/bundle/programs/server/node_modules/fibers\r\nv0006\t2018-02-01 12:43:12-05:00\t> node build.js || nodejs build.js\r\nv0006\t2018-02-01 12:43:12-05:00\t\r\nv0006\t2018-02-01 12:43:12-05:00\t`linux-x64-57` exists; testing\r\nv0006\t2018-02-01 12:43:12-05:00\tProblem with the binary; manual build incoming\r\nv0006\t2018-02-01 12:43:13-05:00\tmake: Entering directory `/app/bundle/programs/server/node_modules/fibers/build'\r\nv0006\t2018-02-01 12:43:13-05:00\t CXX(target) Release/obj.target/fibers/src/fibers.o\r\nv0006\t2018-02-01 12:43:14-05:00\t CXX(target) Release/obj.target/fibers/src/coroutine.o\r\nv0006\t2018-02-01 12:43:15-05:00\t CC(target) Release/obj.target/fibers/src/libcoro/coro.o\r\nv0006\t2018-02-01 12:43:15-05:00\t SOLINK_MODULE(target) Release/obj.target/fibers.node\r\nv0006\t2018-02-01 12:43:15-05:00\t COPY Release/fibers.node\r\nv0006\t2018-02-01 12:43:15-05:00\tmake: Leaving directory `/app/bundle/programs/server/node_modules/fibers/build'\r\nv0006\t2018-02-01 12:43:15-05:00\tInstalled in `/app/bundle/programs/server/node_modules/fibers/bin/linux-x64-57/fibers.node`\r\nv0006\t2018-02-01 12:43:15-05:00\t\r\nv0006\t2018-02-01 12:43:15-05:00\t> meteor-dev-bundle@ install /app/bundle/programs/server\r\nv0006\t2018-02-01 12:43:15-05:00\t> node npm-rebuild.js\r\nv0006\t2018-02-01 12:43:15-05:00\t\r\nv0006\t2018-02-01 12:43:17-05:00\t\r\nv0006\t2018-02-01 12:43:17-05:00\t> spawn-sync@1.0.15 postinstall /app/bundle/programs/server/npm/node_modules/spawn-sync\r\nv0006\t2018-02-01 12:43:17-05:00\t> node postinstall\r\nv0006\t2018-02-01 12:43:17-05:00\t\r\nv0006\t2018-02-01 12:43:18-05:00\t\r\nv0006\t2018-02-01 12:43:18-05:00\t> thread-sleep@1.0.4 install /app/bundle/programs/server/npm/node_modules/try-thread-sleep/node_modules/thread-sleep\r\nv0006\t2018-02-01 12:43:18-05:00\t> node-pre-gyp install --fallback-to-build\r\nv0006\t2018-02-01 12:43:18-05:00\t\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp info it worked if it ends with ok\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp verb cli [ '/node-v8.9.4-linux-x64/bin/node',\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp verb cli '/app/bundle/programs/server/npm/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp',\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp verb cli 'install',\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp verb cli '--fallback-to-build' ]\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp info using node-pre-gyp@0.6.9\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp info using node@8.9.4 | linux | x64\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp verb command install []\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp http GET https://node-pre-gyp-forbeslindesay.s3.amazonaws.com/thread_sleep/v1.0.4/Release/thread_sleep-v1.0.4-node-v57-linux-x64.tar.gz\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! UNCAUGHT EXCEPTION\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack Error: Cannot find module 'internal/util/types'\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at Function.Module._resolveFilename (module.js:538:15)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at Function.Module._load (module.js:468:25)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at Module.require (module.js:587:17)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at require (internal/module.js:11:18)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at evalmachine.<anonymous>:31:26\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at Object.<anonymous> (/app/bundle/programs/server/npm/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at Module._compile (module.js:643:30)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:654:10)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at Module.load (module.js:556:32)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! stack at tryModuleLoad (module.js:499:12)\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! System Linux 4.4.0-1049-aws\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! command \"/node-v8.9.4-linux-x64/bin/node\" \"/app/bundle/programs/server/npm/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! cwd /app/bundle/programs/server/npm/node_modules/try-thread-sleep/node_modules/thread-sleep\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! node -v v8.9.4\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! node-pre-gyp -v v0.6.9\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! This is a bug in `node-pre-gyp`.\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:\r\nv0006\t2018-02-01 12:43:18-05:00\tnode-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! code ELIFECYCLE\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! errno 7\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! Exit status 7\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR!\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! Failed at the thread-sleep@1.0.4 install script.\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\nv0006\t2018-02-01 12:43:18-05:00\t\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! A complete log of this run can be found in:\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! /root/.npm/_logs/2018-02-01T17_43_18_389Z-debug.log\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! code ELIFECYCLE\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! errno 7\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! meteor-dev-bundle@ install: `node npm-rebuild.js`\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! Exit status 7\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR!\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! Failed at the meteor-dev-bundle@ install script.\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\nv0006\t2018-02-01 12:43:18-05:00\t\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! A complete log of this run can be found in:\r\nv0006\t2018-02-01 12:43:18-05:00\tnpm ERR! /root/.npm/_logs/2018-02-01T17_43_18_430Z-debug.log\r\nv0006\t2018-02-01 12:43:19-05:00\tRemoving intermediate container 4e7cd983277b\r\n```\r\n\r\n</details>\r\n\r\n_Edited for formatting by @abernix_"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/373739609","html_url":"https://github.com/meteor/meteor/issues/9621#issuecomment-373739609","issue_url":"https://api.github.com/repos/meteor/meteor/issues/9621","id":373739609,"user":{"login":"axelvaindal","id":11026659,"avatar_url":"https://avatars2.githubusercontent.com/u/11026659?v=4","gravatar_id":"","url":"https://api.github.com/users/axelvaindal","html_url":"https://github.com/axelvaindal","followers_url":"https://api.github.com/users/axelvaindal/followers","following_url":"https://api.github.com/users/axelvaindal/following{/other_user}","gists_url":"https://api.github.com/users/axelvaindal/gists{/gist_id}","starred_url":"https://api.github.com/users/axelvaindal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelvaindal/subscriptions","organizations_url":"https://api.github.com/users/axelvaindal/orgs","repos_url":"https://api.github.com/users/axelvaindal/repos","events_url":"https://api.github.com/users/axelvaindal/events{/privacy}","received_events_url":"https://api.github.com/users/axelvaindal/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T14:58:43Z","updated_at":"2018-03-16T14:58:43Z","author_association":"NONE","body":"@lugaru90 This what I have been doing so far, and I don't think that's causing the issue.\r\nImporting `gm` on the client make the whole app crash, which is perfectly fine.\r\nMy problem occurs when my app isn't even running, when managing `npm` dependencies.\r\n\r\nMy code is importing the `gm` module only on server side for post processing purposes after uploading images. I use @dr-dimitru packages to handle file upload which works great and I followed the documentation for post processing images.\r\n\r\nOn the event after upload, I do this (among other things not related to this issue):\r\n\r\n```\r\nif (Meteor.isServer)\r\n        {\r\n            let callback = Meteor.bindEnvironment(function()\r\n            {\r\n                user.avatar = avatar.link();\r\n                user.save();\r\n            });\r\n\r\n            let ImagePostprocessing = require(\"../../modules/postprocessing/ImagePostprocessing.js\").ImagePostprocessing;\r\n            ImagePostprocessing.avatar(file.path, AVATAR.MAX_WIDTH, AVATAR.MAX_HEIGHT, callback);\r\n        }\r\n```\r\nThe `ImagePostProcessing` module is the one doing what I need to be done with the images.\r\nIt is **never** imported client side in any other code and is the one using `gm` in the background.\r\n\r\nI think @abernix pointed out the correct fix for this issue, and I still haven't pushed my code to production yet. This code will go to Galaxy Server before April 30th at worst, I may report more on this error at this time.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"axelvaindal"}}