Skip to content

vikunja_user_count is not updated after successful API registration #2650

@booxter

Description

@booxter

Pre-submission checklist

  • I have searched for existing open or closed issue reports with the same problem.

Description

vikunja_user_count does not update after successful user creation through the regular registration API.

I reproduced this on the public demo instance at https://try.vikunja.io:

  1. GET /api/v1/metrics returned:
    vikunja_user_count 107
  2. POST /api/v1/register succeeded with 200 OK
  3. the response returned a newly created user:
    • username: codex-demo-reg-20260416-2356
    • id: 218
    • created: 2026-04-17T01:54:09+02:00
  4. GET /api/v1/metrics still returned:
    vikunja_user_count 107
  5. after waiting a few seconds, the metric was still unchanged

So the registration API creates the user successfully, but the metric does not reflect the new user count.

Vikunja Version

Public demo: v2.3.0-101-10ec3b55

I also investigated this locally against checkout 10ec3b55b01e083268747c15ee383059f6408695.

Browser and version

N/A

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiREST API surface, endpoint design, request/response shapesarea/authLogin, OIDC, LDAP, SAML, TOTP/2FA, PKCE, SCIM, sessions, passwordconcern/regressionWorked in a prior release, now broken

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions