-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Cannot view old TOTP entries on latest Docker Image #71
Comments
Hi. |
Hi, This is the log:
Thanks |
Please make sure you have a backup of your db in a safe place, then try running the following artisan command: php artisan 2fauth:fix-unsplitted-accounts |
This is the result: "0 inconsistent accounts found Nothing to fix" |
Ok thanks. The error in the log probably occurred during the migration of the database, but in this case no record is supposed to be deleted, just ignored. Do you have the ability to get the |
Yes, it's empty. I checked the old sqlite (I have a backup) and all the entries are there, so it's something that happens during the migration which corrupts the file |
Can you try this:
If this is a design bug the error should occurred again. |
This happened again:
|
With or without Another question: Do you use db encryption in the 2FAuth settings? |
Without logging in/ I don't think I activated the encryption. The values in "twofaccount" are in clear text |
Can you copy/paste the shell output when you start your container please. thx |
Running version latest commit 8944fae built on 2022-05-10T13:38:58Z In Connection.php line 712: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint fai In Connection.php line 501: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint fai Running version latest commit 8944fae built on 2022-05-10T13:38:58Z |
Hi |
It is not empty, but filled with NULL? I don't have made an backup before updating (had to fix the same issue #68 (comment) ), but I have my TOTPs in Google Authenticator, so I should be fine "restoring" them if I can scan/upload them this time and not have to add them manually. 😉 But this should be fixed fast so others don't lose their TOTPs. |
I second this. I don't think everyone has a backup of some sort. Maybe it would be better to restore the previous version until this is fixed... |
I'm working on it |
@Lysuo Do you have the full digest? |
Yes it's
|
Thanks. Does anyone know if it's possible with a free docker hub account to rollback an image? |
Found this, which sais it is not possible. And I've already wondered about only one "latest" tag. As I quote from the source above:
|
The ci actions written by @qdm12 is supposed to handle the creation of tags based on the release number but something went wrong apparently. Or I missed something. Don't know. |
I pushed the working image I have to my account on docker hub: |
And why is this issue being closed? You now uploaded an "old" version on docker hub, so people hopefully won't lose their database, but this not fixed lognterm in the latest v3 version yet, or am I wrong? |
Automatically closed by GH as the issue is referenced in the commit message. I was able to reproduce the migration error, this was a design issue (only for sqlite setup) so I pushed a fix for the v3. The updated image on dockerhub is not a rollback but an update to v3.0.1 (the github release is coming) Unfortunately, for people who encountered the error, the only way to get data back is to restore a db backup, this cannot be restored with the previous image. Sorry for that. |
Ok, my misunderstanding. @Lysuo uploaded an old image
And I read issue closed, not closed this in 42c3bd8 🙄 By this, I was confused and thought you also uploaded the old image. But because I was wrong, great job of you. 👍 |
You are welcome 😃 I will also try to push Lysuo's image to docker hub to have a v2 tag (for the record) but my priority for yesterday was to fix the |
Describe the bug
After updating to v3.0, I am unable to access my old TOTP entries.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Access TOTP entries from before the upgrade.
Screenshots
If I restore the database and the browser remembers my previous session, I am able to see the entries, but when I click on any one of them, I get the following error:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: