Huessenbergnetz / Chennzeihhan

Offline Car License Plate Database for Sailfish OS
http://www.buschmann23.de/entwicklung/anwendungen/chennzeihhan/
Other
3 stars 0 forks source link

Database could not be found after downloading #3

Open explit7 opened 6 years ago

explit7 commented 6 years ago

When the App starts for the first time, there is of course no database there. If i go to the setting and check for the new Database - it found Version 16, and i could download it. After downloading, if i go back - the app tells - there is still no database there. Openning the Setting page again - tells, that database version 16 is there.

SailfishOS 2.1.4.14 / Sony Xperia X

PS: SailfishOSm 2.2.0.29 / Sony Xperia X- same problem

buschmann23 commented 6 years ago

Have you tried to restart the application?

explit7 commented 6 years ago

yes, many times

buschmann23 commented 6 years ago

Will look into after finishing all the GDPR stuff for customers...

deelkar commented 4 years ago

I have the same problem when the database.gz did not correctly download so it would not unzip apparently. Only workaround I found was use an already unzipped database from another sailfish device.

Olf0 commented 4 years ago

Analysis of this issue

The database file is correctly downloaded and gunzipped by Chennzeihhan 1.3.0, but still carries the extension .gz after that: Chennzeihhan 1.3.0 misses to remove it after downloading and unpacking, but when trying to use it, it looks for this file without the .gz file name extension.

Temporary, manual fix

To fix this, in ~/.local/share/harbour-chennzeihhan/ rename carplates.sqlite.gz to carplates.sqlite

Suggestion for a proper fix

Change Chennzeihhan to automatically remove the .gz extension from the database file name, when (or after) gunzipping.