r/QidiTech3D • u/skil12001 • Aug 22 '26
Troubleshooting WTF Qidi!!
I have my Q2 offline on purpose so I don't get firmware updates, I also don't have the qidi box because I don't need it
I was running fine on 1.1.1.1, but was curious and figured might as well try 1.1.2.4.
almost bricked my machine.
took my 8 hours today, re flashing back to 1.1.1.1, but now there's a lingering "box_" code in Python that kept killing my machine! from what I can see that code is for a qidi box!
took me 8 hours, SSH and klipper macro investigation to block any "box_" search or creation from stalling klipper.
I'm sure I voided the warranty today trying to fucking fix my printer from their own firmware update!
edit: (written with the help of AI to capture all my thoughts)
Sharing this here in case anyone else updates their Qidi printer through official channels and suddenly finds their machine trapped in a crash loop / "Unhandled exception during run" state.
I recently updated via the manufacturer's official firmware, and it basically nearly bricked my machine. After digging into the logs via SSH, I found that Qidi has a hardcoded proprietary background script called box_detect.py wired directly into the core Klipper engine.
If you don't use their physical "Smart Box" accessory, this background script still wakes up on boot or when polling USB devices. It tries to write a box.cfg file into /home/mks/printer_data/config/. Because Qidi's OS enforces root permissions on configuration directories while Klipper runs under the mks user, it hits a permission wall (PermissionError: [Errno 13] Permission denied), crashes Klipper, and throws the printer into a continuous shutdown state.
If your machine is stuck in this loop and won't boot to "Ready", you have to SSH into your printer and perform a little core Python surgery to sever that zombie script:
- SSH into your printer: ssh mks@[YOUR_PRINTER_IP] (Password is usually
makerbase) - Open the core Klipper execution file in nano: sudo nano /home/qidi/klipper/klippy/klippy.py
- Comment out the
box_detecttriggers using#- Line ~10: Find
from extras import box_detectand change it to#from extras import box_detect - Line ~128:
- Find the loop block: for m in [box_detect]:
- m.add_printer_objects(config)
- Change it to: #for m in [box_detect]:
- # m.add_printer_objects(config)
- Line ~136: Find
box_detect.monitor_serial_devices(self)and change it to#box_detect.monitor_serial_devices(self)
- Line ~10: Find
- Save and Exit:
- Press
Ctrl + O, thenEnterto save. - Press
Ctrl + Xto exit the editor.
- Press
- Restart Klipper: sudo systemctl restart klipper
Head back to your Fluidd or Mainsail dashboard, and your printer should boot up cleanly to "Ready" without throwing any more background exceptions.
We shouldn't have to manually edit core Klipper installation files just because of an official update, but until Qidi pushes out a patch that makes box_detect optional or removes it, this will save your machine from being a paperweight. Hope this helps someone else out there!
11
u/Plutonium239Mixer Aug 22 '26
Don't update firmware unless you are having a problem and the new firmware is supposed to fix it!!!
7
u/Lapidariest Aug 22 '26
"edit: (written with the help of AI to capture all my thoughts)" I think the firmware was also..
2
u/bday420 1d ago
Jesus. If this ever happened to my Q2 I'd be totally FUCKED. Id have zero clue how to do anything you did to get the fix.
16
u/GonzoDeep Aug 22 '26
Don't listen to the bots, you're right. This is good work too, and I bet most of the people who downvoted this have no idea how to even ssh into their machines. Qidi did push a shitty update, and anyone saying "you should know better" is an asshole. Qidi should have known better, stop injecting feelings into your tools. Its a fucking tool, not your sports team.
3
u/Zloyuzver Aug 22 '26 edited Aug 22 '26
Я у своего Qidi Q2 Combo вообще отключил проверку обновлений, ибо насмотрелся на глюки прошивок версии 1.1.2.1-1.1.2.4. Мне печатать надо, а не стоически бороться с глюками от Qidi. Автору спасибо за информацию. Сохранил её в свои закладки.
Как отключить проверку обновления без отключения доступа принтеру в интернет:
ssh mks@ip_адрес_принтера(IP можно посмотреть прямо через экран принтера)makerbase. Символы при этом не отображаются, но знаки вводятсяДальше, на запрос пароля, везде вводить
makerbasesudo cp /etc/hosts /etc/hosts.backupecho -e "\n127.0.0.1 api.qidi3dprinter.com\n127.0.0.1 api2.qidi3dprinter.com\n127.0.0.1 api.qidimaker.com\n127.0.0.1 public-cdn.qidimaker.com" | sudo tee -a /etc/hosts
После этого принтер не будет спрашивать про обновление при загрузке.
sudo cp /etc/hosts.backup /etc/hosts1
u/xeonon Aug 23 '26
You did a lot of work, when you could have changed box_enabled=0