Meteor run-android device was working, made small web changes, no longer working ("connecting", "waiting")


#1

I’m having trouble again with connecting my android device to my server (works on local LAN).

I am seeing ‘connected’ for a second or two but then I see ‘connecting’ then ‘waiting’. I have noticed now that in the verbose debug, the switch away from ‘connected’ to ‘connecting’ seems to happen at about the instant that the debug log reports about “restartServer”.

I’m mup-deploying with this env:

  "env": {
    "MONGO_URL": "mongodb://localhost:27017/my-app-name",
    "PORT": 3001,
    "ROOT_URL": "http://localhost"
  },

meteor run android-device --mobile-server http://myapp.com  -v

I am getting this result (notice restartServer near bottom):

Installing app on device...
Launching application...
LAUNCH SUCCESS
Command finished with error code 0: /home/fugbert/www/dev/m.etfinvest.com/app/.meteor/local/cordova-build/platforms/android/cordova/run --device
I20150618-09:17:47.918(-7) (android:meteor_cordova_loader.js:12) METEOR CORDOVA DEBUG (meteor_cordova_loader.js) Error reading version file Error: Failed to resolve entry: file:///data/data/com.idbzpo1upqh87wp5no3r/files/meteor/version
I20150618-09:17:47.920(-7) (android:meteor_cordova_loader.js:12) METEOR CORDOVA DEBUG (meteor_cordova_loader.js) Couldn't load from the manifest, falling back to the bundled assets.
I20150618-09:17:48.001(-7) (android:meteor_cordova_loader.js:12) METEOR CORDOVA DEBUG (meteor_cordova_loader.js) Loading from url: http://meteor.local
I20150618-09:17:52.111(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /81094d8fd7495646a6359f4dcfd57bd3f223ee39.js
I20150618-09:17:52.133(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /0045083fdb0aae9cfdd7bc8624d6d600f54d0f32.css
I20150618-09:17:52.140(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.eot
I20150618-09:17:52.155(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.ttf
I20150618-09:17:52.161(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.svg
I20150618-09:17:52.169(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.woff
I20150618-09:17:52.175(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mrt_x-editable-bootstrap3/lib/bootstrap3-editable/img/clear.png
I20150618-09:17:52.180(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mrt_x-editable-bootstrap3/lib/bootstrap3-editable/img/loading.gif
I20150618-09:17:52.187(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mrt_footable/lib/css/fonts/footable.eot
I20150618-09:17:52.195(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mrt_footable/lib/css/fonts/footable.svg
I20150618-09:17:52.204(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mrt_footable/lib/css/fonts/footable.ttf
I20150618-09:17:52.211(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/mrt_footable/lib/css/fonts/footable.woff
I20150618-09:17:52.214(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.eot
I20150618-09:17:52.218(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.svg
I20150618-09:17:52.223(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.ttf
I20150618-09:17:52.229(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.woff
I20150618-09:17:52.232(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/ryw_blog/public/default-user.png
I20150618-09:17:52.239(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/ryw_blog/client/stylesheets/images/remove.png
I20150618-09:17:52.243(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/ryw_blog/client/stylesheets/images/link.png
I20150618-09:17:52.247(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/ryw_blog/client/stylesheets/images/unlink.png
I20150618-09:17:52.251(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/ryw_blog/client/stylesheets/images/resize-bigger.png
I20150618-09:17:52.255(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /packages/ryw_blog/client/stylesheets/images/resize-smaller.png
I20150618-09:17:52.258(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /favicon.ico
I20150618-09:17:52.262(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /robots.txt
I20150618-09:17:52.266(-7) (android:http://meteor.local/packages/autoupdate.js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.js) start downloading /index.html
I20150618-09:17:52.350(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/ryw_blog/client/stylesheets/images/remove.png
I20150618-09:17:52.365(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mrt_footable/lib/css/fonts/footable.svg
I20150618-09:17:52.370(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.woff
I20150618-09:17:52.383(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/ryw_blog/public/default-user.png
I20150618-09:17:52.387(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/ryw_blog/client/stylesheets/images/resize-smaller.png
I20150618-09:17:52.410(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /index.html
I20150618-09:17:52.435(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/ryw_blog/client/stylesheets/images/link.png
I20150618-09:17:52.453(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/ryw_blog/client/stylesheets/images/unlink.png
I20150618-09:17:52.453(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mrt_x-editable-bootstrap3/lib/bootstrap3-editable/img/clear.png
I20150618-09:17:52.454(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mrt_footable/lib/css/fonts/footable.woff
I20150618-09:17:52.458(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mrt_x-editable-bootstrap3/lib/bootstrap3-editable/img/loading.gif
I20150618-09:17:52.466(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mrt_footable/lib/css/fonts/footable.ttf
I20150618-09:17:52.468(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /favicon.ico
I20150618-09:17:52.469(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/ryw_blog/client/stylesheets/images/resize-bigger.png
I20150618-09:17:52.481(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /robots.txt
I20150618-09:17:52.484(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.woff
I20150618-09:17:52.489(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mrt_footable/lib/css/fonts/footable.eot
I20150618-09:17:52.626(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.eot
I20150618-09:17:52.632(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.svg
I20150618-09:17:52.633(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/mizzao_bootstrap-3/bootstrap-3/fonts/glyphicons-halflings-regular.ttf
I20150618-09:17:52.725(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /0045083fdb0aae9cfdd7bc8624d6d600f54d0f32.css
I20150618-09:17:52.784(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.eot
I20150618-09:17:52.848(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.ttf
I20150618-09:17:52.909(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /packages/fortawesome_fontawesome/fonts/fontawesome-webfont.svg
I20150618-09:17:53.514(-7) (android:http://meteor.local/packages/autoupdate.js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.js) done downloading /81094d8fd7495646a6359f4dcfd57bd3f223ee39.js
I20150618-09:17:53.576(-7) (android:http://meteor.local/packages/autoupdate.js:44) METEOR CORDOVA DEBUG (autoupdate_cordova.js) restartServer with location /data/data/com.idbzpo1upqh87wp5no3r/files/meteor/a2857e48230e176c2713f1a27f17feef6945ac58
I20150618-09:17:55.831(-7) (android:http://meteor.local/81094d8fd7495646a6359f4dcfd57bd3f223ee39.js:247) METEOR CORDOVA DEBUG (autoupdate_cordova.js) cordova.file.dataDirectory is null, retrying in 20ms

I am running Ubuntu 14.04 on my development desktop, my development laptop, and my Digital Ocean server. I am running nginx 1.8.0 to proxy.

Can anybody advise?


#3

I am having the same problem. App.accessRule doesn’t seem to always help


#4

Take a look at this post: https://groups.google.com/d/msg/meteor-talk/72Rv67Cp5cg/9cu36TQaKp8J.

The documentation on running production mobile apps with a backend is not there yet, so we have to find the solutions ourselves.

It states that for your bundle(server) to contain the functionality needed for your mobile app you need to build having either the ios or android platform added to your project.

This has solved my hot code push problem. It works for my android and ios variant.