OctoPrint / OctoPrint-FirmwareUpdater

OctoPrint plugin for flashing pre-compiled firmware images to a 3D printer.
https://plugins.octoprint.org/plugins/firmwareupdater/
GNU Affero General Public License v3.0
352 stars 76 forks source link

Avrdude firmware flash fails and returns code 127 #343

Closed counttec closed 1 year ago

counttec commented 1 year ago

ATmega2560 board, Prusa i3 Mk3s+ printer

Describe the problem While attempting to flash the latest stable firmware from Prusa I am receiving an error code 127. This behavior persisted when I updated Firmware Updater to the dev build. The settings I am using have not changed since the last successful flash.

Log Files octoprint.log plugin_firmwareupdater_console.log

benlye commented 1 year ago

Log says this:

2023-03-19 01:18:27,413 > /usr/bin/avrdude: error while loading shared libraries: libftdi.so.1: cannot open shared object file: No such file or directory

So it looks like something is wrong with your avrdude installation - at least one shared library is missing and needs to be reinstalled.

counttec commented 1 year ago

Was able to reinstall libftdi1, however I first had to delete '/var/lib/dpkg/info/libftdi1:armhf.triggers' due to an error during reinstall of the SO. Too-long line or missing newline in '/var/lib/dpkg/info/libftdi1:armhf.triggers

After fixing the library, and updating Firmware Updater (coincidentally probably), I was able to flash my printer without issue

github-actions[bot] commented 1 year ago

This issue has been automatically locked because there was no further activity after it was closed. Please open a new issue for any related problems.