Viewing error logs for rollbacks
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:

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?
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 did you manage to find a viable alternative?
@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.
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.
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.
Bump 😂
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.
Bump for good laughs
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
I think the most sensible thing to do is to add an option to disable rollbacks.
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: @.***>
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];
....
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
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.
Bump
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.
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.
bump
bump
bump