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

Cannot sign in after the update #3357

Closed
zhonger opened this issue May 13, 2024 · 5 comments
Closed

Cannot sign in after the update #3357

zhonger opened this issue May 13, 2024 · 5 comments

Comments

@zhonger
Copy link

zhonger commented May 13, 2024

Describe the bug

When I try to sign in after the update, this error happens:

failed to sign in, err: rpc error: code = Internal desc = failed to upsert access token to store, err: failed to get user access tokens: sql: Scan error on column index 2, name "value": converting NULL to string is unsupported

Steps to reproduce

Update to v0.21.0 from v.20.0 with docker

The version of Memos you're using

v0.21.0

Screenshots or additional context

image

@zhonger zhonger added the bug Something isn't working label May 13, 2024
@michaelien
Copy link
Collaborator

This should be a very unusual mistake. Do you have any special operations during the upgrade process?

The most easy way to deal with it is to manually delete the access tokens data in the user_setting table in your database.

@michaelien michaelien added need more context and removed bug Something isn't working labels May 13, 2024
@jmagar
Copy link

jmagar commented May 13, 2024

Hmmm not sure if this is related or something different, but I'm getting something similar, but only when I'm trying to login with the moememos app with api key or user/pass. Login via Web works fine.

2024/05/13 13:42:37 ERROR unknown error method=/memos.api.v1.AuthService/SignIn error="rpc error: code = InvalidArgument desc = user not found with username "

@zhonger
Copy link
Author

zhonger commented May 13, 2024

This should be a very unusual mistake. Do you have any special operations during the upgrade process?

The most easy way to deal with it is to manually delete the access tokens data in the user_setting table in your database.

I haven't done other special operations during the upgrade process.
(PS: maybe my usage is quite a little different. I use the docker image on two laptops only connecting them with the database file by OneDrive.)

As you suggest, it works after deleting the data in the user_setting table.

@kingdream123
Copy link

kingdream123 commented May 14, 2024

This should be a very unusual mistake. Do you have any special operations during the upgrade process?
The most easy way to deal with it is to manually delete the access tokens data in the user_setting table in your database.

I haven't done other special operations during the upgrade process. (PS: maybe my usage is quite a little different. I use the docker image on two laptops only connecting them with the database file by OneDrive.)

As you suggest, it works after deleting the data in the user_setting table.

I also encountered the same issue; I deleted the contents of the user_setting table, but it still doesn't work.

@zhonger
Copy link
Author

zhonger commented May 15, 2024

This should be a very unusual mistake. Do you have any special operations during the upgrade process?
The most easy way to deal with it is to manually delete the access tokens data in the user_setting table in your database.

I haven't done other special operations during the upgrade process. (PS: maybe my usage is quite a little different. I use the docker image on two laptops only connecting them with the database file by OneDrive.)
As you suggest, it works after deleting the data in the user_setting table.

I also encountered the same issue; I deleted the contents of the user_setting table, but it still doesn't work.

I think you may need to recreate or restart the container.
After deleting the data in user_setting, I also recreate the container with docker-compose down && docker-compose up -d
and test it in another browser (Safari) or a new tab (Chrome).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants