android-无法使我的流星应用程序连接到我的服务器.短暂显示“已连接”,转到“正在连接”和“正在等待”

android-无法使我的流星应用程序连接到我的服务器.短暂显示“已连接”,转到“正在连接”和“正在等待”,第1张

概述我可以将SamsungGalaxyPrevail连接到同一个LAN上的开发箱,运行“meteorrunandroid-device”,并在电话上启动我的应用程序,Meteor.status().status报告“已连接”.该应用程序运行良好.但是,当我使用“mup”将其部署到服务器上时(我可以在浏览器中的服务器上运行该应用程序),

我可以将Samsung galaxy Prevail连接到同一个LAN上的开发箱,运行“ meteor run android-device”,并在电话上启动我的应用程序,Meteor.status().status报告“已连接”.该应用程序运行良好.

但是,当我使用“ mup”将其部署到服务器上时(我可以在浏览器中的服务器上运行该应用程序),然后运行:

meteor run androID-device --mobile-server http://mymeteorappdomain.com --deBUG

我看到“已连接”几秒钟,但是它切换到“正在连接”然后“正在等待”,并停留在那里.我注意到靠近“ restartServer”的底部附近的调试输出行(在视觉上)似乎与从“已连接”到“正在连接”的更改一致,但是我不了解科尔多瓦在那儿做什么,也不知道“ restartServer”在做什么或为什么应该重新启动任何东西.

因此,该应用程序启动了,但是我无法登录(例如使用ian:accounts-ui-bootstrap-3和accounts-password登录)或以其他方式在该应用程序中执行任何 *** 作.

我正在Ubuntu 14.04上开发并部署到我的Digital Ocean Droplet,也正在运行Ubuntu 14.04.

这是完整的调试输出(不必担心实际的域名):

Installing app on device...Launching application...LAUNCH SUCCESSCommand finished with error code 0: /home/fugbert/www/dev/m.myapp.com/app/.meteor/local/cordova-build/platforms/androID/cordova/run --deviceI20150618-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/versionI20150618-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.localI20150618-09:17:52.111(-7) (androID:http://meteor.local/packages/autoupdate.Js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) start downloading /81094d8fd7495646a6359f4dcfd57bd3f223ee39.JsI20150618-09:17:52.133(-7) (androID:http://meteor.local/packages/autoupdate.Js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) start downloading /0045083fdb0aae9cfdd7bc8624d6d600f54d0f32.CSSI20150618-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.eotI20150618-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.ttfI20150618-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.svgI20150618-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.woffI20150618-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.pngI20150618-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.gifI20150618-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.eotI20150618-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.svgI20150618-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.ttfI20150618-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.woffI20150618-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.eotI20150618-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.svgI20150618-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.ttfI20150618-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.woffI20150618-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.pngI20150618-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.pngI20150618-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.pngI20150618-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.pngI20150618-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.pngI20150618-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.pngI20150618-09:17:52.258(-7) (androID:http://meteor.local/packages/autoupdate.Js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) start downloading /favicon.icoI20150618-09:17:52.262(-7) (androID:http://meteor.local/packages/autoupdate.Js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) start downloading /robots.txtI20150618-09:17:52.266(-7) (androID:http://meteor.local/packages/autoupdate.Js:183) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) start downloading /index.HTMLI20150618-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.pngI20150618-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.svgI20150618-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.woffI20150618-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.pngI20150618-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.pngI20150618-09:17:52.410(-7) (androID:http://meteor.local/packages/autoupdate.Js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) done downloading /index.HTMLI20150618-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.pngI20150618-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.pngI20150618-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.pngI20150618-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.woffI20150618-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.gifI20150618-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.ttfI20150618-09:17:52.468(-7) (androID:http://meteor.local/packages/autoupdate.Js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) done downloading /favicon.icoI20150618-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.pngI20150618-09:17:52.481(-7) (androID:http://meteor.local/packages/autoupdate.Js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) done downloading /robots.txtI20150618-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.woffI20150618-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.eotI20150618-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.eotI20150618-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.svgI20150618-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.ttfI20150618-09:17:52.725(-7) (androID:http://meteor.local/packages/autoupdate.Js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) done downloading /0045083fdb0aae9cfdd7bc8624d6d600f54d0f32.CSSI20150618-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.eotI20150618-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.ttfI20150618-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.svgI20150618-09:17:53.514(-7) (androID:http://meteor.local/packages/autoupdate.Js:192) METEOR CORDOVA DEBUG (autoupdate_cordova.Js) done downloading /81094d8fd7495646a6359f4dcfd57bd3f223ee39.JsI20150618-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/a2857e48230e176c2713f1a27f17feef6945ac58I20150618-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

解决方法:

我经历了如此反复的尝试,以至于我现在不确定到底这是我获得(并保持)联系之前的最后一步.

对我来说,最后一个错误是有关“ http://meteor.local”不可能出现CORS XMLhttpRequest的问题,至少这个问题似乎可以从此线程中有关添加浏览器策略包的建议中得到帮助:https://github.com/meteor/meteor/issues/4132

我计划将所有笔记放到博客或至少综合性的帖子上,因为如果他们(尤其是在linux上为AndroID平台开发)上,可能会有很多人碰到这些陷阱.

总结

以上是内存溢出为你收集整理的android-无法使我的流星应用程序连接到我的服务器.短暂显示“已连接”,转到“正在连接”和“正在等待”全部内容,希望文章能够帮你解决android-无法使我的流星应用程序连接到我的服务器.短暂显示“已连接”,转到“正在连接”和“正在等待”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1080018.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存