Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database is not getting updated #3

Closed
2 of 5 tasks
asandikci opened this issue Jan 22, 2025 · 15 comments · Fixed by #6
Closed
2 of 5 tasks

Database is not getting updated #3

asandikci opened this issue Jan 22, 2025 · 15 comments · Fixed by #6
Labels
ASAP bug Something isn't working help wanted Extra attention is needed

Comments

@asandikci
Copy link
Member

asandikci commented Jan 22, 2025

Database is not getting updated because could not connect to divested.dev. Database server can be changed as mentioned in Divested-Mobile#101 to Cloudflare mirror but it is also not working. Even if it works we should not relay on it if we want to keep this app stable

TODO (draft)

  • understand what Hypatia needs to get from website
    • Network connections will be made to the following: [https://divested.dev/MalwareScannerSignatures/hypatia-*-bloom.bin{,.sig}](https://divested.dev/MalwareScannerSignatures/hypatia-*-bloom.bin%7B,.sig%7D)
      Statistics & generation output of the current database is available via https://divested.dev/MalwareScannerSignatures/
    • learn how to create BloomFilters
    • create a pipeline to automatically create Filters & checksums
  • Open a new website (or use any other service: GitHub Repo? Any other alternative?) Likely with a CDN?
  • update default database server address in app
@asandikci asandikci added bug Something isn't working ASAP labels Jan 22, 2025
@asandikci asandikci pinned this issue Jan 22, 2025
@asandikci
Copy link
Member Author

Info: if you wait 3+ minutes cloudflare link shows a backup of files. Maybe we can get files/understand mechanism from there

@asandikci asandikci added the help wanted Extra attention is needed label Jan 22, 2025
@asandikci
Copy link
Member Author

Tried to understand code but couldn't get it. I'm not a Android dev, help wanted

@asandikci
Copy link
Member Author

@asandikci asandikci linked a pull request Jan 23, 2025 that will close this issue
@Rosika2
Copy link

Rosika2 commented Jan 25, 2025

Hi all, 👋

I have the same problem.

On my smartphone Samsung Galaxy A04s hypatia (3.14) used to work fine.
As of late however it cannot update its database. A 404 error is thrown at me.
I uninstalled and re-installed hypatia ... with the same result.
But now it has no database and still cannot get it updated. So it cannot scan anything anymore.

Using the cloudflare mirror option from the database override option has no effect either. 😦

What´s there left to do ❓

Many thanks in advance and cheers from Rosika 🙂

@Rankomnaut
Copy link

Rankomnaut commented Jan 26, 2025

I do have the same problem like Rosika above me.
Yesterday I noticed the 404 error on normal updates and definitive error on mirror.

Re installed and now nothing works since there's no database.

Please help "."

@kevinmoilar
Copy link

Same. For default and cloudflare.

@asandikci
Copy link
Member Author

I'll try to understand to how to generate database signatures when I get a chance. We'll serve a webserver/cdn to download these later. But no promise, still trying to understand codes...

@DrippySnuffelz
Copy link

DrippySnuffelz commented Jan 26, 2025

Same ...database not loaded - goes for both mirrors - Samsung S23 - Android 14 - Jan. Patch lvl

Datenbank(en) nicht verfügbar. Schadsoftware-Prüfung nicht möglich…
Schadsoftware-Prüfung startet…
3 464 Dateien sind zur Schadsoftware-Prüfung vorgesehen

Datenbank(en) nicht verfügbar. Schadsoftware-Prüfung nicht möglich…

3 Datenbank(en) wird/werden aktualisiert…
hypatia-md5-bloom.bin.sig
Datenbank(en) nicht heruntergeladen. Fehlernummer 404

hypatia-sha1-bloom.bin
Datenbank(en) nicht heruntergeladen. Fehlernummer 404

gpg.key
Datenbank(en) nicht heruntergeladen. Fehlernummer 404

hypatia-md5-bloom.bin
Datenbank(en) nicht heruntergeladen. Fehlernummer 404

hypatia-sha1-bloom.bin.sig
Datenbank(en) nicht heruntergeladen. Fehlernummer 404

hypatia-sha256-bloom.bin
Datenbank(en) nicht heruntergeladen. Fehlernummer 404

hypatia-sha256-bloom.bin.sig
Datenbank(en) nicht heruntergeladen. Fehlernummer 404

Alle Datenbanken wurden aktualisiert!
Schadsoftware-Prüfung startet…
0 Dateien sind zur Schadsoftware-Prüfung vorgesehen

Datenbank(en) nicht verfügbar. Schadsoftware-Prüfung nicht möglich…

@asandikci
Copy link
Member Author

asandikci commented Jan 26, 2025

created one of the signature databases (clamav, md5, ~4M)
see: https://github.com/MaintainTeam/HypatiaDatabases
you can install latest version in Releases Section

@DrippySnuffelz
Copy link

created one of the signature databases (clamav, md5, ~4M) see: https://github.com/MaintainTeam/HypatiaDatabases you can install latest version in Releases Section

Database s are loading - scanning is working

Bug is fixed for me - nice Job Asandikci

@Rosika2
Copy link

Rosika2 commented Jan 28, 2025

@asandikci :

Hi and thanks for your work. 👋

I´m not quite sure how to proceed, however.
I´m already on hypatia (3.14) but the database is still not loading. Do I have to uninstall hypatia and then re-install it?

I´m a bit at a loss here.

Thanks for your help.

Many greetings from Rosika 🙂

@asandikci
Copy link
Member Author

asandikci commented Jan 28, 2025

@Rosika2 if you want to use this one, yes, you should uninstall previous one and install this one. It has different package name even if display names are same.
edit: Actually don't have to uninstall previous one, idk why I said that previously. Replied quicly in phone...

@Rosika2
Copy link

Rosika2 commented Jan 28, 2025

@asandikci :

Thanks for your help. ❤

O.K. I uninstalled the existing hypatia app and installed it via my obtainium app with https://github.com/MaintainTeam/Hypatia/releases as source.
It worked well and version 3.14 is now installed as the latest release.

I could update its database now and perform a scan. Great 👍

Its output said:

Datenbanken mit 4.155.891 Signaturen geladen # signatures loaded
[...]
Keine Schadsoftware gefunden # no malware found
Überprüfung nach 186 Sekunden abgeschlossen # scan ended after 186 seconds.

But it also said:

Der Selbsttest ist fehlgeschlagen # self-test failed

Why would that be ❓

Cheers from Rosika 🙂

@asandikci
Copy link
Member Author

asandikci commented Jan 28, 2025

@Rosika2 As you can see there is only ~4M signatures exist. As warned in release notes, we only generated clamav databases right now (all signatures ~7M+). So other databases (probably includes self-test) are not exist for now. This problem should be solved after other databases generated too. We are working for this. It shouldn't be a problem at least for a time because main purpose of app is not catching own test file. Its catching malwares and this should be functional right now

@Rosika2
Copy link

Rosika2 commented Jan 29, 2025

@asandikci :

thanks for your feedback and explanation. I get it now.
O.K., then. No problem at all. I was just interested in the explanation. 😊

This problem should be solved after other databases generated too. We are working for this.

Great. Just take your time with it. The main thing is:

Its catching malwares and this should be functional right now

Splendid. Thank a lot for your work. 👍

I see you included the hint:

SELF TEST FILE NOT INCLUDED YET, IT'S KNOWN

on the release page for version 3.14.
It´s highly appreciated.

Thanks again and many greetings from Rosika 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASAP bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants