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

ssh hang when remote reboot #94

Open
ChiWu-Zero opened this issue Jan 17, 2022 · 0 comments
Open

ssh hang when remote reboot #94

ChiWu-Zero opened this issue Jan 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ChiWu-Zero
Copy link

Overview of the Issue

the code will hang on func newSession() in communicator/ssh/communicator.go
sometimes when rebooting remote server.

Reproduction Steps

  1. the provisioner config is as follow and the reboot.sh will reboot the remote system.

"provisioners": [ { "type": "shell", "scripts": [ "reboot.sh" ], "expect_disconnect": true }, ..... ]

  1. when rebootting the remote system, the the packer will hang on newSession()
    sometimes.

Packer Plugin SDK version

v0.2.11

Operating system and Environment details

it's a copy of golang/go#50604
and after view the the issue golang/go#26643
maybe we deal with the problem on sdk level.

Log Fragments and crash.log files

Include appropriate log fragments. If the log is longer than a few dozen lines,
please include the URL to the gist of the log or
use the Github detailed format instead of posting it directly in the issue.

@ChiWu-Zero ChiWu-Zero added the bug Something isn't working label Jan 17, 2022
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