mirror of
https://github.com/pikvm/pikvm.git
synced 2026-03-02 18:16:56 -05:00
tailscale requires readwrite filesystem #119
Labels
No labels
component:documentation
help wanted
resolution:delayed
resolution:duplicate
resolution:fixed
resolution:invalid
resolution:rejected
resolution:wontfix
success story
type:bug
type:bug
type:feature
type:question
type:question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pikvm-pikvm#119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @moodoki on GitHub (Jan 8, 2021).
Originally assigned to: @mdevaev on GitHub.
Describe the bug
tailscale seems to keep an open handle on some files.
Also, tailscale will not start if filesystem is readonly (i.e. after reboot)
To Reproduce
Steps to reproduce the behavior, like:
rocommand will fail. Showingmount: /: mount point is busy.reboot, tailscale will fail to start with these messages injournalctltailscaledservice would start successfully if file system is set to rwExpected behavior
rocommand should succeed.tailscaledshould start after rebootrwshould not be required to starttailscaledPi-KVM info:
kvmd 1.100-1 kvmd-platform-v2-hdmi-rpi4 1.100-1 kvmd-webterm 0.34-1ustreamer 1.25-1Additional context
Add any other context about the problem here.
@mdevaev commented on GitHub (Jan 8, 2021):
Update the whole system using
rw; pacman -Syu; rebootand try again.@moodoki commented on GitHub (Jan 8, 2021):
Updating the whole system doesn't help. The error still remains.
@moodoki commented on GitHub (Jan 8, 2021):
It looks like
tailscaledhas open handles on/var/lib/tailscale/tailscaled.log1.txtand/var/lib/tailscale/tailscaled.log2.txt.I don't see a way to change the path of these files. Any ideas?
@mdevaev commented on GitHub (Jan 8, 2021):
I don't really understand where this problem came from at all because I haven't updated the package in the last couple of months, and all this time it worked fine. I'll figure it out, just today I had a higher priority issue in the form of a broken csi bridge driver.
@moodoki commented on GitHub (Jan 9, 2021):
@mdevaev No worries, I'll try to debug as well.
Looks like from a recent version of tailscale, they've decided that it was a good idea to write to 2 files in
/var/lib/tailscale.github.com/tailscale/tailscale@f9659323df/logpolicy/logpolicy.go (L111)I'm not sure why they've decided to do so instead of using LOGS_DIRECTORY. STATE_DIRECTORY doesn't seem to be used anywhere else in tailscale.
I've verified that I can get it to start using a writable overlay, with something like this:
@mdevaev commented on GitHub (Jan 9, 2021):
The problems are related to the fact that tailscale was accepted into the official arch repository. Systemd service is not patched there, as it was with me. As a workaround, do the following:
mkdir -p /etc/systemd/system/tailscaled.service.d/etc/systemd/system/tailscaled.service.d/override.conf:@mdevaev commented on GitHub (Jan 9, 2021):
Alternative:
pacman -S tailscale-pikvm@mdevaev commented on GitHub (Jan 9, 2021):
I've fixed doc. Problem solved.
@moodoki commented on GitHub (Jan 9, 2021):
Awesome. Verified that it works! Thanks.