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

🐛 [BUG] - Trying to change username crashes application #2131

Open
MerlinB opened this issue Nov 10, 2024 · 2 comments
Open

🐛 [BUG] - Trying to change username crashes application #2131

MerlinB opened this issue Nov 10, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@MerlinB
Copy link

MerlinB commented Nov 10, 2024

Description

I went to the user settings and tried to change my name with the application crashing as a result.
I am self-hosting via docker and disabled the authentication flow.

Reproduction URL

No response

Reproduction steps

1. Disable auth flow, use admin email and password env vars
2. Go to user settings
3. Try to change your name

Screenshots

No response

Logs

undb  | {"level":30,"time":1731187745505,"pid":7,"hostname":"9d6565ce95ea","module":"Auth","method":"GET","query":{},"path":"/api/me","requestId":"b1155295-dd44-43c7-9aa8-3c9c5cdfbec8","msg":"openapi request"}
undb  | ERR 116 |     expect(msg) {
undb  | 117 |         if (this[common_1.T]) {
undb  | 118 |             return this[common_1.Val];
undb  | 119 |         }
undb  | 120 |         else {
undb  | 121 |             throw new Error(msg);
undb  |                             ^
undb  | GraphQLError: not found table
undb  |       at expect (/usr/src/app/node_modules/oxide.ts/dist/option.js:121:23)
undb  |       at processTicksAndRejections (native:7:39)
undb  | 
undb  | ERR 116 |     expect(msg) {
undb  | 117 |         if (this[common_1.T]) {
undb  | 118 |             return this[common_1.Val];
undb  | 119 |         }
undb  | 120 |         else {
undb  | 121 |             throw new Error(msg);
undb  |                             ^
undb  | GraphQLError: not found table
undb  |       at expect (/usr/src/app/node_modules/oxide.ts/dist/option.js:121:23)
undb  |       at processTicksAndRejections (native:7:39)

Browsers

No response

@MerlinB MerlinB added the bug Something isn't working label Nov 10, 2024
@MerlinB
Copy link
Author

MerlinB commented Nov 11, 2024

I realised that the logged errors are probably unrelated to this - they pop up regularly and are caused by a query that looks for a table in the wrong space.

Even with debug logs enabled there is nothing suspicious.

undb  | {"level":20,"time":1731311864594,"pid":7,"hostname":"dfc97aa93613","module":"qb","query":"select * from \"undb_space\" where (\"undb_space\".\"deleted_at\" is null and \"undb_space\".\"id\" = ?)","params":["spa2mw6t"],"duration":0.15904200007207692,"msg":"kysely.query"}
undb  | {"level":20,"time":1731311864594,"pid":7,"hostname":"dfc97aa93613","module":"qb","query":"select * from \"undb_space_member\" where (\"undb_space_member\".\"user_id\" = ? and \"undb_space_member\".\"space_id\" = ?)","params":["gymwwkox3gegupuf","spa2mw6t"],"duration":0.1362409999128431,"msg":"kysely.query"}
undb  | {"level":20,"time":1731311864597,"pid":7,"hostname":"dfc97aa93613","module":"qb","query":"begin","params":[],"duration":0.08124099997803569,"msg":"kysely.query"}

// CRASH

After this the server is down completely and needs to be restarted

@MerlinB MerlinB changed the title 🐛 [BUG] - Table not found when trying to change username 🐛 [BUG] - Trying to change username crashes application Nov 11, 2024
@nichenqin nichenqin self-assigned this Nov 13, 2024
@nichenqin
Copy link
Collaborator

Currently unable to reproduce, it may be affected by certain settings. Will try other reproduction steps.

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

No branches or pull requests

2 participants