# Issue with reboot resource

**URL:** <https://discourse.chef.io/t/issue-with-reboot-resource/8651>\
**Category:** Chef Infra (archive)\
**Created:** [June 9, 2016, 6:09am UTC](https://discourse.chef.io/t/issue-with-reboot-resource/8651 "2016-06-09T06:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stuporman](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Stuporman](https://discourse.chef.io/u/Stuporman)\
**Post date:** [June 9, 2016, 6:09am UTC](https://discourse.chef.io/t/issue-with-reboot-resource/8651/1 "2016-06-09T06:09:36Z")

</div>

I’m getting an IOError: stream closed with a reboot resource. It looks like the chef-client is waiting for background processes to finish but is cutoff by the reboot. I’ve tried both :reboot\_now and :request\_reboot with a 5 minute timer with no difference (besides 5 extra minutes).

Can anyone provide insight into what chef-client may be waiting for if it is waiting for anything? (I can provide more details, but experience has taught me avoiding the tl;dr is more important in a first post)

---

<div class="post-metadata">

**Author:** ![Steven\_Murawski](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steven_murawski/32/1450_2.png) [@Steven\_Murawski](https://discourse.chef.io/u/Steven_Murawski)\
**Post date:** [June 9, 2016, 4:36pm UTC](https://discourse.chef.io/t/issue-with-reboot-resource/8651/2 "2016-06-09T16:36:03Z")

</div>

A few questions to start…

- How are you running chef-client (service? task? cron?)
- What platform are you on?
- Where are you seeing that error? In the chef-client log?
- Do you have any report or exception handlers?

---

<div class="post-metadata">

**Author:** ![shortdudey123](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@shortdudey123](https://discourse.chef.io/u/shortdudey123)\
**Post date:** [June 9, 2016, 6:49pm UTC](https://discourse.chef.io/t/issue-with-reboot-resource/8651/3 "2016-06-09T18:49:44Z")

</div>

This is what i use with no issues (chef-client runs and exits before the  
reboot occurs)

reboot ‘reboot\_host\_1\_min’ do  
action :request\_reboot  
reason 'Need to reboot when the run completes successfully.'  
delay\_mins 1  
end

-Grant
