Skip to content

GetCurrentSession error="rpc error: code = Unauthenticated desc = user not found" #5148

@KarelWintersky

Description

@KarelWintersky

Describe the bug

Unable to sign into account after logging out.

Installed to host ( https://www.usememos.com/docs/installation/binary )

Running with reverse proxy with SSL (certbot)

Trying login as arris, but no effect.

# sudo systemctl status memos
● memos.service - Memos
     Loaded: loaded (/etc/systemd/system/memos.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-10-04 01:35:26 MSK; 10s ago
   Main PID: 14303 (memos)
      Tasks: 6 (limit: 2300)
     Memory: 10.7M
        CPU: 164ms
     CGroup: /system.slice/memos.service
             └─14303 /srv/memos/memos

Oct 04 01:35:31 proxy memos[14303]: 2025/10/04 01:35:31 INFO OK method=/memos.api.v1.WorkspaceService/GetWorkspaceSetting
Oct 04 01:35:31 proxy memos[14303]: 2025/10/04 01:35:31 INFO client error method=/memos.api.v1.AuthService/GetCurrentSession error="rpc error: code = Unauthenticated desc = user not found"
Oct 04 01:35:31 proxy memos[14303]: 2025/10/04 01:35:31 INFO OK method=/memos.api.v1.IdentityProviderService/ListIdentityProviders
Oct 04 01:35:32 proxy memos[14303]: 2025/10/04 01:35:32 INFO OK method=/memos.api.v1.AuthService/CreateSession
Oct 04 01:35:32 proxy memos[14303]: 2025/10/04 01:35:32 INFO client error method=/memos.api.v1.AuthService/GetCurrentSession error="rpc error: code = Unauthenticated desc = user not found"
Oct 04 01:35:32 proxy memos[14303]: 2025/10/04 01:35:32 INFO OK method=/memos.api.v1.WorkspaceService/GetWorkspaceProfile
Oct 04 01:35:32 proxy memos[14303]: 2025/10/04 01:35:32 INFO OK method=/memos.api.v1.WorkspaceService/GetWorkspaceSetting
Oct 04 01:35:32 proxy memos[14303]: 2025/10/04 01:35:32 INFO OK method=/memos.api.v1.WorkspaceService/GetWorkspaceSetting
Oct 04 01:35:32 proxy memos[14303]: 2025/10/04 01:35:32 INFO client error method=/memos.api.v1.AuthService/GetCurrentSession error="rpc error: code = Unauthenticated desc = user not found"
Oct 04 01:35:32 proxy memos[14303]: 2025/10/04 01:35:32 INFO OK method=/memos.api.v1.MemoService/ListMemos

Database SQLite: /srv/memos/data/memos_prod.db
port: 5230
mode: prod
driver: sqlite

Running as service from user arris,

root@proxy:/srv/memos/data# ls -la
total 336
drwxr-xr-x 2 arris arris   4096 Oct  4 01:35 .
drwxr-xr-x 3 root  root    4096 Oct  4 01:11 ..
-rw-r--r-- 1 arris arris 266240 Oct  4 01:35 memos_prod.db
-rw-r--r-- 1 arris arris  32768 Oct  4 01:36 memos_prod.db-shm
-rw-r--r-- 1 arris arris  32992 Oct  4 01:36 memos_prod.db-wal

access right is correct

Steps to reproduce

  1. create user
  2. logout
  3. ... can't login again

The version of Memos you're using

0.25.1
binary, nginx reverse proxy, SQLite

Screenshots or additional context

May be user not found really?

Image

no, it's present...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions