arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 398 forks source link

Deploy issue with meteor version 0.9.4 #158

Open feidens opened 9 years ago

feidens commented 9 years ago
mup deploy

triggers

-------------------STDERR-------------------
Supply the server hostname and port in the --server option
for mobile app builds.

But these should be optional parameters.

rjobanp commented 9 years ago

I'm getting this issue too, it seems to be outputted by the meteor command line tool: https://github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration#building

mmoyles87 commented 9 years ago

No issue here. I deployed with 0.9.4 and it worked perfectly.

rjobanp commented 9 years ago

Well it works fine if you haven't added a mobile platform to your app meteor add-platform android but if you do then it throws the error.

trymbill commented 9 years ago

Same here, deploying with iOS platform on 0.9.4 triggers the before mentioned error.

samueljoos commented 9 years ago

I am having the same problem. I don't have the android or ios platform installed.

SylvainBigonneau commented 9 years ago

Same problem here. With android platform installed.

ghost commented 9 years ago

same error here, both platforms installed, removing platforms should not be a problem i think

arunoda commented 9 years ago

Guys, I made a fix to deploy without removing mobile platforms. Can you please give it a try.

Install latest mup (0.6.9)

rjobanp commented 9 years ago

Just tried it with the update and it seems to be working! Thanks @arunoda !

arunoda commented 9 years ago

nice to hear that.


Arunoda Susiripala

@arunoda http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

On Tue, Oct 28, 2014 at 3:41 AM, Roshan Jobanputra <notifications@github.com

wrote:

Just tried it with the update and it seems to be working! Thanks @arunoda https://github.com/arunoda !

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/158#issuecomment-60678532.

ArjunRajJain commented 9 years ago

getting this error now for some reason -

ssh_exchange_identification: read: Connection reset by peer
ghost commented 9 years ago

updated and seems to be working now with platforms =), thanks!

trymbill commented 9 years ago

Same here after update, works like a charm. Thanks @arunoda

arunoda commented 9 years ago

Awesome :)

On Tuesday, October 28, 2014, Maggi Trymbill notifications@github.com wrote:

Same here after update, works like a charm. Thanks @arunoda https://github.com/arunoda

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/158#issuecomment-60703721.


Arunoda Susiripala

@arunoda http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

KristerV commented 9 years ago

I've still got this error in Meteor 1.1.0.2.

All I did was add the android platform. Am I supposed to configure this somehow?

KristerV commented 9 years ago

google knows nothing of this issue. As a temporary fix I'll manually remove android from the platforms file - this makes it work.

arunoda commented 9 years ago

Would you mind trying mupx. Check mupx branch.

On Wed, May 27, 2015 at 7:32 PM Krister Viirsaar notifications@github.com wrote:

google knows nothing of this issue. As a temporary fix I'll manually remove android from the platforms file - this makes it work.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/158#issuecomment-105923064.

KristerV commented 9 years ago

mupx gives me a whole other bastard of an error

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file      : settings.json

“ Checkout Kadira!
  It's the best way to monitor performance of your app.
  Visit: https://kadira.io/mup ”

Started TaskList: Setup (linux)
[homecooks] - Installing Docker
[homecooks] - Installing Docker: SUCCESS
[homecooks] - Setting up Environment
[homecooks] - Setting up Environment: SUCCESS
[homecooks] - Copying MongoDB configuration
  nodemiral:sess:homecooks copy file - src: /usr/lib/node_modules/mupx/templates/linux/mongodb.conf, dest: /opt/mongodb/mongodb.conf, vars: undefined +0ms
[homecooks] - Copying MongoDB configuration: SUCCESS
[homecooks] - Installing MongoDB
[homecooks] x Installing MongoDB: FAILED

    -----------------------------------STDERR-----------------------------------
    time="2015-05-27T20:43:41+03:00" level=fatal msg="Error response from daemon: Cannot start container 79f8ca1d00a4af48965500be934bda1fd14bb9de3af9d909ed462b4e597821af: Error starting userland proxy: listen tcp 127.0.0.1:27017: bind: address already in use" 
    -----------------------------------STDOUT-----------------------------------
    latest: Pulling from mongo
    7a3e804ed6c0: Already exists
    b96d1548a24e: Already exists
    8f7d72c36980: Already exists
    ed130ec41052: Already exists
    38d67eafa679: Already exists
    4d8522822453: Already exists
    3cac3354324b: Already exists
    0eb1ebbf9bce: Already exists
    c90db56b7214: Already exists
    a24d8f945999: Already exists
    bb13c3c56f69: Already exists
    fda5f0b1f167: Already exists
    4be2bddae583: Already exists
    aec7ed68cd95: Already exists
    7ef9fdf221f8: Already exists
    3a16fedf1c1a: Already exists
    077c6501ee18: Already exists
    077c6501ee18: Already exists
    Digest: sha256:110f7afdd5388b29fcd1bdf95c0ab3458b518fc717c364f348afdc29b5ebb171
    Status: Image is up to date for mongo:latest
    mongodb
    79f8ca1d00a4af48965500be934bda1fd14bb9de3af9d909ed462b4e597821af
    ----------------------------------------------------------------------------
arunoda commented 9 years ago

That's because. You need to stop the currently running mongod. See: https://github.com/arunoda/meteor-up/tree/mupx#migration-guide

On Wed, May 27, 2015 at 11:14 PM Krister Viirsaar notifications@github.com wrote:

mupx gives me a whole other bastard of an error

Meteor Up: Production Quality Meteor Deployments

Configuration file : mup.json Settings file : settings.json

“ Checkout Kadira! It's the best way to monitor performance of your app. Visit: https://kadira.io/mup ”Started TaskList: Setup (linux)[homecooks] - Installing Docker[homecooks] - Installing Docker: SUCCESS[homecooks] - Setting up Environment[homecooks] - Setting up Environment: SUCCESS[homecooks] - Copying MongoDB configuration nodemiral:sess:homecooks copy file - src: /usr/lib/node_modules/mupx/templates/linux/mongodb.conf, dest: /opt/mongodb/mongodb.conf, vars: undefined +0ms[homecooks] - Copying MongoDB configuration: SUCCESS[homecooks] - Installing MongoDB[homecooks] x Installing MongoDB: FAILED -----------------------------------STDERR----------------------------------- time="2015-05-27T20:43:41+03:00" level=fatal msg="Error response from daemon: Cannot start container 79f8ca1d00a4af48965500be934bda1fd14bb9de3af9d909ed462b4e597821af: Error starting userland proxy: listen tcp 127.0.0.1:27017: bind: address already in use" -----------------------------------STDOUT----------------------------------- latest: Pulling from mongo 7a3e804ed6c0: Already exists b96d1548a24e: Already exists 8f7d72c36980: Already exists ed130ec41052: Already exists 38d67eafa679: Already exists 4d8522822453: Already exists 3cac3354324b: Already exists 0eb1ebbf9bce: Already exists c90db56b7214: Already exists a24d8f945999: Already exists bb13c3c56f69: Already exists fda5f0b1f167: Already exists 4be2bddae583: Already exists aec7ed68cd95: Already exists 7ef9fdf221f8: Already exists 3a16fedf1c1a: Already exists 077c6501ee18: Already exists 077c6501ee18: Already exists Digest: sha256:110f7afdd5388b29fcd1bdf95c0ab3458b518fc717c364f348afdc29b5ebb171 Status: Image is up to date for mongo:latest mongodb 79f8ca1d00a4af48965500be934bda1fd14bb9de3af9d909ed462b4e597821af ----------------------------------------------------------------------------

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/158#issuecomment-106009399.

KristerV commented 9 years ago
root@homecooks:/srv/deploy_toitla-app# mupx deploy

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file      : settings.json

“ Checkout Kadira!
  It's the best way to monitor performance of your app.
  Visit: https://kadira.io/mup ”

Meteor app path    : /srv/toitla-app
Using buildOptions : {}

Started TaskList: Deploy app 'homefood_dev' (linux)
[homecooks] - Uploading bundle
[homecooks] - Uploading bundle: SUCCESS
[homecooks] - Sending environment variables
[homecooks] - Sending environment variables: SUCCESS
[homecooks] - Initializing start script
[homecooks] - Initializing start script: SUCCESS
[homecooks] - Invoking deployment process
[homecooks] - Invoking deployment process: SUCCESS
[homecooks] - Verifying deployment
[homecooks] x Verifying deployment: FAILED

    -----------------------------------STDERR-----------------------------------
      0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (52) Empty reply from server
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (56) Recv failure: Connection reset by peer
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (52) Empty reply from server
    npm WARN package.json meteor-dev-bundle@0.0.0 No description
    npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
    npm WARN package.json meteor-dev-bundle@0.0.0 No README data
    -----------------------------------STDOUT-----------------------------------

    To see more logs type 'mup logs --tail=50'

    ----------------------------------------------------------------------------
root@homecooks:/srv/deploy_toitla-app# mup logs --tail=50

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

[homecooks] Warning: Permanently added 'homecooks' (ECDSA) to the list of known hosts.
[homecooks] tail: unrecognized option '--tail=50'
[homecooks] Try 'tail --help' for more information.
root@homecooks:/srv/deploy_toitla-app# mup logs -n 400

mup logs -n 400 did not show anything interesting.

KristerV commented 9 years ago

Okay I got passed that screen by stopping all of my apps. Mupx has much better errors, but I still have a PhoneGap issue, even though install-sdk was successful.

At this point I'm just logging my process, probably can figure this out.

root@homecooks:/srv/deploy_toitla-app# meteor install-sdk android
✓ Found Android bundle
✓ A JDK is installed                          
✓ Found Android Platform tools                
✓ Found Android Build Tools                   
✓ Found Android 19 API                        
✓ Found suitable Android x86 image            
✓ 'meteor' android virtual device (AVD) found 
✓ Android emulator acceleration is installed  
root@homecooks:/srv/deploy_toitla-app# mupx deploy

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file      : settings.json

“ Checkout Kadira!
  It's the best way to monitor performance of your app.
  Visit: https://kadira.io/mup ”

Meteor app path    : /srv/toitla-app
Using buildOptions : {}
Error while building for mobile platforms: Error running
/root/.meteor/packages/meteor-tool/.1.1.3.jnvn1i++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/cordova-scripts/cordova.sh

/root/.meteor/android_bundle/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:126
throw e;
^
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must
fulfill at least one of these conditions.
at

[TRUNCATING TRACEBACK]

Creating android project...
=> Build Error. Check the logs printed above.
KristerV commented 9 years ago

To fix last issue I found where the sdk was located with

find / | grep "android-sdk"

and exported the PATHs:

export ANDROID_HOME=/<installation location>/android-sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

And now everything builds fine on mupx! Awesome..

Also, the reason why I started debugging this in the first place: hot code push to android works!! (doesn't without the correct platform.

KristerV commented 9 years ago

I went back and tried normal mup again, to see if the new Android configurations fixed mup's issues and it didn't. Normal mup still gives error Supply the server hostname and port in the --server option for mobile app builds.

That's okay, I'm good with mupx.

KristerV commented 9 years ago

so this issue can be closed for sure now.

KristerV commented 9 years ago

decided to gather my issues into a single blog-post in case you're interested http://code.krister.ee/mupx-problems/

KristerV commented 9 years ago

holy shit mupx is really unstable. Have to erase and deploy multiple times to get it done and apps don't come online after reboots..

tlundgren commented 8 years ago

I have no problem deploying with mup and including android platform. I am using meteor 1.2.2