8000 [human action] Your Pi after 0.2.0: check it, and decide on the new unit and port · Issue #73 · alexbeeken/skrongle-mini · GitHub
[go: up one dir, main page]

Skip to content

[human action] Your Pi after 0.2.0: check it, and decide on the new unit and port #73

Open

Description

@alexbeeken

Only you can do this: it is your own install. Ten minutes, and you can stop after any step.

Why: 0.2.0 changed the systemd unit (port 7576, and the service no longer restarts forever on a refused database). update.sh never touches the unit in /etc/systemd/system, so your install still runs the 0.1.x unit on 8080. Both work. This is about deciding, once, which one you want, and checking the install is healthy after the update.

Steps.

  • On the Pi: sudo /opt/skrongle/skrongle doctor --service. Expected: no PROBLEM: line. If there is one, paste it here and stop.
  • Decide: keep 8080 (nothing to change for your phone, bookmarks, Tailscale) or move to 7576 (matches the docs and every future install). Keeping 8080 is fine. If you keep it, do the next step and then skip to the last one.
  • Either way, take the new unit for the restart rule: sudo cp /opt/skrongle/skrongle.service /etc/systemd/system/skrongle.service. If you keep 8080, first add the line SKRONGLE_BIND=0.0.0.0:8080 to /etc/skrongle/env (sudo nano /etc/skrongle/env), so the new unit still listens on 8080.
  • sudo systemctl daemon-reload && sudo systemctl restart skrongle, then sudo /opt/skrongle/skrongle doctor --service again. Expected: no PROBLEM: line.
  • Only if you moved to 7576: in /etc/skrongle/env change the port in SKRONGLE_PUBLIC_URL to :7576; restart again; if you use Tailscale serve: sudo tailscale serve reset then sudo tailscale serve --bg 7576; update the bookmark on your phone. Open the app once from the phone.
  • Open the app, sign in, open a lesson. Expected: works as before.
  • Comment here with which port you chose, so the docs can say "an existing install" instead of guessing.

What happens next: nothing on the code side. The next time you run update.sh it will print the old "Syntax error" line once more (#67) and then never again.

Activity

  1. added
    human action
    on Nov 9, 2026
  2. alexbeeken commented on Nov 10, 2026

    @alexbeeken
    OwnerAuthor

    Kept 8080.

    • The install sits behind nginx, and /etc/skrongle/env already had SKRONGLE_BIND=127.0.0.1:8080, so no line was added. The step's 0.0.0.0:8080 would have opened the port on every interface here; the existing loopback line is the right one for an install behind a reverse proxy.
    • New unit copied over /etc/systemd/system/skrongle.service (old one kept beside it as skrongle.service.0.1.x.bak), daemon-reload, restart. RestartPreventExitStatus=78 is in effect.
    • doctor --service before and after: no PROBLEM: line. Version 0.2.0, schema v3 up to date, listening on 127.0.0.1:8080, /healthz and /login return 200 locally and through nginx.

    Still open: the sign-in and open-a-lesson check.

  3. alexbeeken commented on Nov 10, 2026

    @alexbeeken
    OwnerAuthor

    Correction to the comment above: moved to 7576 after all.

    • /etc/skrongle/env: SKRONGLE_BIND=127.0.0.1:7576 (still loopback, the install is behind nginx).
    • nginx: the proxy_pass in the /spanish location now points at 127.0.0.1:7576; nginx -t clean, reloaded.
    • SKRONGLE_PUBLIC_URL has no port in it (nginx serves it on 443), so that part of step 5 did not apply. No Tailscale on this box. The bookmark does not change either.
    • doctor --service: no PROBLEM: line, listening on 127.0.0.1:7576. /healthz and /login return 200 through nginx.

    For the docs: an existing install behind a reverse proxy has two places to change (the bind line and the proxy's upstream), and nothing user-facing moves.

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

    human action

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0