Having build issue - Error: socket hang up

edited August 2013 in Ares
GET /res/services/home/id/2f506c61792f656e796f6a732f626f6f74706c617465?0.9582164722995501 200 21ms - 3.09kb
ares WARN phonegap bdPhoneGap http getUserData() GET /apps/me
ares WARN phonegap 
GET /res/services/phonegap/api/v1/me?0.8015845706093886 200 6917ms - 1.62kb
ares http phonegap GET /phonegap/api/v1/me? 200 6914ms - 1.62kb
ares http phonegap 
POST /res/services/home/id/2f506c61792f656e796f6a732f626f6f74706c617465?0.7348382050301564 201 4ms - 185b
ares http home PUT /files/id/2f506c61792f656e796f6a732f626f6f74706c617465? 201 2ms - 185b
ares http home 
GET /res/services/home/id/2f506c61792f656e796f6a732f626f6f74706c617465?depth=-1&format=base64&0.41962118020796246 200 733ms
ares http home GET /files/id/2f506c61792f656e796f6a732f626f6f74706c617465?depth=-1&format=base64 200 732ms
ares http home 
ares WARN phonegap bdPhoneGap http build#_upload#_uploadApp() PUT /apps/501017 (title='B List')
ares WARN phonegap 
ares ERR! errorHandler() Error: socket hang up
ares ERR! errorHandler()     at createHangUpError (http.js:1379:15)
ares ERR! errorHandler()     at Socket.socketOnEnd [as onend] (http.js:1476:23)
ares ERR! errorHandler()     at TCP.onread (net.js:419:26)
POST /res/services/phonegap/op/build?title=B%20List&debug=true&appId=501017&platforms=%5B%22android%22%2C%22ios%22%5D&0.5671703676802463 500 120414ms - 21b
ares WARN phonegap bdPhoneGap http build#_upload#_uploadApp() PUT /apps/501017 (title='B List')
ares WARN phonegap 
ares WARN phonegap bdPhoneGap WARN build#_upload#_fail() error: File is too large. File must be less than 15 MB.
ares WARN phonegap 
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): HTTP Error: File is too large. File must be less than 15 MB.
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at new HttpError (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/hermes/lib/httpError.js:10:8)
ares WARN phonegap 
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at _fail (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/hermes/bdPhoneGap.js:411:9)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at BdPhoneGap.build.options.form.data (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/hermes/bdPhoneGap.js:362:5)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at Object.async.waterfall.wrapIterator [as callback] (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/node_modules/async/lib/async.js:428:21)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at Request._callback (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/node_modules/phonegap-build-api/lib/api.js:213:22)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at Request.init.self.callback (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/node_modules/phonegap-build-api/node_modules/request/main.js:122:22)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at Request.EventEmitter.emit (events.js:99:17)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at Request.<anonymous> (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/node_modules/phonegap-build-api/node_modules/request/main.js:655:16)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at Request.EventEmitter.emit (events.js:126:20)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():     at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/Users/jameserbes/Play/enyojs/node_modules/ares-ide/node_modules/phonegap-build-api/node_modules/request/main.js:617:14)
ares WARN phonegap 
ares http phonegap POST /phonegap/op/build?title=B%20List&debug=true&appId=501017&platforms=%5B%22android%22%2C%22ios%22%5D 400 536367ms - 48b
ares http phonegap 
ares ERR! errorHandler() Error: socket hang up
ares ERR! errorHandler()     at createHangUpError (http.js:1379:15)
ares ERR! errorHandler()     at Socket.socketOnEnd [as onend] (http.js:1476:23)
ares ERR! errorHandler()     at TCP.onread (net.js:419:26)
POST /res/services/phonegap/op/build?title=B%20List&debug=true&appId=501017&platforms=%5B%22android%22%2C%22ios%22%5D&0.5671703676802463 500 120438ms - 21b
GET /res/services/home/id/2f506c61792f656e796f6a732f626f6f74706c617465?0.19871410908921394 200 5ms - 3.09kb
ares http home PROPFIND /files/id/2f506c61792f656e796f6a732f626f6f74706c617465? 200 3ms - 3.09kb
ares http home

Comments

  • The app works in preview and is pretty basic.
  • installed via "npm -d install ares-ide"
    run via "node_modules/.bin/ares-ide"
    build worked initially.
  • I think the note about "error: File is too large. File must be less than 15 MB." is interesting. Do you have some big assets in your app?
  • That is interesting. But no added assets other than the favicon.
  • edited August 2013
    i just cloned a bootplate app and build it successfully. On second build of the same app i see .
    ares WARN phonegap bdPhoneGap http getUserData() GET /apps/me
    ares WARN phonegap 
    GET /res/services/phonegap/api/v1/me?0.48371706487460675 200 892ms - 1.78kb
    ares http phonegap GET /phonegap/api/v1/me? 200 891ms - 1.78kb
    ares http phonegap 
    POST /res/services/home/id/2f506c61792f656e796f6a732f626c697374?0.2705215460269529 201 3ms - 173b
    ares http home PUT /files/id/2f506c61792f656e796f6a732f626c697374? 201 2ms - 173b
    ares http home 
    GET /res/services/home/id/2f506c61792f656e796f6a732f626c697374?depth=-1&format=base64&0.7364389524205964 200 752ms
    ares http home GET /files/id/2f506c61792f656e796f6a732f626c697374?depth=-1&format=base64 200 751ms
    ares http home 
    ares WARN phonegap bdPhoneGap http build#_upload#_uploadApp() PUT /apps/504475 (title='Example: My Application')
    ares WARN phonegap 
    ares ERR! errorHandler() Error: socket hang up
    ares ERR! errorHandler()     at createHangUpError (http.js:1379:15)
    ares ERR! errorHandler()     at Socket.socketOnEnd [as onend] (http.js:1476:23)
    ares ERR! errorHandler()     at TCP.onread (net.js:419:26)
    POST /res/services/phonegap/op/build?title=Example%3A%20My%20Application&debug=true&appId=504475&platforms=%5B%22android%22%2C%22ios%22%5D&0.2805298904744902 500 120373ms - 21b
    ares WARN phonegap bdPhoneGap http build#_upload#_uploadApp() PUT /apps/504475 (title='Example: My Application')
    ares WARN phonegap 
    ares ERR! errorHandler() Error: socket hang up
    ares ERR! errorHandler()     at createHangUpError (http.js:1379:15)
    ares ERR! errorHandler()     at Socket.socketOnEnd [as onend] (http.js:1476:23)
    ares ERR! errorHandler()     at TCP.onread (net.js:419:26)
    POST /res/services/phonegap/op/build?title=Example%3A%20My%20Application&debug=true&appId=504475&platforms=%5B%22android%22%2C%22ios%22%5D&0.2805298904744902 500 120420ms - 21b
    GET /res/services/home/id/2f506c61792f656e796f6a732f626c697374?0.8758368334538837 200 4ms - 2.89kb
    ares http home PROPFIND /files/id/2f506c61792f656e796f6a732f626c697374? 200 2ms - 2.89kb
    ares http home 
    
  • ares WARN phonegap bdPhoneGap WARN build#_upload#_fail() error: File is too large. File must be less than 15 MB.
  • edited August 2013
    next I try ares-project from source.
    git clone https://github.com/enyojs/ares-project.git
    cd ares-project/
    git submodule update --init
    npm install
    go to:
    http://127.0.0.1:9009/ide/ares/index.html
    project preview bootplate works
    project build results in:
    ares http phonegap Running: ' "/Users/jameserbes/.nvm/v0.8.25/bin/node" "/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js" "-no-alias" "-enyo" "/Users/jameserbes/Play/enyojs/ares-project/enyo" "-output" "/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/enyo" "package.js" ' from ' /Users/jameserbes/Play/enyojs/ares-project/enyo/minify '
    ares http phonegap 
    ares http phonegap Minify-ing the application...
    ares http phonegap 
    ares http phonegap Running: ' "/Users/jameserbes/.nvm/v0.8.25/bin/node" "/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js" "-enyo" "/Users/jameserbes/Play/enyojs/ares-project/enyo" "-output" "/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app" "-less" "package.js" ' from ' /private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/source '
    ares http phonegap 
    ares WARN phonegap Error: Fail: '"/Users/jameserbes/.nvm/v0.8.25/bin/node" "/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js" "-enyo" "/Users/jameserbes/Play/enyojs/ares-project/enyo" "-output" "/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app" "-less" "package.js"'
    ares WARN phonegap { enyo: '/Users/jameserbes/Play/enyojs/ares-project/enyo',
    ares WARN phonegap   output: '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app',
    ares WARN phonegap   less: true,
    ares WARN phonegap   argv: 
    ares WARN phonegap    { remain: [ 'package.js' ],
    ares WARN phonegap      cooked: 
    ares WARN phonegap       [ '--enyo',
    ares WARN phonegap         '/Users/jameserbes/Play/enyojs/ares-project/enyo',
    ares WARN phonegap         '--output',
    ares WARN phonegap         '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app',
    ares WARN phonegap         '-less',
    ares WARN phonegap         'package.js' ],
    ares WARN phonegap      original: 
    ares WARN phonegap       [ '-enyo',
    ares WARN phonegap         '/Users/jameserbes/Play/enyojs/ares-project/enyo',
    ares WARN phonegap         '-output',
    ares WARN phonegap         '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app',
    ares WARN phonegap         '-less',
    ares WARN phonegap         'package.js' ] },
    ares WARN phonegap   source: 'package.js' }
    ares WARN phonegap 
    ares WARN phonegap 
    ares WARN phonegap TypeError: Cannot read property 'length' of undefined
    ares WARN phonegap     at walkerFinished (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:180:32)
    ares WARN phonegap     at processNextChunk (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:173:5)
    ares WARN phonegap     at walkerFinished (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:176:3)
    ares WARN phonegap     at Object.module.exports.walk.loader.finish (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:61:4)
    ares WARN phonegap     at Object.enyo.loaderFactory.more (eval at <anonymous> (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
    ares WARN phonegap     at Object.enyo.loaderFactory.load (eval at <anonymous> (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
    ares WARN phonegap     at Object.module.exports.init.enyo.depends (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:55:16)
    ares WARN phonegap     at eval (eval at <anonymous> (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
    ares WARN phonegap     at script (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:2)
    ares WARN phonegap     at Object.module.exports.walk (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:63:3)
    ares WARN phonegap Error: Fail: '"/Users/jameserbes/.nvm/v0.8.25/bin/node" "/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js" "-enyo" "/Users/jameserbes/Play/enyojs/ares-project/enyo" "-output" "/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app" "-less" "package.js"'
    ares WARN phonegap { enyo: '/Users/jameserbes/Play/enyojs/ares-project/enyo',
    ares WARN phonegap   output: '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app',
    ares WARN phonegap   less: true,
    ares WARN phonegap   argv: 
    ares WARN phonegap    { remain: [ 'package.js' ],
    ares WARN phonegap      cooked: 
    ares WARN phonegap       [ '--enyo',
    ares WARN phonegap         '/Users/jameserbes/Play/enyojs/ares-project/enyo',
    ares WARN phonegap         '--output',
    ares WARN phonegap         '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app',
    ares WARN phonegap         '-less',
    ares WARN phonegap         'package.js' ],
    ares WARN phonegap      original: 
    ares WARN phonegap       [ '-enyo',
    ares WARN phonegap         '/Users/jameserbes/Play/enyojs/ares-project/enyo',
    ares WARN phonegap         '-output',
    ares WARN phonegap         '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-86228-k1e2mn.d/build/app',
    ares WARN phonegap         '-less',
    ares WARN phonegap         'package.js' ] },
    ares WARN phonegap   source: 'package.js' }
    ares WARN phonegap 
    ares WARN phonegap 
    ares WARN phonegap TypeError: Cannot read property 'length' of undefined
    ares WARN phonegap     at walkerFinished (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:180:32)
    ares WARN phonegap     at processNextChunk (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:173:5)
    ares WARN phonegap     at walkerFinished (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:176:3)
    ares WARN phonegap     at Object.module.exports.walk.loader.finish (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:61:4)
    ares WARN phonegap     at Object.enyo.loaderFactory.more (eval at <anonymous> (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
    ares WARN phonegap     at Object.enyo.loaderFactory.load (eval at <anonymous> (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
    ares WARN phonegap     at Object.module.exports.init.enyo.depends (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:55:16)
    ares WARN phonegap     at eval (eval at <anonymous> (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
    ares WARN phonegap     at script (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:2)
    ares WARN phonegap     at Object.module.exports.walk (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:63:3)
    ares WARN phonegap 


  • edited August 2013
    When running
    "npm -d install ares-ide"

    i see:
    cd node_modules/semver && /Users/jameserbes/.nvm/v0.8.25/bin/node /Users/jameserbes/.nvm/v0.8.25/lib/node_modules/npm/bin/npm-cli.js --loglevel info install...ok
    npm info postinstall [email protected]
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    npm WARN package.json [email protected] No repository field.
    [email protected] node_modules/ares-ide
    npm info ok 
  • When it run Project>Build

    I see :
    ares http home GET /files/file/Play/enyojs/bootplate//lib/onyx/images/gradient-invert.png? 304 2ms
    ares http home
    ares WARN phonegap bdPhoneGap http getUserData() GET /apps/me
    ares WARN phonegap

    Why do I see these as warnings?
  • Anyhow,

    At this point I will update my app and test with preview.

    Then create a new bootplate and copy the code over to the new project to build.

    As I can build a project once but not twice.

    -J
  • http://community.phonegap.com/nitobi/topics/project_size_limit

    When the bootplate app is zipped up it is ~20mb

    enyo it self seems to be 12mb

    so size might be the issue.
  • i mean the app.zip with just enyo and basic source is ~12M
    bootplate would be bigger ~20M
    $ ls -alh app.zip
    -rw-r--r-- 1 wheel 12M Aug 11 12:35 app.zip

    unziped files
    -rw-r--r-- 1 wheel 2.9K Aug 11 12:33 config.xml
    -rw-r--r-- 1 wheel 939B Aug 11 12:33 debug.html
    drwxr-xr-x 13 wheel 442B Aug 11 12:35 enyo
    -rw-r--r-- 1 wheel 27B Aug 11 12:33 package.js
    -rw-r--r-- 1 wheel 2.4K Aug 11 12:33 project.json
    drwxr-xr-x 5 wheel 170B Aug 11 12:35 source
    drwxr-xr-x 3 wheel 102B Aug 11 12:35 target

    $ ls -alh enyo
    total 112
    drwxr-xr-x 13 wheel 442B Aug 11 12:35 .
    drwxr-xr-x 10 wheel 340B Aug 11 12:35 ..
    -rw-r--r-- 1 wheel 960B Aug 11 12:33 CONTRIBUTING.md
    -rw-r--r-- 1 wheel 11K Aug 11 12:33 LICENSE-2.0.txt
    -rw-r--r-- 1 wheel 8.0K Aug 11 12:33 README.md
    -rw-r--r-- 1 wheel 1.3K Aug 11 12:33 enyo.js
    -rw-r--r-- 1 wheel 340B Aug 11 12:33 kind-template.js
    -rw-r--r-- 1 wheel 8.3K Aug 11 12:33 loader.js
    drwxr-xr-x 5 wheel 170B Aug 11 12:35 minify
    -rw-r--r-- 1 wheel 17B Aug 11 12:33 package.js
    -rw-r--r-- 1 wheel 931B Aug 11 12:33 package.json
    drwxr-xr-x 11 wheel 374B Aug 11 12:35 source
    drwxr-xr-x 11 wheel 374B Aug 11 12:35 tools

    $ ls -alh source/
    total 24
    drwxr-xr-x 5 jameserbes wheel 170B Aug 11 12:35 .
    drwxr-xr-x 10 jameserbes wheel 340B Aug 11 12:35 ..
    -rw-r--r-- 1 jameserbes wheel 68B Aug 11 12:33 App.css
    -rw-r--r-- 1 jameserbes wheel 2.3K Aug 11 12:33 App.js
    -rw-r--r-- 1 jameserbes wheel 39B Aug 11 12:33 package.js

    ls -alh target/phonegap/
    total 23984
    drwxr-xr-x 6 wheel 204B Aug 11 12:35 .
    drwxr-xr-x 3 wheel 102B Aug 11 12:35 ..
    -rw-r--r-- 1 wheel 1.4M Aug 11 12:33 com.nn.apps.birdielister_0.0.1.apk
    -rw-r--r-- 1 wheel 7.9M Aug 11 12:33 com.nn.apps.birdielister_0.0.1.ipk
    -rw-r--r-- 1 wheel 1.1M Aug 11 12:33 com.nn.apps.birdielister_0.0.1.wgz
    -rw-r--r-- 1 wheel 1.2M Aug 11 12:33 com.nn.apps.birdielister_0.0.1.xap
  • ares WARN phonegap bdPhoneGap http /private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11370-99601-1tn1syh.d/app.zip
    ...
    ares WARN phonegap bdPhoneGap http build#_upload#_uploadApp() PUT /apps/505945 (title='Bird Listr')
    ares WARN phonegap bdPhoneGap WARN build#_upload#_fail() error: File is too large. File must be less than 15 MB.
    ares WARN phonegap
    ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): HTTP Error: File is too large. File must be less than 15 MB.

    The app.zip of bootplate ~20M.

    Though I am able to upload the app.zip via https://build.phonegap.com/apps directly from the browser.
Sign In or Register to comment.