Error on writing log

Open
#577 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, kubernetes

Research direction

Start with the vpnkit-controller pod logs and the kube-vpnkit-forwarder entry point at main.go:49, then compare the reflector.go:334 warning with the subsequent log-creation failure. Reproduce the fresh Docker Desktop Kubernetes setup and trace why the pod exits; done means the controller remains running without the reported crash and log error.

Written by the indexing model from the issue text.

Description

Fresh install with Docker Desktop, activated Kubernetes and I'm seeing the vpnkit-controller pod restart regularily because of crashes.
From the log I'm getting this:

W0407 21:59:16.251835 1 reflector.go:334] github.com/moby/vpnkit/go/cmd/kube-vpnkit-forwarder/main.go:49: watch of *v1.Service ended with: The resourceVersion for the provided watch is too old. log: exiting because of error: log: cannot create log: open /tmp/kube-vpnkit-forwarder.vpnkit-controller.unknownuser.log.WARNING.20220407-215916.1: no such file or directory Stream closed EOF for kube-system/vpnkit-controller (vpnkit-controller)

I did not change anything at this point so I guess its misconfigured from the start

Dominant language
OCaml
Stars
1.2k
Forks
214
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moby/vpnkit

All issues in moby/vpnkit

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.