Skip to content

runtipi-cli appstore add fails with HTTP 401 before user account is created #137

@mairas

Description

@mairas

(I'm not quite sure if this issue should've been in the runtipi repo or here...)

Description

The runtipi-cli appstore add command fails with "HTTP error 401" when run before a user account has been
created via the web onboarding interface, even though the Runtipi container is healthy and the web
interface is responding.

Steps to reproduce

  1. Fresh install of Runtipi with no existing user account
  2. Wait for containers to become healthy
  3. Run: ./runtipi-cli appstore add "Store Name" "https://github.com/user/repo"
  4. Observe: ✗ Failed to add app store. Error adding app store: HTTP error 401
  5. Create a user via web UI onboarding
  6. Retry the same CLI command
  7. Observe: Command now succeeds

Expected behavior

Administrative CLI commands like appstore add should work without requiring user authentication,
particularly for automated provisioning scenarios where no interactive user setup is possible.

Use case

Pre-configuring custom app stores in automated image builds (e.g., Raspberry Pi images with Runtipi
pre-installed) where user creation happens on first login.

Environment

  • Runtipi version: v4.5.3
  • Raspberry Pi OS trixie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions