# "klippy disconnect" as soon as print finishes no error message

**URL:** <https://klipper.discourse.group/t/klippy-disconnect-as-soon-as-print-finishes-no-error-message/14760>\
**Category:** General Discussion\
**Created:** [March 8, 2024, 5:12pm UTC](https://klipper.discourse.group/t/klippy-disconnect-as-soon-as-print-finishes-no-error-message/14760 "2024-03-08T17:12:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Autosri](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Autosri](https://klipper.discourse.group/u/Autosri)\
**Post date:** [March 8, 2024, 5:12pm UTC](https://klipper.discourse.group/t/klippy-disconnect-as-soon-as-print-finishes-no-error-message/14760/1 "2024-03-08T17:12:14Z")

</div>

### Basic Information:

Printer Model: ender3v2  
 MCU / Printerboard:btt mini e3 v3  
 `klippy.log`  
[klippy (6).log](https://klipper.discourse.group/uploads/short-url/4WcBT5FbTir3sp11gHzWEJYbEVs.log) (1001.8 KB)  
[moonraker (1).log](https://klipper.discourse.group/uploads/short-url/gWoRqslqN2Yhm9XTh1Me7ZGIOsy.log) (57.8 KB)

_Fill out above information and_ **_in all cases attach your_ `klippy.log` _file_** (use zip to compress it, if too big). _Pasting your_ `printer.cfg` _is **not** needed_  
_ **Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there** _

### Describe your issue:

… im a new user to klipper and have got a bit stuck after making some modifications adding a enclosure heater, i can start and run a print just fine and it works and completes the print but as soon as it finishes it just kills klipper and turns off the power relay , it doesnt run the end\_print macro it just dies and sticks the nozzle in the print  
ive since uncommented everything ive added to do with the enclosure heater and it still does the same thing  
ive had a read through the logs but the honest truth is i havnt a clue what im actually looking it  
it used to work and finish the print,present the print,cool everything off then auto shut off the power relay

please help as im well out my depth here

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [March 8, 2024, 6:22pm UTC](https://klipper.discourse.group/t/klippy-disconnect-as-soon-as-print-finishes-no-error-message/14760/2 "2024-03-08T18:22:16Z")

</div>

Not 100% sure, but it looks like Moonraker is shutting down Klipper due to the `[power printer]` settings.

---

<div class="post-metadata">

**Author:** ![Autosri](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Autosri](https://klipper.discourse.group/u/Autosri)\
**Post date:** [March 8, 2024, 6:45pm UTC](https://klipper.discourse.group/t/klippy-disconnect-as-soon-as-print-finishes-no-error-message/14760/3 "2024-03-08T18:45:14Z")

</div>

Oh that’s very odd as that part of it worked fine before  
Il uncomment all of it see if it still does it and if it doesn’t il try and narrow it down  
So nothing else jumps out as being obviously wrong to you then

Thanks for having a look

---

<div class="post-metadata">

**Author:** ![Autosri](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Autosri](https://klipper.discourse.group/u/Autosri)\
**Post date:** [March 9, 2024, 6:26pm UTC](https://klipper.discourse.group/t/klippy-disconnect-as-soon-as-print-finishes-no-error-message/14760/4 "2024-03-09T18:26:16Z")

</div>

Thank you for your help it’s all sorted now  
I think when I was fitting the enclosure heater code I must have messed up and printer.cfg must have resorted to a backup or something  
Problem is that clashed with one of the end\_print macros causing it to to shutdown

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [May 8, 2024, 6:26pm UTC](https://klipper.discourse.group/t/klippy-disconnect-as-soon-as-print-finishes-no-error-message/14760/5 "2024-05-08T18:26:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
