After a reboot, the Inbox doesn't reclaim its own tailscale serve mappings ("Another tailscale serve mapping already uses port …")
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend, networking
Research direction
Find chooseTailnetDoorPort and the code that checks existing tailscale serve mappings against the Inbox's records. Read how ownership is determined when the target port has no listener after restart, then follow the Inbox startup path for both its own port and the 8443 door. Done when matching recorded mappings are reclaimed or re-pointed on start and unrelated mappings are still refused.
Written by the indexing model from the issue text.
Description
After a reboot, the Inbox doesn't reclaim its own tailscale serve mappings ("Another tailscale serve mapping already uses port …")
Environment: plannotator 0.28.67 on two Macs (macOS), Tailscale for Mac, the same tailnet and account. Both Inboxes are published on the tailnet ("inboxTailscale": true) and linked to each other (plannotator inbox link), "online, both ways" before the reboot.
What happens
Tailscale keeps background serve mappings across a reboot. After one Mac was rebooted, its Inbox no longer treated the mappings it had made itself as its own:
-
The Inbox's own port.
plannotator inboxprinted:Not published over your tailnet: Another tailscale serve mapping already uses port 57113, the Inbox's port. The Inbox never replaces it: remove it with "tailscale serve --https=57113 off" if nothing needs it.
tailscale serve statusshowedhttps://<mac>.<tailnet>.ts.net:57113 → proxy http://127.0.0.1:57245, and nothing listened on 57245 (lsof -nP -iTCP:57245 -sTCP:LISTENempty). It was the Inbox's own mapping from before the reboot. -
The link door (8443).
https://<mac>.<tailnet>.ts.net:8443 → proxy http://127.0.0.1:57298, the same target the door used before. Aftertailscale serve --https=57113 offandplannotator inbox restart, the Inbox published on 57113 but still did not listen on 57298, andplannotator inbox link --listflagged this computer: "Another tailscale serve mapping now uses port 8443, where linked machines reach this Inbox. The Inbox never replaces it…". -
Only after
tailscale serve --https=8443 offand a secondplannotator inbox restartdid it listen on 57298 again. It re-created the 8443 mapping with the same target, and the link came back "online, both ways".
So a reboot takes two rounds of tailscale serve … off plus plannotator inbox restart by hand.
The other Mac had not been rebooted, but its Inbox had been restarted since the mapping was made. It had the first case too: its port 58793 mapped to 127.0.0.1:57747, where nothing listened, and tailnet_url was null until the mapping was removed and the Inbox restarted.
Expected
A mapping on the Inbox's own port or its door port that points at a loopback port nothing listens on, and that this Inbox made (it matches its records), is reclaimed or re-pointed at start, instead of being refused as someone else's. In chooseTailnetDoorPort, a record whose target is unchanged should count as own even when nothing is listening yet after a restart.
Workaround
tailscale serve status # find the Inbox's port and 8443 mapped to a dead 127.0.0.1 port
tailscale serve --https=<port> off # the Inbox's port, then 8443 if link --list still complains
plannotator inbox restart
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 649
- Avg merge
- 16h 1m
- Merged PRs (30d)
- 756
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from backnotprop/plannotator
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
backnotprop/plannotator#4132 · 1 comment ·
Maintainers usually reply within 1 day
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
backnotprop/plannotator#4051 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
backnotprop/plannotator#4000 ·
Maintainers usually reply within 1 day
-
PR description is hidden when a PR review opens on a phonePossibly taken @flipcyde101 claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
backnotprop/plannotator#3667 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in backnotprop/plannotator
Similar issues
-
enhancement UX
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
online-go/online-go.com#4000 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
SnosMe/awakened-poe-trade#1976 ·
-
[BUG]Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
jonp-h/TillerQuest#319 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
terrazzoapp/terrazzo#902 ·