-
Notifications
You must be signed in to change notification settings - Fork 335
ionic 3 [CodePush] An error has occured while installing the package. Could not get the package start page #459
Comments
Hi @ismailcse11 , Yeah, it is known issue. For now Please let me know if it was helpful or you have any questions. Thanks, |
Thanks @alexandergoncharov . I spent 4 days for this. at last it([email protected]) solves this problem. |
Great! Thanks for keeping us in touch. |
Is there a fix for this now? |
Hello, I'm exactly in the same trouble, tried to install [email protected] but no luck. this is the script I use to send updates and this is the error I'm getting. This happen both in iOS and Android, both emulator and device. Last those are my dependencies: "dependencies": { I'm new to CodePush but I have implemented it on a react native project and I had no problems, now on Ionic I don't know what else to do. I searched everywhere on google and this is the only place where this problem seem solved. Thank you |
use .sync() without any param fix it |
Same issue here:
My packages:
I also have installed, as other highlight as issue's cause:
I'm already using sync() without parameter to install the update.
|
Resolved: The issue happened because I was testing with Testing must be made without livereload. i.e.
See #517 (comment) |
Not working for me without --livereload also. getting same error. See #678 |
Description
[app-scripts] [02:47:59] console.log: [CodePush] Checking for update.
[app-scripts] [02:47:59] console.log: [CodePush] Checking for update.
[app-scripts] [02:48:01] console.log: [CodePush] An update is available.
[app-scripts] {"appVersion":"0.0.1","deploymentKey":"xxxxx","description":"v${BUILD_ID}","downloadUrl":"https://codepushupdates.azureedge.net/storagev2/ylwYmNB2x6IGYhOOc0hsQBf0vOd43485857a-6fe9-4501-b521-228920abce45","isMandatory":false,"label":"v36","packageHash":"e417a57a5a99ebc7a26e90b27d76e8daaf81f80ef9301055caf044e8d92bc10b","packageSize":3281158,"failedInstall":false}
[app-scripts] [02:48:01] console.log: [CodePush] Awaiting user action.
[app-scripts] [02:48:01] console.log: CODE PUSH UPDATE: 6
[app-scripts] [02:48:01] console.log: [CodePush] An update is available.
[app-scripts] {"appVersion":"0.0.1","deploymentKey":"xxxxx","description":"v${BUILD_ID}","downloadUrl":"https://codepushupdates.azureedge.net/storagev2/ylwYmNB2x6IGYhOOc0hsQBf0vOd43485857a-6fe9-4501-b521-228920abce45","isMandatory":false,"label":"v36","packageHash":"e417a57a5a99ebc7a26e90b27d76e8daaf81f80ef9301055caf044e8d92bc10b","packageSize":3281158,"failedInstall":false}
[app-scripts] [02:48:01] console.log: Update Package Info [object Object]
[app-scripts] [02:48:07] console.log: CODE PUSH UPDATE: 7
[app-scripts] [02:48:19] console.log: [CodePush] Downloading update
[app-scripts] [02:48:26] console.log: [CodePush] Package download success:
[app-scripts] {"deploymentKey":"xxxxx","description":"v${BUILD_ID}","label":"v36","appVersion":"0.0.1","isMandatory":false,"packageHash":"e417a57a5a99ebc7a26e90b27d76e8daaf81f80ef9301055caf044e8d92bc10b","isFirstRun":false,"failedInstall":false,"localPath":"cdvfile://localhost/files/codepush/download/update.zip"}
[app-scripts] [02:48:26] console.log: CODE PUSH UPDATE: 8
[app-scripts] [02:48:29] console.log: [CodePush] Installing update
[app-scripts] [02:48:31] console.log: [CodePush] Applying full update
[app-scripts] [02:48:33] console.error: [CodePush] Preinstall failure. Could not get the package start page
[app-scripts] [02:48:33] console.error: [CodePush] An error has occured while installing the package. Could not get the package start
[app-scripts] page. StackTrace: Error: An error has occured while installing the package. Could not get the package start
[app-scripts] page at preInstallFailure
[app-scripts] (http://192.168.0.103:8100/plugins/cordova-plugin-code-push/bin/www/localPackage.js:246:41) at
[app-scripts] Object.callbackFromNative (http://192.168.0.103:8100/cordova.js:293:52) at processMessage
[app-scripts] (http://192.168.0.103:8100/cordova.js:1115:17) at processMessages
[app-scripts] (http://192.168.0.103:8100/cordova.js:1138:9) at t.invoke
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:14976) at r.run
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:10143) at
[app-scripts] http://192.168.0.103:8100/build/polyfills.js:3:20242 at t.invokeTask
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:15660) at r.runTask
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:10834) at o
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:7894)
[app-scripts] [02:48:33] console.error: [CodePush] An error occurred during sync. An error has occured while installing the package.
[app-scripts] Could not get the package start page. StackTrace: Error: An error has occured while installing the package.
[app-scripts] Could not get the package start page at preInstallFailure
[app-scripts] (http://192.168.0.103:8100/plugins/cordova-plugin-code-push/bin/www/localPackage.js:246:41) at
[app-scripts] Object.callbackFromNative (http://192.168.0.103:8100/cordova.js:293:52) at processMessage
[app-scripts] (http://192.168.0.103:8100/cordova.js:1115:17) at processMessages
[app-scripts] (http://192.168.0.103:8100/cordova.js:1138:9) at t.invoke
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:14976) at r.run
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:10143) at
[app-scripts] http://192.168.0.103:8100/build/polyfills.js:3:20242 at t.invokeTask
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:15660) at r.runTask
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:10834) at o
[app-scripts] (http://192.168.0.103:8100/build/polyfills.js:3:7894)
[app-scripts] [02:48:33] console.log: CODE PUSH ERROR: Error: An error has occured while installing the package. Could not get the
[app-scripts] package start page
The problem is that after the app is updated i close the app, and it rollback to the previews version
Additional Information
cordova-plugin-code-push 1.11.13 "CodePush"
code-push 2.0.6 "CodePushAcquisition"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appcenter-analytics 0.2.0 "App Center Analytics for Cordova"
cordova-plugin-appcenter-crashes 0.2.0 "App Center Crashes for Cordova"
cordova-plugin-appcenter-shared 0.2.0 "App Center shared code for Cordova"
cordova-plugin-code-push 1.11.13 "CodePush"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
d:\ionic\school1>ionic info
√ Gathering environment info - done!
Ionic:
ionic (Ionic CLI) : 4.2.1 (C:\Users\ismail\AppData\Roaming\nvm\v8.9.4\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 14 other plugins)
System:
Android SDK Tools : 26.1.1 (C:\Users\ismail\AppData\Local\Android\Sdk)
NodeJS : v8.9.4 (C:\Program Files\nodejs\node.exe)
npm : 5.6.0
OS : Windows 10
I am testing in android mobile.
I am testing in android mobile.
(The more info the faster we will be able to address it!)
I have also post an article in ionic forum link here: https://forum.ionicframework.com/t/ionic-native-code-push-auto-rollback-problem/145731
In config.xml
I also deploy using appcenter
appcenter codepush release-cordova -a woner_name/school1-android -d Production --description "description here"
The text was updated successfully, but these errors were encountered: