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

2FA error: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: g.Id'. #3648

Closed
1 task done
averkiev opened this issue Jan 5, 2024 · 9 comments
Assignees
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment

Comments

@averkiev
Copy link

averkiev commented Jan 5, 2024

Steps To Reproduce

  1. Open BW login page
  2. Enter 2FA code
  3. Error is shown

Expected Result

Login into the application

Actual Result

Error is shown after entering 2FA code: An error has occurred. An unexpected error has occurred.

logs\identity.log shows the following error.
An unhandled exception was thrown by the application.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: g.Id'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)

Screenshots or Videos

No response

Additional Context

Version 2023.12.0

Githash Version

919d759-dirty

Environment Details

No response

Database Image

No response

Issue-Link

#2480

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@averkiev averkiev added bug bw-unified-deploy An Issue related to Bitwarden unified deployment labels Jan 5, 2024
@Krychaz
Copy link
Member

Krychaz commented Jan 5, 2024

Hello there,

Based on other reports this seems to be a new issue. I have passed this to our engineering team.

@brambaars
Copy link

As discussed with support via email, I experience the same. Logfiles were shared, in my case it's MySQL, but also no such column: g.Id in identity.log.

@brambaars
Copy link

brambaars commented Jan 10, 2024

For the time being, reverting to the previous version (tag 2023.12.0-beta) resolved the issue.
(spin up the container with bitwarden/self-host:2023.12.0-beta instead of bitwarden/self-host:beta)

My vault was emptied somewhere in the process though, but luckily I created an export before performing these actions.

@withinfocus
Copy link
Contributor

@brambaars can you pull the latest from main and give this a try? We made a modification to the database migration.

@brambaars
Copy link

brambaars commented Jan 12, 2024

@withinfocus thanks for working on this!
I spun up bitwarden/self-host:beta again, and am back to 2024.1.0. The latest files were pulled from bitwarden/self-host.
(I'm not sure how else I would perform your exact request, pulling latest from main; I may be in over my head here...)

Now, logging in on the web vault, results in the "unknown error" immediately after entering my password, before entering the 2FA code.

identity.log shows:

An unhandled exception was thrown by the application.
MySqlConnector.MySqlException (0x80004005): Unknown column 'g.Id' in 'field list'

@averkiev 's log mentions Sqlite though, while I'm running from MySql, as you can see in my log.

@averkiev
Copy link
Author

averkiev commented Jan 13, 2024

@withinfocus , my container has been upgraded to the latest version of bitwarden/self-host:beta. Now I'm seeing the following error in the admin.log

2024-01-13 06:56:26.693 +00:00 [INF] Migrating database. 2024-01-13 06:56:29.019 +00:00 [ERR] Failed executing DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30'] INSERT INTO "ef_temp_Grant" ("Id", "ClientId", "ConsumedDate", "CreationDate", "Data", "Description", "ExpirationDate", "Key", "SessionId", "SubjectId", "Type") SELECT "Id", IFNULL("ClientId", ''), "ConsumedDate", "CreationDate", IFNULL("Data", ''), "Description", "ExpirationDate", "Key", "SessionId", "SubjectId", IFNULL("Type", '') FROM "Grant";

For the time, I've reverted the container to self-host:2023.12.0-beta. With that version, I'm able to login.

@potrusil
Copy link

I also have the unified deployment with SQLite and went through the same loop (upgraded to 2024.1.0-beta and then back to 2023.12.0-beta). Today I tried the latest beta (which I assume is 2024.1.1) and everything works flawlessly. I can log in and edit entries, and there are no errors in the logs!

@averkiev
Copy link
Author

Upgrading to 2024.1.1 has fixed the issue for me.

@brambaars
Copy link

brambaars commented Jan 21, 2024

Glad it's fixed for Sqlite!
I keep getting MySQL errors. I'll try a clean install...

@withinfocus withinfocus self-assigned this Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment
Projects
None yet
Development

No branches or pull requests

5 participants