Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Compatibility issues on iOS 14.2 (b3) #1339

Closed
Mihahn opened this issue Oct 13, 2020 · 87 comments
Closed

Compatibility issues on iOS 14.2 (b3) #1339

Mihahn opened this issue Oct 13, 2020 · 87 comments
Assignees
Labels
bug Something isn't working mirrored-to-jira This item is also tracked internally in JIRA

Comments

@Mihahn
Copy link

Mihahn commented Oct 13, 2020

On iOS 14.2 beta 3 there’s an error message as soon as you open up cwa. EN Code: 2. I hope this can be fixed asap.

Edit: it seems like every time I open cwa, it tries to fetch the keys but it doesn’t succeed. There are entries in the exposure checks in settings matching the times I opened cwa (5min ago, 7min ago, 9min ago etc.), but there are no “new files”.


Internal Tracking ID: EXPOSUREAPP-3272

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Oct 14, 2020

@Mihahn
Could you provide a Screenshot and the App Version here please?

@ftonat
Copy link

ftonat commented Oct 14, 2020

Same here.
1.3.2(0)
Uploading 28A508B7-615E-485C-BCC4-CAFB8D725249.png…

@ftonat
Copy link

ftonat commented Oct 14, 2020

91FF41F9-4B2E-4233-8344-AA7ED56EC086

@ndegendogo
Copy link
Contributor

ndegendogo commented Oct 14, 2020

According to Apple documentation, this error means bad parameters.
(sounds not so good, IMO)

Please check the ENF log if the check was done.
Edit: I just read again your report. This error seems indeed to block the check.

@thomasaugsten @svengabr

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Oct 14, 2020

@ndegendogo
I can't reproduce this Issue directly after Installing the Beta 3...
Everything works normal so hopefully/maybe this is only an Edge Case Error... Will report back if something changes, maybe @thomasaugsten would like to take a look at this?

@jkreileder
Copy link

I see this too. Initially getting the error mentioned above.

By now the error has changed to "Fehler 13: Ihre Risiko-Ermittlung für den heutigen Tag wurde bereits durchgeführt. [...]"
This is obviously false, the app still shows the last update before installing b3 as the last update timestamp. The exposure check log shows 0 new files for every check since then.

@ndegendogo
Copy link
Contributor

@jkreileder I recommend that you are patient till tomorrow....

@ndegendogo
Copy link
Contributor

ooops .... it is late today. I just wrote a completely unrelated statement here - it was meant for a different thread.
I have deleted it now. Sorry for the confusion.

@ndegendogo
Copy link
Contributor

hopefully/maybe this is only a Edge Case Error

@Ein-Tim hopefully, yes ...

@ndegendogo
Copy link
Contributor

@mihan @ftonat @jkreileder which iOS version were you running before you upgraded to this beta?
And cwa was running under that older version as expected?

@jkreileder
Copy link

@ndegendogo 14.2 beta 2. Worked flawlessly.

@TheJulianJES
Copy link

Can also reproduce this error after updating from iOS 14.2 Beta 2 to Beta 3. It worked fine on b2 previously.

@trispo
Copy link

trispo commented Oct 14, 2020

Can also reproduce this error after updating from iOS 14.2 Beta 2 to Beta 3. It worked fine on b2 previously.

Same here

@ftonat
Copy link

ftonat commented Oct 14, 2020

Went from iOS 14.2 b2 to b3
B2: cwa worked as expected
B3: error above occurred

@Mihahn
Copy link
Author

Mihahn commented Oct 14, 2020

@mihan @ftonat @jkreileder which iOS version were you running before you upgraded to this beta?
And cwa was running under that older version as expected?

Can also reproduce this error after updating from iOS 14.2 Beta 2 to Beta 3. It worked fine on b2 previously.

Same here!

@fsmeets
Copy link

fsmeets commented Oct 14, 2020

Same problem here after upgrading from 14.2 Beta 2 to 14.2 Beta 3. I uninstalled CWA and reinstalled it. Now it appears to be working again.

@Mihahn
Copy link
Author

Mihahn commented Oct 14, 2020

Same problem here after upgrading from 14.2 Beta 2 to 14.2 Beta 3. I uninstalled CWA and reinstalled it. Now it appears to be working again.

Same here, no error after reinstalling. But until now there's an unknown risk (old checks remain in Apple's Exposure Checks but there hasn't been a check since reinstalling the app, so I can't confirm everything's up and running again).

@cmittendorf
Copy link

cmittendorf commented Oct 15, 2020

Same problem here with app version 1.3.2 (0) after having updated to iOS 14.2 Beta 3.

I also noticed that clicking the "Mehr erfahren" button in the shown alert has no action. The alert window simply closes, as it does when selecting "OK".

Having opened the app a couple time for testing this, the message of the alert has now changed to "Fehler 13: Ihre Risiko-Ermittlung für den heutigen Tag wurde bereits durchgeführt. …"

@ndegendogo
Copy link
Contributor

@cmittendorf just for the record: which was your previous iOS version before this update?

clicking the "Mehr erfahren" button in the shown alert has no action

With such an error code ( 2 meaning bad params) there are not so many options what a user could do. Except reporting back to the project maintainers or the technical hotline... (and, you are right, this could be the advice here).

to "Fehler 13: Ihre Risiko-Ermittlung für den heutigen Tag wurde bereits durchgeführt. …"

with this error code you should be patient till tomorrow ...

You could try the procedure that helped other users here: delete and reinstall the app.
I would be curious to learn if it is sufficient for error 2 to kick the app out of background processing (swipe) and restart. (For error 13 I don't expect so). But I understand if you don't want to try this experiment because it means an extra day of delay.

@cmittendorf
Copy link

@ndegendogo The previous iOS version was 14.2 Beta 2. And I will simply be patient and wait till tomorrow …

@abro1i abro1i added bug Something isn't working mirrored-to-jira This item is also tracked internally in JIRA labels Oct 15, 2020
@jkreileder
Copy link

@ndegendogo Killing the app (or restarting the iPhone) didn't have an effect on error 2 and 13.
I'm now back at error 2 and the app complains about no update in 48 hours.

Error 13 might have been caused by opening the app too many times yesterday.
ENF log shows one entry from background activity (all others are from opening the app) last night with 0 new files.

@abro1i
Copy link
Member

abro1i commented Oct 15, 2020

Hey everyone,

I have created a Jira ticket EXPOSUREAPP-3018 for this issue so that the developers are notified.

Thanks again for your input!

Best regards,
ABB

Corona-Warn-App Open Source Team

@davidm2781
Copy link

It is possible that there has been a change between the release of the developer beta and the public beta (released early hours today DE time) but I am not seeing the same error. App opens fine with no errors (iPhone 11, iOS 14.2 Public Beta 3)

@jkreileder
Copy link

@davidm2781 the build number of developer beta 3 is 18B5072f. You can check the build number of the public beta in Settings/General/About, click on Software Version once to reveal the build number.

@GSTEFKA
Copy link

GSTEFKA commented Oct 15, 2020

can confirm 14.2 B3 (Developer BETA build 18b5072f) CWA Start results in Error EN Code: 2.
CWA on B2 Dev Beta worked fine.

@daimpi
Copy link

daimpi commented Oct 20, 2020

@thomasaugsten thanks for the clarification 🙂

@Blade4fame
Copy link

Blade4fame commented Oct 20, 2020

just updated to iOS 14.2 B4 and for me CWA working again. (With CWA 1.5.0)

@RalphRichter
Copy link

Keys are exchanged again. Full Log is visible in ENF Settings :-) iOS 14.2 B4 (18B5083a)

@sebastiancomsa
Copy link

Is that version already available, I don't see it in the software updates yet on my phone...

@Mihahn
Copy link
Author

Mihahn commented Oct 20, 2020

Is that version already available, I don't see it in the software updates yet on my phone...

Yes it is – until now it's developers only. But public beta should be released shortly after...

I still have a question: When beta 4 fixes the issue, will it download the exchanged keys of the last week since the app stopped working? Or was the whole background key exchange process broken and it'll start after updating to 14.2 beta 4 again? If that's the case, I assume that all contacts from the past 7 days weren't recorded?

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Oct 21, 2020

@Mihahn
I think the ENF didn't stop record your contacts so the App will download new Files and everything will work normal again (and all Encounters - also these in the last 7 days) are shown.

@ndegendogo
Copy link
Contributor

ndegendogo commented Oct 21, 2020

@Mihahn - just my 2 ct on your question ...

We have to distinguish two functions here:

  1. sending BLE beacons and recording the received beacons (RPI). This task is performed in iOS (component: ENF - exposure notification framework) permanently in the background. I don't expect that this function is affected by a call from the cwa app to this API with params that are not supported in your iOS version. However, the final statement on this should come from Apple.
  2. download keys (TEK) from the server and request a matching and risk calculation with the recorded RPI. This task is performed by a background task in cwa; and your (legitimate!) question is now, what is the impact of your gap of several days.
    a) downloading the daily keys: I assume this part was not even interrupted on your side. But in any case: cwa will download all missing keys of the past two weeks that are not already cached locally.
    b) matching the keys: cwa performs the API call to ENF with a list of 14 files, corresponding to the last 2 weeks. So it will catch up on any "postponed" matching.
    c) the background task, triggered daily: well, there are indeed reports of users that the background task sometimes stops working (see No background check within 24 hours or much longer... #916 and Check time is unreliable again (iOS issue, I guess) #1227). If this happens, open the app, it usually restarts the cwa background task.

And, finally: you can see the hash values of the key files for matching in the iOS settings ("Begegnungsmitteilungen") or in the json file export. And "somewhere in the internet" there is a list of the hashes of all key files published so far, so you can verify yourself that you did not miss any (I have to search the link again ...)

@daimpi iirc it was you who knows this link?

@svengabr
Copy link
Member

iOS 14.2 B4 did fix the original issue mentioned in the issue description so this Issue will be closed. The linked Jira issue is also marked as resolved.

You can continue the discussion here if you like but please open a new issue if there are any follow up topics.

Thank you for your understanding!

Best regards,
SG

Corona-Warn-App Open Source Team

@Mihahn
Copy link
Author

Mihahn commented Oct 21, 2020

@Mihahn - just my 2 ct on your question ...

Thank you – this is good news! I guess (a) wasn't working properly, as I got new entries in ENF every time I opened up the (broken) CWA app, but there weren't any "new files" downloaded. But as you said, with b4 it's up and running again and yesterday evening 14 new files were downloaded and I'm good to go. So thanks again for the information 👍

@ndegendogo
Copy link
Contributor

but there weren't any "new files" downloaded

Yes, ENF log is written by iOS. They don't know about cwa downloading the key files from the server. They are logging the files on which they perform the match.
It seems that error 2 aborted this API call very early, before the matching procedure.

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Oct 21, 2020

@ndegendogo
Here is the link you were searching for: https://ctt.pfstr.de/json/filehashes.json

@depate
Copy link

depate commented Oct 21, 2020

This is promising. My iPhone 7 is still stuck at 14.2 B3 and did not receive an update push, yet.

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Oct 21, 2020

@depate
I think you are using the Public Beta, iOS 14.2 Beta 4 has only been released to the Developer Betas at the moment

@depate
Copy link

depate commented Oct 21, 2020

You're correct. I missed that comment.
(Nice, linking to the actual issue comment is broken for me)

However, thanks for pointing that out for me again.

@zopyx
Copy link

zopyx commented Oct 21, 2020

I get this message after upgrading vom iOS 14.2b3 -> b4

The message makes little sense. It says "2 days effective within the last 2 weeks" but it has recordings of events from at least 8 days earlier.

IMG_2767

@daimpi
Copy link

daimpi commented Oct 21, 2020

@zopyx

The message makes little sense. It says "2 days effective within the last 2 weeks" but it has recordings of events from at least 8 days earlier.

This is fine in principle: the counter for the number of active days is something which CWA stores and this number can be easily changed if e.g. CWA data is reset. The important thing are the keys though and those are not stored in CWA but inside the Apple Exposure Notification Framework (ENF).
Did you have any ENF app (e.g. CWA) active 8 days ago? If so: the message should be fine.

@zopyx
Copy link

zopyx commented Oct 21, 2020

@zopyx

The message makes little sense. It says "2 days effective within the last 2 weeks" but it has recordings of events from at least 8 days earlier.

This is fine in principle: the counter for the number of active days is something which CWA stores and this number can be easily changed if e.g. CWA data is reset. The important thing are the keys though and those are not stored in CWA but inside the Apple Exposure Notification Framework (ENF).
Did you have any ENF app (e.g. CWA) active 8 days ago? If so: the message should be fine.

I am aware that this only a display/presentation issue. I've been running CWA all time across all 14.2 betas. Then the incompatibility with beta 3 popped up. At some point last week, I reinstalled the app and CWA with beta 4 give me this warning above..I am aware how to read it. It might be misleading to others...

@daimpi
Copy link

daimpi commented Oct 21, 2020

I am aware how to read it. It might be misleading to others...

Ah ok sry I misunderstood your point then. Yes this is indeed confusing. There are lots of issues which concern this display of "active days", imho it would make sense to just drop it and be done with it (other ENF apps also don't have this): corona-warn-app/cwa-wishlist#102
Feel free to upvote 🙂.

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Oct 21, 2020

@depate and all:
Apple now released iOS 14.2 Beta 4 via Public Beta too

@matthiasvogt
Copy link

Instant information, great!

@sebastiancomsa
Copy link

Just got the push for iOS 14.2 b4 and the app works again. The only interesting thing is that now it says I have 4 low risk encounters and the day before it stopped working I had 3. Is this right?image

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Oct 21, 2020

@sebastiancomsa
Yes this is pretty sure right because Error 2 just stopped the App from downloading new DKs (Diagnosis Keys) from the Server but not the scanning and tracing of your contacts. Now the App downloaded all DKs of the last 14 days and so noticed that there was antother encounter.

For more and detailed Information see @ndegendogo's comment here: #1339 (comment)

@cucemil
Copy link

cucemil commented Oct 21, 2020

i had the same exact issue. it is resolved in ios 14.2 beta 4 (now available for developers & beta testers, Germany)

@julianYaman
Copy link

iOS 14.2 Public Beta 4 solved the issue inside the app.
Exposure logging now seems to work like it should be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working mirrored-to-jira This item is also tracked internally in JIRA
Projects
None yet
Development

No branches or pull requests