abernix / spaceglue

Other
26 stars 8 forks source link

RangeError: Invalid array buffer length #5

Closed 0o-de-lally closed 7 years ago

0o-de-lally commented 7 years ago

I'm getting an error trying to build abernix/spaceglue:node-4.6.2-onbuild using Docker Cloud (build on commit). App builds fine locally with meteor run --production See full log below.

Building in User Node '134432c1-edf7-4b4f-8d34-33a3fbbbd7c5.node.dockerapp.io'...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Switched to a new branch 'alternate-layout'
KernelVersion: 4.4.0-53-generic
Os: linux
BuildTime: 2016-11-11T14:05:16.403709029+00:00
ApiVersion: 1.24
Version: 1.12.3-cs4
GitCommit: 65c6c4c
Arch: amd64
GoVersion: go1.6.3
Starting build of index.docker.io/keyscores/wire:latest...
Step 1 : FROM abernix/spaceglue:node-4.6.2-onbuild
# Executing 6 build triggers...
Step 1 : WORKDIR /home/node
---> Running in 162ae186ecb3
Step 1 : USER root
---> Running in f7f0d97848e0
Step 1 : COPY ./ /home/node/app
Step 1 : RUN chown -R node:node /home/node/app
---> Running in d945db089237
Step 1 : USER node
---> Running in d45c993a25b1
Step 1 : RUN lib/build_app.sh
---> Running in 59f47f9a6602
=> Copying the app
=> Running the 1.4.2.3 installer...
Downloading Meteor distribution
=> App Meteor Version
> METEOR@1.4.2.3
=> Executing NPM install --production
Meteor 1.4.2.3 has been installed in your home directory (~/.meteor).
Now you need to do one of the following:
(1) Add "$HOME/.meteor" to your path, or
(2) Run this command as root:
cp "/home/node/.meteor/packages/meteor-tool/1.4.2_3/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
Then to get started, take a look at 'meteor --help' or see the docs at
docs.meteor.com.
=> Executing Meteor Build...
/home/node/.meteor/packages/meteor-tool/.1.4.2_3.17tso1e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:190
throw error;
^
RangeError: Invalid array buffer length
at new ArrayBuffer (native)
at C_MINISAT (packages/logic-solver.js:22:20101)
at new MiniSat (packages/logic-solver.js:93:21)
at new Logic.Solver (packages/logic-solver.js:620:19)
at packages/constraint-solver.js:1575:26
at Function.time (/tools/tool-env/profile.js:305:10)
at [object Object].CS.Solver._getAnswer (packages/constraint-solver.js:1574:11)
at packages/constraint-solver.js:1561:17
at Function.time (/tools/tool-env/profile.js:305:10)
at [object Object].CS.Solver.getAnswer (packages/constraint-solver.js:1560:23)
at packages/constraint-solver.js:2258:25
at Object.Logic.disablingAssertions (packages/logic-solver.js:390:12)
at Function.CS.PackagesResolver._resolveWithInput (packages/constraint-solver.js:2257:16)
at [object Object].CS.PackagesResolver.resolve (packages/constraint-solver.js:2221:34)
at /tools/project-context.js:518:35
at Function.time (/tools/tool-env/profile.js:305:10)
at /tools/project-context.js:514:19
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at /tools/project-context.js:486:20
at /tools/packaging/catalog/catalog.js:100:5
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.catalog.runAndRetryWithRefreshIfHelpful (/tools/packaging/catalog/catalog.js:99:31)
at ProjectContext._resolveConstraints (/tools/project-context.js:485:13)
at /tools/project-context.js:268:9
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at ProjectContext._completeStagesThrough (/tools/project-context.js:258:18)
at /tools/project-context.js:250:12
at Function.run (/tools/tool-env/profile.js:490:12)
at ProjectContext.prepareProjectForBuild (/tools/project-context.js:249:13)
at /tools/cli/commands.js:879:20
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.main.captureAndExit (/tools/cli/main.js:273:29)
at buildCommand (/tools/cli/commands.js:878:8)
at Command.func (/tools/cli/commands.js:827:12)
at /tools/cli/main.js:1483:23
Removing intermediate container 69971ee7e688
Removing intermediate container d945db089237
Removing intermediate container d45c993a25b1
Removing intermediate container 59f47f9a6602
Removing intermediate container 162ae186ecb3
Removing intermediate container f7f0d97848e0
The command '/bin/sh -c lib/build_app.sh' returned a non-zero code: 1
ERROR: Build failed: The command '/bin/sh -c lib/build_app.sh' returned a non-zero code: 1
ERROR: Build failed with exit code 2
ERROR: Build in 'alternate-layout' (8283f795) failed in 0:05:02
abernix commented 7 years ago

Your bug isn't with SpaceGlue, it's with Meteor – you're likely to run into this same problem just running meteor build by itself.

Please find a way to reproduce this (probably by using the same .meteor/packages that you're currently using?) in a new Meteor project and open a issue with Meteor itself.