-
Notifications
You must be signed in to change notification settings - Fork 496
Update date missmatch #1516
Comments
@hackfix We've had a couple of cases where the device date went into the future and back, which caused issues with the exposure check history. This might be the cause in your case. |
here's the requested file: |
@hackfix
and all the other records show The actual data stored by Google is not accessible by other means (unless you have a rooted device), so it's not possible to diagnose the problem any deeper using what the standard user interfaces tell you. If this were my device I would uninstall CWA and reinstall it. Uninstalling CWA causes all key data to be deleted. The FAQ suggests trying resetting the app first before uninstalling it. I would follow that advice, but I don't expect that will fix the issue. If you want to wait and see if somebody else gives you different advice, you could in the meantime reply with:
|
@MikeMcC399 I followed the FAQ and reset the app but that did not fix the issue. Exposure Notifications Version on my device is 17203915000 Any other ideas what else I can check? |
@hackfix Your Google ENS with 17203915000 is up-to-date. That is good! There was a bug quite a while back #744 leading to an incorrect display of "keyCountkey":0 and users reported that this was fixed in 15202902002 in July 2020. The fix was in ENS Version 1.5 (from the first two digits 15 of the version number) and you already have Version 1.7 (first two digits 17). You have also said: Could you please add the information about your device make and model? If your device has any function like device care you could run it to check for hardware issues like low memory. |
@hackfix The app is not officially supported on rooted devices, although there are some people successfully running the app on a rooted device. (See https://www.coronawarn.app/en/faq/#rooted_devices.) One of them might possibly jump in here, but I personally don't have experience with rooted devices, and apart from suggesting a factory reset on your device, I don't know what else I could recommend here. Sorry for that! |
@MikeMcC399 CWA worked until Sep 24th - so I guess rooting is not causing the troubles. |
The discussion in #1238 which discusses the files may help you to understand a bit more. Also, since you have a rooted device, you can use https://github.com/mh-/corona-warn-companion-android/blob/master/README.md which is available from the Google Play Store https://play.google.com/store/apps/details?id=org.tosl.warnappcompanion to check from a different app what might be going on. |
One more thought: On an emulated Pixel 3a device running Android 11 I have seen the same result that you are getting on your Samsung S5 mini. Android 7.1. That is to say, Use Exposure Notifications is on (switch is on the right), no text "Last checked for potential exposure today .... " is displayed despite "xx checks in the past 14 days" showing, together with "Number of keys" 0 when viewed directly in the UI and I wouldn't expect CWA to work correctly in the emulator, in fact Android 11 is the first version where it doesn't produce a fatal error in an emulator, however it is interesting that your results are identical. I wish I knew if it can be solved on your device! |
I have a similar issue: Android Version: 10 It indicates no risk exposure for today (yesterday it were 5), but google exposure notification tells something different, still 5. |
Hi @masema67 It looks like you have a problem which is a subset of what was reported in this issue.
This is the hot topic covered by #1084. There is a workaround from @daimpi described in #1084 (comment) which involves setting the date back one day, resetting the app, then setting the date back to today. I'm not sure if resetting the app will also cure the discrepancy about the number of risk encounters. Let us know the results if you decide to reset. |
@masema67 your log and CWA display not matching is indeed curious. Have you tried closing and re-opening CWA? If this doesn't help you might be experiencing #1210, the reasons for which are a total mystery afaik. Would be interesting to know what your app and log shows tomorrow, feel free to mirror your description over at #1210. |
@MikeMcC399 |
@daimpi |
Thanks for confirming this. My guess is that you're indeed experiencing something like described in #1210. Btw: now that you reset the data in CWA and played around with the date, did your CWA perform a new check after the reset? If this is the case, is the new timestamp shown in CWA and could you also share your new EN log here? |
@daimpi |
@masema67 this is indeed very curious. If we look at the two EN log entries from today, they both contain the same number of diagnosis keys (DKs) but a different hash (but tbh since CWA 1.5 I have no clue how the Android hashes are generated):
So the good news is: your EN log and CWA are now both in agreement again after the reset. But why the discrepancy happened in the first place: no clue… finding the root cause of this would probably solve the mystery of #1210. |
@daimpi |
@daimpi @MikeMcC399 |
You could well be right. I'm looking at something else though related to your issue: The issue reported by @daimpi in #1084, regarding the stuck retrieval of a test result, is the same as part of your problem. It is labelled with internal ID EXPOSUREAPP-2398. Now the fix for that is #1481 which says "Cannot delete tests older than 21 days - DE: Tests die älter als 21 Tage sind, können nicht gelöscht werden (EXPOSUREAPP-2398)". And that fix is in preparation for the release of version 1.6. From your two screen shots before and after resetting CWA, the status has gone from "Datenabruf ... Das Ergebnis wird aktualisiert TEST ANZEIGEN" to "Ihr Ergebnis liegt vor Befund negativ". So your problem doesn't seem to have been caused by a test having been removed from the server because it was more than 21 days old. Can you say how old your test was (when tested, when you heard the result)? It might be good to get a new issue opened on this topic. I hope @daimpi will let us know what he thinks as well. Also, I'm wondering if the Open Source team is able to say when version 1.6 will be released. |
My assumption was that @masema67 just added his new test after the old one was deleted by the reset and immediately got the result… but maybe that's not the case? @masema67 could you clarify whether you added a new test after removing the old one? |
@MikeMcC399 @daimpi |
@daimpi |
Thank you for filling in the details! The date October 18, 2020 is 21 days ago, so I would expect the test data to now be deleted from the server. (See https://www.coronawarn.app/assets/documents/cwa-privacy-notice-en.pdf Section 9 b.) It looks like you just pulled the results on the last available day, yesterday Nov 8, 2020.
I would not expect the ENS log to change for yesterday Nov 8, 2020. Those values are written in the log and they will stay there until they are aged out by ENS after 16 days (or if you uninstall the app). |
@MikeMcC399 |
It's curious that you were even able to add an old test again. This shouldn't have been possible according to @thomasaugsten's comment here:
I wonder why this worked for you nevertheless 🤔. The second curiosity is about the hashes. Looking at your most recent EN log entries we have
The hash from My guess is that if we found out why the hash changed this would probably bring us a good step closer to solving the mystery of why |
@daimpi |
I have analyzed the problem on my device a bit more detailed and I found out that CWA stops half way during exposure data update. First of all - the app on my device is able to communicate with the CWA servers. Here are the API requests from my device:
After that no further requests are sent to the server and CWA reports "Updated: Today 09:45". No error - nothing. According to the CWA server documentation the app should now fetch the diagnosis keys (e.g. https://svc90.main.px.t-online.de/version/v1/diagnosis-keys/country/EUR/date/2020-11-05). But that does never happens.... I can manually download the diagnosis keys via a web browser without any problems. As reported in my initial post I got exposure data update until September 24th. Maybe many users are affected by the same problem but they don't notice it because no error message is displayed. |
@hackfix In #1459 (comment) I asked about silent failure issues and the Open Source team replied in #1459 (comment) (@thomasaugsten) and #1459 (comment) (@d4rken). Those comments may possibly tie in with your findings about silent failure. |
I installed the latest update of CWA (-> 1.6) but it didn't fixed the issue on my device... I could imagine that some other users are having the same issues as me. But most of them do not know this because there's no error message that comes up. So they don't know that CWA is not able to warn them. |
Dear @hackfix, the CWA version 1.7 is coming up, we will monitor if the problem persists. UPDATE: Regarding the update to CWA 1.7: Please note that it is a staged rollout. Over the next two days, 100% of the users should have received the update. We would appreciate very much your feedback regarding this issue over the next few days! Best wishes, Corona-Warn-App Open Source Team |
I installed the latest update of CWA (-> 1.7.1) but it didn't fixed the issue on my device. I may have found something strange: After an exposure update no database files are created in the following path:
Is my guess right that there should be at least on database file (.ldb)? |
Update on #1516 (comment) (5 exposures / CWA reports 0) updated in EXPOSUREAPP-2872. |
@hackfix I have seen the Google Exposure Notification System get into a strange state on one of my test devices and the only way I could recover was to uninstall CWA and re-install CWA. Of course this loses all the stored keys, so this would be the last resort if no other action helped. |
@MikeMcC399: thanks for your feedback! No - checks older than 16 days are cleaned up automatically. Trust me - I have re-installed CWA several times.... |
@hackfix I had the same issue with one device (see #2061) and the only way I found to solve it was by a factory reset. There was something going wrong with the broadcasts between the Google ENS and the CWA app but we didn't really find a root cause or a bug to be fixed. |
@hackfix Do you still experience the same issue? We have a similar report today. Thanks for the feedback. |
@dsarkar |
@MikeMcC399 Thanks. Corona-Warn-App Open Source Team |
Hello,
I use CWA 1.5.1 under Android 7.1 and the CWA app indicates a regularly exposure data update as shown in this screen shot (which I took today):
But in Settings -> Google -> COVID-19 exposure notifications it shows "Last checked for potential exposure 24 September at 7:02":
Battery optimization is already disabled (-> CWA) and BT is enabled. I do open the app at least twice a day to make sure it is working correctly and gets the latest updates.
Now I'm wondering why these two dates do not match. It seems to me something is going wrong.
Has anyone else also noticed something like this?
Thanks,
hackfix
The text was updated successfully, but these errors were encountered: