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

ocihook fails to write to logfile in some error conditions #2997

Closed
apostasie opened this issue May 13, 2024 · 1 comment
Closed

ocihook fails to write to logfile in some error conditions #2997

apostasie opened this issue May 13, 2024 · 1 comment
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim

Comments

@apostasie
Copy link
Contributor

Description

I do not have a reproducer for this - just this log.

It looks like under certain error conditions, the logger fails to write to the oci-hook log file:

time="2024-05-13T01:15:15-07:00" level=fatal msg="failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: time=\"2024-05-13T01:15:15-07:00\" level=fatal msg=\"failed to call cni.Setup: plugin type=\\\"macvlan\\\" failed (add): error dialing DHCP daemon: dial unix /run/cni/dhcp.sock: connect: no such file or directory\"\nFailed to write to log, write /var/lib/nerdctl/1935db59/containers/default/296044d34946edb105cbb896d7a5bc9a2a153c816ef3238136abc1e99d686346/oci-hook.startContainer.log: file already closed: unknown"

Steps to reproduce the issue

?

Describe the results you received and expected

"Failed to write to log, write /var/lib/nerdctl/1935db59/containers/default/296044d34946edb105cbb896d7a5bc9a2a153c816ef3238136abc1e99d686346/oci-hook.startContainer.log: file already closed: unknown"

What version of nerdctl are you using?

1.7.6

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

@apostasie apostasie added the kind/unconfirmed-bug-claim Unconfirmed bug claim label May 13, 2024
@apostasie
Copy link
Contributor Author

Fixed by #3094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim
Projects
None yet
Development

No branches or pull requests

1 participant