Can't get hot code push working while debugging Cordova app


#1

While debugging our Cordova app (run using android-device) whenever I save in my IDE and hot code push is attempted I get:

=> Meteor server restartedI20160803-10:22:36.641(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: Download failure
I20160803-10:22:36.641(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: com.meteor.webapp.WebAppException: Version mismatch for index page, expected: aac753c5f8b2fb8768d609ec23a5682ccf9f2ea0, actual: f476b80e1120567ddd6c13d5be686ff4ac9b121e
I20160803-10:22:36.641(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: 	at com.meteor.webapp.AssetBundleDownloader.verifyRuntimeConfig(AssetBundleDownloader.java:182)
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: 	at com.meteor.webapp.AssetBundleDownloader$1.onResponse(AssetBundleDownloader.java:109)
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: 	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: 	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 W MeteorWebApp: 	at java.lang.Thread.run(Thread.java:818)
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: Download failure
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: com.meteor.webapp.WebAppException: Version mismatch for index page, expected: aac753c5f8b2fb8768d609ec23a5682ccf9f2ea0, actual: f476b80e1120567ddd6c13d5be686ff4ac9b121e
I20160803-10:22:36.642(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: 	at com.meteor.webapp.AssetBundleDownloader.verifyRuntimeConfig(AssetBundleDownloader.java:182)
I20160803-10:22:36.643(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: 	at com.meteor.webapp.AssetBundleDownloader$1.onResponse(AssetBundleDownloader.java:109)
I20160803-10:22:36.643(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: 	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
I20160803-10:22:36.644(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: 	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
I20160803-10:22:36.644(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
I20160803-10:22:36.644(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
I20160803-10:22:36.644(12)? 08-03 10:22:36.396 28937  1313 E MeteorWebApp: 	at java.lang.Thread.run(Thread.java:818)
I20160803-10:22:36.644(12)? 08-03 10:22:36.399 28937 28937 I chromium: [INFO:CONSOLE(64)] "Error: Version mismatch for index page, expected: aac753c5f8b2fb8768d609ec23a5682ccf9f2ea0, actual: f476b80e1120567ddd6c13d5be686ff4ac9b121e", source: 

If I restart the meteor app then it works, but obviously this is a major slowdown in development.

Any ideas? Is it possible I’ve stuffed something up somewhere?


#2

Very strange. Multiple meteor resets made no difference but now it doesn’t seem to be happening.