Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tailscaled log cause RAMdisk full #57

Closed
Bpazy opened this issue Nov 30, 2022 · 3 comments
Closed

tailscaled log cause RAMdisk full #57

Bpazy opened this issue Nov 30, 2022 · 3 comments

Comments

@Bpazy
Copy link

Bpazy commented Nov 30, 2022

I found out that QNAP root filesystem full becase tailscaled write logs into /var/lib/tailscale continuously. Full RootFS makes QNAP not working.

QNAP root filesystem is 400M RAMdisk and released only restarting:

[/var/lib/tailscale] # df -h
Filesystem                Size      Used Available Use% Mounted on
none                    400.0M    310.9M     89.1M  78% /

In my QNAP, tailscaled.log1.txt take up 30M. Unfortunately, I delete it and forgoting to back up the log.

Here's grafana monitor shows increased disk usage:
image
And resloved after deleting tailscale and log:
image

Maybe logs should be disabled or cleanup regularly.

@DentonGentry
Copy link
Contributor

Could I ask what version of the package you are running? https://github.com/tailscale/tailscale/pull/5163/files was supposed to move the logs to /tmp/tailscale-logs and limit their max size to 1 Megabyte, and went into 1.30.x.

@Bpazy
Copy link
Author

Bpazy commented Nov 30, 2022

@DentonGentry thank you. i'm not sure about the exact version but it should be a very old version in 2021.

i will try latest version to checkout

@Bpazy
Copy link
Author

Bpazy commented Dec 1, 2022

not reproduce at latest tailscale. I will close the issue.

@Bpazy Bpazy closed this as completed Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants