FFFF The lock-out commands can't find the service's settings, and there are two help texts · Issue #304 · alexbeeken/skrongle-mini · GitHub
[go: up one dir, main page]

Skip to content

The lock-out commands can't find the service's settings, and there are two help texts #304

Backlog

Description

@alexbeeken

doctor, owner-link and migrate take --service | --env-file through doctor::apply_settings_args. reset-password, disable-2fa and make-owner refuse any extra argument (src/owner.rs:153), so docs/self-hosting.md:471 has to tell people to prefix sudo SKRONGLE_DB=/var/lib/skrongle/learn.db. These are the commands someone runs when they are locked out and least able to work that out.

owner::HELP (src/owner.rs:135) duplicates USAGE (src/main.rs:302), leaves out doctor, migrate and --version, and cannot be reached from main. src/owner.rs:4 still calls the binary ./spanish-learning.

Fix, one PR: run the three commands through apply_settings_args, delete HELP, and shorten the doc line to sudo /opt/skrongle/skrongle reset-password --service <address>.

To check while there: whether running these as root with the server stopped leaves root-owned -wal and -shm files that the service user then cannot open.

From the code review of 24 November 2026. Line numbers are as of 0.5.0 (2547b36).

Activity

  1. added
    review
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0