{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/issues/456","repository_url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push","labels_url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/issues/456/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/issues/456/comments","events_url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/issues/456/events","html_url":"https://github.com/Microsoft/cordova-plugin-code-push/issues/456","id":371702864,"node_id":"MDU6SXNzdWUzNzE3MDI4NjQ=","number":456,"title":"Unexpected rollbacks in \"Production\" deployment","user":{"login":"krishnagopinath","id":4935809,"node_id":"MDQ6VXNlcjQ5MzU4MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/4935809?v=4","gravatar_id":"","url":"https://api.github.com/users/krishnagopinath","html_url":"https://github.com/krishnagopinath","followers_url":"https://api.github.com/users/krishnagopinath/followers","following_url":"https://api.github.com/users/krishnagopinath/following{/other_user}","gists_url":"https://api.github.com/users/krishnagopinath/gists{/gist_id}","starred_url":"https://api.github.com/users/krishnagopinath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishnagopinath/subscriptions","organizations_url":"https://api.github.com/users/krishnagopinath/orgs","repos_url":"https://api.github.com/users/krishnagopinath/repos","events_url":"https://api.github.com/users/krishnagopinath/events{/privacy}","received_events_url":"https://api.github.com/users/krishnagopinath/received_events","type":"User","site_admin":false},"labels":[{"id":250156658,"node_id":"MDU6TGFiZWwyNTAxNTY2NTg=","url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/labels/bug","name":"bug","color":"fc2929","default":true},{"id":554409496,"node_id":"MDU6TGFiZWw1NTQ0MDk0OTY=","url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/labels/waiting-for-clarification","name":"waiting-for-clarification","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"alexandergoncharov","id":13234108,"node_id":"MDQ6VXNlcjEzMjM0MTA4","avatar_url":"https://avatars1.githubusercontent.com/u/13234108?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandergoncharov","html_url":"https://github.com/alexandergoncharov","followers_url":"https://api.github.com/users/alexandergoncharov/followers","following_url":"https://api.github.com/users/alexandergoncharov/following{/other_user}","gists_url":"https://api.github.com/users/alexandergoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandergoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandergoncharov/subscriptions","organizations_url":"https://api.github.com/users/alexandergoncharov/orgs","repos_url":"https://api.github.com/users/alexandergoncharov/repos","events_url":"https://api.github.com/users/alexandergoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/alexandergoncharov/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexandergoncharov","id":13234108,"node_id":"MDQ6VXNlcjEzMjM0MTA4","avatar_url":"https://avatars1.githubusercontent.com/u/13234108?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandergoncharov","html_url":"https://github.com/alexandergoncharov","followers_url":"https://api.github.com/users/alexandergoncharov/followers","following_url":"https://api.github.com/users/alexandergoncharov/following{/other_user}","gists_url":"https://api.github.com/users/alexandergoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandergoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandergoncharov/subscriptions","organizations_url":"https://api.github.com/users/alexandergoncharov/orgs","repos_url":"https://api.github.com/users/alexandergoncharov/repos","events_url":"https://api.github.com/users/alexandergoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/alexandergoncharov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-10-18T20:38:18Z","updated_at":"2018-10-30T08:34:24Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nWe've been seeing a huge number of rollbacks occurring in our \"Production\" deployment of our app. When I say huge, I mean in thousands.\r\n\r\n![screen shot 2018-10-18 at 4 41 36 pm](https://user-images.githubusercontent.com/4935809/47182960-dc9e1180-d2f4-11e8-8bc3-3e3e98ee8f7d.png)\r\n\r\nAs you can see, we never see any of kind of rollbacks in our Staging environment. Our logs from Sentry suggest show that most of these rollbacks occur because of these error: \r\n\r\n```\r\nError: Cannot perform diff-update.\r\n  at ? (/www/plugins/cordova-plugin-code-push/bin/www/localPackage.js:360:46)\r\n  at onloadend(/www/plugins/cordova-plugin-code-push/bin/www/fileUtil.js:232:25)\r\n  at readSuccessCallback(/www/plugins/cordova-plugin-file/www/FileReader.js:164:27)\r\n  at readSuccessCallback([native code])\r\n  at callbackFromNative(/www/cordova.js:291:63)\r\n  at nc2(/www/cordova.js:1042:39)\r\n  at d(/www/resources/raven.min.js:2:4572)\r\n```\r\n\r\n\r\n### Reproduction\r\n\r\nWe were unable to reproduce this bug in staging, unfortunately :cry: \r\n\r\nThis could probably be related to #356, because of the following reasons:\r\n\r\n* The first codepush release after an appstore release goes well and the rollbacks count is very low.\r\n* This problems seems to occur only after the second codepush release.\r\n\r\nAny advice as to get this to happen would be fantastic!\r\n\r\n### Additional Information\r\n\r\n* cordova-plugin-code-push version: `1.11.12`\r\n* List of installed plugins:\r\n\r\n```\r\ncard.io.cordova.mobilesdk 2.1.0 \"CardIO\"\r\ncode-push 2.0.6 \"CodePushAcquisition\"\r\ncom.idtech.unimag 0.2.4 \"unimag\"\r\ncom.swremote.BuildInfo 0.2.4 \"BuildInfo\"\r\ncom.swremote.Crypt 0.2.4 \"Crypt\"\r\ncom.swremote.MacAddress 0.2.4 \"MacAddress\"\r\ncom.swremote.Navigation 0.2.4 \"Navigation\"\r\ncom.swremote.UniMagPhoneGap 0.2.4 \"UniMagPhoneGap\"\r\ncordova-android-play-services-gradle-release 1.4.3 \"cordova-android-play-services-gradle-release\"\r\ncordova-android-support-gradle-release 1.4.4 \"cordova-android-support-gradle-release\"\r\ncordova-plugin-actionsheet 2.3.3 \"ActionSheet\"\r\ncordova-plugin-barcodescanner 0.7.0 \"BarcodeScanner\"\r\ncordova-plugin-camera 2.4.1 \"Camera\"\r\ncordova-plugin-code-push 1.11.12 \"CodePush\"\r\ncordova-plugin-compat 1.2.0 \"Compat\"\r\ncordova-plugin-console 1.1.0 \"Console\"\r\ncordova-plugin-customurlscheme 4.3.0 \"Custom URL scheme\"\r\ncordova-plugin-device 1.1.7 \"Device\"\r\ncordova-plugin-dialogs 2.0.1 \"Notification\"\r\ncordova-plugin-file 5.0.0 \"File\"\r\ncordova-plugin-file-transfer 1.7.0 \"File Transfer\"\r\ncordova-plugin-inappbrowser 1.7.2 \"InAppBrowser\"\r\ncordova-plugin-intercom 4.1.2 \"Intercom\"\r\ncordova-plugin-network-information 1.3.4 \"Network Information\"\r\ncordova-plugin-wepay 0.0.1 \"WePay\"\r\ncordova-plugin-whitelist 1.3.3 \"Whitelist\"\r\ncordova-plugin-zip 3.1.0 \"cordova-plugin-zip\"\r\nuk.co.workingedge.cordova.plugin.sqliteporter 1.0.5 \"sqlite porter\"\r\nuk.co.workingedge.phonegap.plugin.launchnavigator 4.2.1 \"Launch Navigator\"\r\n```\r\n\r\n* Cordova version: 7.1.0\r\n* iOS/Android/Windows version: iOS 9-11, Android 7\r\n* Does this reproduce on a debug build or release build? We were unable to reproduce this.\r\n* Does this reproduce on a simulator, or only on a physical device? No it does not :cry: \r\n\r\n\r\nAny help dealing with this problem would be fantastic! :bowing_man: "},"comment":{"url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/issues/comments/434214125","html_url":"https://github.com/Microsoft/cordova-plugin-code-push/issues/456#issuecomment-434214125","issue_url":"https://api.github.com/repos/Microsoft/cordova-plugin-code-push/issues/456","id":434214125,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDIxNDEyNQ==","user":{"login":"alexandergoncharov","id":13234108,"node_id":"MDQ6VXNlcjEzMjM0MTA4","avatar_url":"https://avatars1.githubusercontent.com/u/13234108?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandergoncharov","html_url":"https://github.com/alexandergoncharov","followers_url":"https://api.github.com/users/alexandergoncharov/followers","following_url":"https://api.github.com/users/alexandergoncharov/following{/other_user}","gists_url":"https://api.github.com/users/alexandergoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandergoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandergoncharov/subscriptions","organizations_url":"https://api.github.com/users/alexandergoncharov/orgs","repos_url":"https://api.github.com/users/alexandergoncharov/repos","events_url":"https://api.github.com/users/alexandergoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/alexandergoncharov/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T08:34:24Z","updated_at":"2018-10-30T08:34:24Z","author_association":"MEMBER","body":"Hi @krishnagopinath ,\r\nSorry for delay.\r\n\r\nYeah logs says that CodePush has issue with performing diff-update. It is strange because is is about the half of your users has installed update successfully.\r\n\r\nCould you please clarify have you tried to release one more release? Is behaviour same?"}}
{"actor":{"display_login":"alexandergoncharov"}}