Divested-Mobile / Hypatia

A realtime malware scanner
GNU Affero General Public License v3.0
495 stars 45 forks source link

Database update issue #34

Closed E0697 closed 1 year ago

E0697 commented 1 year ago

Since v2.31 came out, the Android databases always fail to download:

Android.hdb.gz Failed to download, check logcat

Android.hdb.gz.sig Failed to download, check logcat

Android.hsb.gz Failed to download, check logcat

Android.hsb.gz.sig Failed to download, check logcat

In addition to those, a fifth file usually fails to download, sometimes a database, sometimes a signature. It's not constant.

Logcat

SkewedZeppelin commented 1 year ago

Are you able to access the divested.dev website in a browser when you get that error?

E0697 commented 1 year ago

Yes, it loads normally.

E0697 commented 1 year ago

This has been consistently the fifth file failing to download: daily.hsb.gz.sig

Moonstone3010 commented 1 year ago

I have the same problem with version 2.32. The first five files cannot be downloaded.

SkewedZeppelin commented 1 year ago

How old is your device? Is it pre Android 7.1.2?

I strongly suspect this isn't an app issue, but a server issue. I recently switched to ecdsa keys to reduce server load and perhaps older versions can't handle that.

E0697 commented 1 year ago

Mine is Android 12.

Moonstone3010 commented 1 year ago

Mine is Android 12.

Same here.

SkewedZeppelin commented 1 year ago

I see no errors on the server end.

If you can download some databases but not others that rules out the certificate change.

The download handling code also hasn't changed in a long while.

I've slightly increased the rate limits on the server, please let me know if it still happens. If it does try to open the divested.dev website in a browser within a 30 second window of the error and see if it loads or not.

E0697 commented 1 year ago

Same thing. The website loads normally.

I just tried disabling the Daily and Main databases and it actually worked without any issues. If I enable them back (either one or both) it fails again.

E0697 commented 1 year ago

If I check the Download over Tor option, the app hangs app for a while. The system says it's not responding. If I wait however, it eventually responds.

This decreases the number of failed downloads to one, mostly.

SkewedZeppelin commented 1 year ago

Oh interesting, with the defaults I can't reproduce. But with an extra database like main or daily I see the error. Will try and fix.

edit: I see the issue, will fix.

SkewedZeppelin commented 1 year ago

A new build is up on my repo with this issue fixed. It should land on official F-Droid repo in a few days.

Thanks for the reports!

E0697 commented 1 year ago

Thank you too!