Error Pro.deploy.extract stop at 85

Hi,

I have a problem, when i get a new Live Deploy the progress of Download go to end, next start the extract but stop always at 85 and I dont now what can i do to resolve this

this is my ionic info:

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.2
Node              : v6.11.4
npm               : 2.15.12
OS                : macOS High Sierra
Xcode             : Xcode 9.2 Build version 9C40b

Environment Variables:

ANDROID_HOME : /Users/joselopezuceda/Library/Android/sdk

Misc:

backend : pro

Thanks for all

Unrelated but I noticed:

Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: How to update Cordova CLI, Platforms and Plugins ¡ ionic.zone

Thanks but this not resolve the problem

I find this in logcat

03-27 13:13:38.815 8076-8134/.****..** I/IONIC.DEPLOY.EXTRACT: Progress: 85%
03-27 13:13:38.819 8076-8134/.****..** I/IONIC.DEPLOY.REMOVE: Removed www.zip
03-27 13:13:38.820 8076-8076/.****..** D/SystemWebChromeClient: file:///android_asset/www/build/main.js: Line 4354 : extract 85
03-27 13:13:38.821 8076-8076/.****..** I/chromium: [INFO:CONSOLE(4354)] “extract 85”, source: file:///android_asset/www/build/main.js (4354)
03-27 13:13:38.832 8076-8159/.****..** I/IONIC.DEPLOY.REDIRECT: Pre-redirect cordova injection exception: java.io.FileNotFoundException: /data/user/0/.****..**/app_24a2029a-00a7-41f7-bb28-2672d625776f/index.html (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:146)
at java.io.FileReader.(FileReader.java:72)
at com.ionicframework.deploy.IonicDeploy.getStringFromFile(IonicDeploy.java:125)
at com.ionicframework.deploy.IonicDeploy.redirect(IonicDeploy.java:974)
at com.ionicframework.deploy.IonicDeploy.execute(IonicDeploy.java:350)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:57)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:9)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)

But i dont know why in this moment give this error

Does this only happen on this device or on all devices?
Anything special about this device?

no, this happen on all devices

Never seen before, not much we can debug here publicly. Probably best use http://ionicframework.com/support#support

I open a Request before but nobody answer m

I’m having this issue too. Details below:

I have just implement the new Ionic Pro deploy functionality.

On iOS it works as expected. On android it fails in production and debug.

Here is my code:
try {
const haveUpdate = await Pro.deploy.check();

if (haveUpdate){
downloadProgress = ‘Downloading…’;
console.log(‘downloading’);

await Pro.deploy.download((progress) => {
  downloadProgress = `Downloading: ${progress}%`;
});
console.log('downloaded');
await Pro.deploy.extract((progress) => {
  downloadProgress = `Extracting: ${progress}%`;
  console.log(progress);
});
console.log('extracted');
downloadProgress = `Redirecting - please wait`;
await Pro.deploy.redirect();

}
} catch (err) {
downloadProgress = We have encountered an error. Please restart this app and try again.
// We encountered an error.
// Here’s how we would log it to Ionic Pro Monitoring while also catching:

// Pro.monitoring.exception(err);
}
in the Pro.deploy.extract method, progress hangs at 94%.

Strangely, the console.log call that outputs ‘extracted’ is logged between the output from 74 and 75% extracted.

await Pro.deploy.redirect() is never called.

It also fails without the console log statements.

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 6.3.0 browser 5.0.3 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.0.2
ios-deploy        : 1.9.2 
ios-sim           : 6.0.0 
Node              : v8.9.1
npm               : 5.5.1 
OS                : macOS Sierra
Xcode             : Xcode 9.2 Build version 9C40b 

Environment Variables:

ANDROID_HOME : /Users/chrisdelambert/Library/Android/sdk

Misc:

backend : pro
1 Like

Neither - All I got was they are aware of AN issue with deploy on Android. Has been two weeks I can’t use deploy. There are a couple of other critical issues with the latest plugin too. I hope someone is working on it.

2 Likes

Does anybody fix this issue somehow?

And also a question for those who have it: Do you have CrossWalk as a part of your project?

You can follow the progress around this at https://github.com/ionic-team/cordova-plugin-ionic/issues Looks like they are working through the issues but not quite there yet.

1 Like

In my case, I tried to reinstall the plugin.

ionic cordova plugin rm cordova-plugin-ionic
ionic cordova plugin add cordova-plugin-ionic --save --variable CHANNEL_NAME="..." --variable APP_ID="..." --variable WARN_DEBUG="..." --variable UPDATE_METHOD="..."
npm install --save @ionic-native/pro
npm install --save @ionic/pro

deleted the node_module then build