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

Woodpecker agent fails to see finish on podman user socket if journald is set to MaxLevelStore=warning #2035

Closed
5 tasks done
waffshappen opened this issue Jul 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@waffshappen
Copy link

Component

agent

Describe the bug

When running woodpecker agent as follows:

podman run -d --security-opt="label=disable" --tmpfs /tmp --cgroups=split --restart=no --label io.containers.autoupdate=registry --hostname woodpeckeragent --name woodpeckeragent --tz Europe/Berlin -e DOCKER_HOST="unix:///run/user/1001/podman/podman.sock" -e WOODPECKER_SERVER=[..] -e WOODPECKER_AGENT_SECRET=[..] -e WOODPECKER_MAX_PROCS=2 -e WOODPECKER_KEEPALIVE_TIME=60s -v /run/user/1001/podman/podman.sock:/run/user/1001/podman/podman.sock --cpu-shares=128 --memory=2G docker.io/woodpeckerci/woodpecker-agent:latest

And with (this doesnt change the result, was an attempt)

~/.config/containers/containers.conf 
[containers]
log_driver="json-file"

And

/etc/systemd/journald.conf.d/10-journald.conf
MaxLevelStore=warning

woodpecker agent never realizes when a container is finished and will be stuck waiting forever.

If MaxLevelStore is set to default it will work immediately.

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"1.0.0-rc1"}

Fedora 38, podman with podman-docker and podman user socket enabled & passed through. :latest agent (v1.0.0-rc1, https://hub.docker.com/layers/woodpeckerci/woodpecker-agent/v1.0.0-rc1/images/sha256-aec2f68b57381d2dcf5176c8b6f6349c8dfacf6c0090d2db932917a36e391875?context=explore ) .

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.
@waffshappen waffshappen added the bug Something isn't working label Jul 25, 2023
@waffshappen
Copy link
Author

Issue still occurs in 1.0.1

@waffshappen
Copy link
Author

Config Change Required is in linked report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant