react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Viewing error logs for rollbacks

Open ryanvanderpol opened this issue 8 years ago • 44 comments

We are disabling CodePush in our production iOS and Android apps because we have seen continuous instability with our OTA updates and no way to view logs or diagnose the reasons for these rollbacks. We will consider coming back if logs are made available so that we can accurately determine the cause of rollbacks and address them.

Here is the history table for the last couple weeks for one of our iOS apps:

image

I've brought this up across several different threads and every time the issues are closed and I am told that "it's being tracked elsewhere" but there no one can give me any indication of where "elsewhere" is or when we can expect to get these logs. I am DEFINITELY not going to use AppCenter until this is resolved.

When can we expect logs for rollbacks to be available?

ryanvanderpol avatar Dec 05 '17 17:12 ryanvanderpol

Hey I got a notification about this old thread. I stopped using CodePush back 3-4 years ago for my project at the time and since then I've recommended on all other projects to avoid it, referencing this issue.

Unbelievable how it is still not addressed.

adbl avatar Jun 02 '21 21:06 adbl

@adbl did you manage to find a viable alternative?

CyberMew avatar Jun 02 '21 23:06 CyberMew

@CyberMew Honestly, just roll out through standard app store processes. It's worth the extra effort to eliminate untraceable bugs that ultimately end in lost users or support tickets.

jbcullis avatar Jun 03 '21 22:06 jbcullis

Yeah, I would never use it for anything except to roll out some emergency fix where the app is really broken and the uncertainty is worth the speed benefit. OTOH in that rare moment you have forgotten your CodePush routines causing even more stress.

adbl avatar Jun 03 '21 23:06 adbl

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Dec 13 '21 17:12 ghost

Bump 😂

adbl avatar Dec 13 '21 17:12 adbl

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Feb 12 '22 01:02 ghost

Bump for good laughs

adbl avatar Feb 12 '22 10:02 adbl

When looking at the thread, it's sad that after all the time there still no way to figure reasons of rollbacks out. We're not able to finish the integration of CodePush due to rollbacks and it's not clear why.

https://github.com/microsoft/react-native-code-push/issues/2020#issuecomment-1048186521

shllg avatar Feb 22 '22 20:02 shllg

I think the most sensible thing to do is to add an option to disable rollbacks.

williamgurzoni avatar Feb 22 '22 20:02 williamgurzoni

just get rid of react native code push,

Feng Qijun

On Wed, Feb 23, 2022 at 4:33 AM Sascha @.***> wrote:

When looking at the thread, it's sad that after all the time there still no way to figure reasons of rollbacks out. We're not able to finish the integration of CodePush due to rollbacks and it's not clear why.

#2020 (comment) https://github.com/microsoft/react-native-code-push/issues/2020#issuecomment-1048186521

— Reply to this email directly, view it on GitHub https://github.com/microsoft/react-native-code-push/issues/1099#issuecomment-1048188199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABCJOTUR4KJCONRVCUGAADU4PXKJANCNFSM4EG2WB4Q . You are receiving this because you commented.Message ID: @.***>

jun1st avatar Feb 23 '22 07:02 jun1st

I think the most sensible thing to do is to add an option to disable rollbacks.

@williamgurzoni Here is a good (and long) discussion where is explained why it's not a good idea to disable automatic rollbacks: https://github.com/Microsoft/react-native-code-push/issues/880#issuecomment-342797994


The question is, why CodePush marks an update download as done but after restart, it is still marked with updateIsLoading. My ObjC skills are not good enough to figure it out by code and - as this ticket states - there are no further logs present to get any hints.

FYI in our case, the log message is generated here:

https://github.com/microsoft/react-native-code-push/blob/master/ios/CodePush/CodePush.m#L404

But it's obviously not the point of failure. Somewhere the update is loaded and marked as updateIsLoading.

NSDictionary *pendingUpdate = [preferences objectForKey:PendingUpdateKey];
   if (pendingUpdate) {
       _isFirstRunAfterUpdate = YES;
       BOOL updateIsLoading = [pendingUpdate[PendingUpdateIsLoadingKey] boolValue];
       if (updateIsLoading) {
           // Pending update was initialized, but notifyApplicationReady was not called.
           // Therefore, deduce that it is a broken update and rollback.
           CPLog(@"Update did not finish loading the last time, rolling back to a previous version.");
           needToReportRollback = YES;
           [self rollbackPackage];
   ....

shllg avatar Feb 23 '22 09:02 shllg

FYI: I patched the iOS code. At least for our mentioned issue, we have a working code push cycle now:

https://github.com/microsoft/react-native-code-push/issues/2020#issuecomment-1048696343

shllg avatar Feb 23 '22 11:02 shllg

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Apr 24 '22 13:04 ghost

Bump

SYoder1 avatar Apr 27 '22 14:04 SYoder1

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Jun 26 '22 17:06 ghost

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

ghost avatar Jul 11 '22 18:07 ghost

bump

abhishekgoel101 avatar Aug 29 '22 17:08 abhishekgoel101

bump

Acetyld avatar Nov 01 '22 17:11 Acetyld

bump

vjerryv avatar Feb 25 '23 13:02 vjerryv