seiichiro0185 / sailotp

A Sailfish Google Authenticator Implementation
https://www.seiichiro0185.org/sailfish:apps:sailotp:start
Other
49 stars 24 forks source link

Token list empty #64

Closed wvh closed 1 year ago

wvh commented 2 years ago

Hello,

I opened SailOTP this morning and the home screen with token list is empty. The SQLite3 database is present and has all 10 or so tokens in it. The mini view in the Sailfish task list shows one random token, so it seems SailOTP can read its database. I can add a new token which will appear in the database, but the list remains empty, so there's no way to view the actual OTP pin codes.

Restarting or rebooting doesn't solve the issue.

Thanks for any pointers!

wvh commented 2 years ago

The following log line appears whenever the home screen is shown:

Aug 29 11:12:13 Sailfish harbour-sailotp[4768]: [W] unknown:78 - file:///usr/share/harbour-sailotp/qml/harbour-sailotp.qml:78: Error: Cannot assign QString to int
wvh commented 2 years ago

I think I fixed it by setting diff to 0 on all records:

update OTPStorage set diff = 0;

The field was empty for all records. It should return 0 anyway as it's the default, but perhaps there's some type issue.

simonschmeisser commented 1 year ago

I have an empty list as well. However for me the task switcher view is also empty. I haven't researched how to check the sqlite db yet

seiichiro0185 commented 1 year ago

This seem to be two issues. The one @wvh reported seems like a broken database migration at some point, which was fixable by doing the migration step manually. I haven't seen this myself and haven't heard of this otherwise, so I won't look into it further at the moment. The other Issue @simonschmeisser reported is caused by changes around Sailjail, a fix for that is discussed in #73 .

Since @wvh could fix the issue I'll close here and go on with fixing the Sailjail-Issue in #73