-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Packer qemu builder crashes sometimes (yamux keepalive, qemu EOF) #13093
Comments
|
Hi @WorldBuild, Thanks for bubbling this up! This looks like a bug indeed, no clue if that's on us or if it's an upstream problem (yamux is the muxer we use over the wire for allowing multiple entities to communicate over one single connection), but it warrants an investigation. Judging from the logs it seems this occurs rapidly during the course of a build, right? Looking at your logs it seems you're running Packer 1.9.4, any chance you can try on a more recent version to see if the problem persists? I'd be surprised if it did tbh as we didn't change that piece of code for a while, but maybe something else positively interacts with it? |
Hey @lbajolet-hashicorp!
Yep I can confirm that, it happens near instantly, I remember when researching this 2 weeks back I saw a discussion that keepalive can be configured to have a longer timeout or disabled entirely but I couldn't find the source again :/ For future reference, is there any way I can pull out more detailed logs when crashes such as this happen? So far I've been relying on PACKER_LOG but it didn't help me much in this case since I honestly still have no idea what actually crashed 😅 (if anything) EDIT: cat walked on my keyboard |
For the verbose logs unfortunately I'm not sure what more we can do :/ It warrants some delving in its code base though, which will probably have to happen to understand how we end-up here, but since that code is a bit complex, and stuff occurs on different coroutines, it might be a bit hard to troubleshoot unfortunately. Out of curiosity, do you hit this often? As for the Will investigate! |
Thanks for investigating, to answer your question, no I don't hit this very often, so it's not a critical issue Digging around in the Yamux codebase, the error seems to be thrown from this code block, after Yamux times out could bumping the ConnectionWriteTimeout here help? Ideally if we could configure this in the Packer template or via an environmental variable (like PACKER_LOG), I could test it out for you :) |
Hi @WorldBuild, Thanks for the delve into the yamux code, much appreciated! If you're able to experiment with it and try out what would feel good to you please do, and if you want to add an option to the configurations in the SDK please do and open a PR if that might be helpful to others :) Thanks! |
Hello, I use Packer often to build qcow2 images from other qcow2 images, and once in a blue moon, at a random time during the build, Packer exits abruptly due to something related to Yamux
I run my builds on CentOS 8, and this happens even when I have no provisioners, so I think the most likely culprit is the communicator I use (WinRM)
Simplified template
Log doesn't help much as it just shows the error message with yamux keepalive and qemu EOF
The text was updated successfully, but these errors were encountered: