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

how to view k3s service logs to identify SQLite compaction issues #1571

Closed
venkatamutyala opened this issue Mar 16, 2025 · 3 comments
Closed

Comments

@venkatamutyala
Copy link

venkatamutyala commented Mar 16, 2025

How can i view the k3d service logs? I'm trying to debug whether or not my SQLite is having issues with compaction.

I believe i only see the api server logs when i am running

docker logs <server-container-id> -f

I checked /var/log but i only see my own workloads being logged.

Related: #1569
Related: k3s-io/k3s#11967

@venkatamutyala venkatamutyala changed the title k3s service logs to identify SQLite compaction issues how to view k3s service logs to identify SQLite compaction issues Mar 16, 2025
@venkatamutyala
Copy link
Author

Also, i've tried creating my k3ds cluster with --trace but i think it only provides logs from the cli during initial creation.

@venkatamutyala
Copy link
Author

I think i found it. I added this to my config.yaml:

env:
  - envVar: K3S_DEBUG=true
    nodeFilters:
      - server:*

@venkatamutyala
Copy link
Author

This worked. I was able to get the COMPACT messages

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

1 participant