Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Solved Failed Duet3 & SBC firmware update (again)

    Firmware installation
    6
    21
    345
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Rushmere3D
      Rushmere3D last edited by Rushmere3D

      So, again when trying to update via SBC and putty it fails.

      I was on the RC release so assumed I had to change to the stable release list, did so with the commands on the doc pages and then ran the update commands.

      Things downloaded as normal but then I get this error and nothing seems to update, also no prompt to update expansion boards either.

      Setting up reprapfirmware (3.4.0-1) ...
      Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key '' was not present in the dictionary.
         at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
         at DuetControlServer.Utility.Firmware.UpdateFirmwareRemotely() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Utility/Firmware.cs:line 450
         at DuetControlServer.Program.CheckForAnotherInstance() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Program.cs:line 358
         at DuetControlServer.Program.Main(String[] args) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Program.cs:line 100
         at DuetControlServer.Program.<Main>(String[] args)
      Aborted
      
      

      Now trying a fresh install again as I'm not what's happened and not.

      Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

      1 Reply Last reply Reply Quote 0
      • Rushmere3D
        Rushmere3D last edited by Rushmere3D

        Well I can't seem to get a fresh install of the duetpi IMG to work, write it to an SD card, change my WiFi details and when I try and connect I get DSF and http errors.

        Any suggestions on how to resolve this?

        Thanks.

        Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

        1 Reply Last reply Reply Quote 0
        • Rushmere3D
          Rushmere3D last edited by

          I should add the original SD card I had in when it failed to update from rc2 still works to some degree, I was updating because I was getting a driver doesn't exist error which apparently was a bug.

          I'm unsure what has and hasn't been updated on the SD hence the attempt to create a new SD card.

          Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

          1 Reply Last reply Reply Quote 0
          • Topic has been marked as a question  Rushmere3D Rushmere3D 
          • Phaedrux
            Phaedrux Moderator last edited by

            Can you try downloading the DuetPi image again? It may not have been updated when you first grabbed it.

            I've not seen that unhandled exception before.

            Try again with a fresh image and see how it goes.

            Z-Bot CoreXY Build | Thingiverse Profile

            Rushmere3D 1 Reply Last reply Reply Quote 0
            • Rushmere3D
              Rushmere3D @Phaedrux last edited by

              @phaedrux The date on the file name was pretty old, I'll check later or tomorrow to see if it's updated.

              I'd like to know what the first update attempt failed though?

              Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

              chrishamm 1 Reply Last reply Reply Quote 0
              • chrishamm
                chrishamm administrators @Rushmere3D last edited by

                @rushmere3d Do you know what firmware version was on the board before you attempted to update it?

                Duet software engineer

                Rushmere3D 1 Reply Last reply Reply Quote 0
                • Rushmere3D
                  Rushmere3D @chrishamm last edited by Rushmere3D

                  @chrishamm Well I've been running 3.4.rc2 for a few weeks and then encountered a bug (driver doesn't exist) so tried to update to the stable 3.4 release.

                  Is that what you mean?

                  Currently the board shows 3.4.0 in the system info tab, but M122 + M122 B1 show 3.4rc2

                  Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

                  1 Reply Last reply Reply Quote 0
                  • Rushmere3D
                    Rushmere3D last edited by

                    The file name of the downloaded duetpi-lite is 2021-07-12-DuetPi-lite so I assume it's not been updated in a while?

                    Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

                    jay_s_uk 1 Reply Last reply Reply Quote 0
                    • jay_s_uk
                      jay_s_uk @Rushmere3D last edited by

                      @rushmere3d this is a link to the latest file
                      https://pkg.duet3d.com/DuetPi-lite.zip

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      1 Reply Last reply Reply Quote 0
                      • Rushmere3D
                        Rushmere3D last edited by

                        Fresh download of DuetPi-Lite from the docs site and I get the following error trying to load the DWC.

                        Screenshot 2022-03-18 095610.jpg

                        Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

                        jay_s_uk 1 Reply Last reply Reply Quote 0
                        • jay_s_uk
                          jay_s_uk @Rushmere3D last edited by

                          @rushmere3d is the duet board plugged into the pi?
                          are you able to setup standalone and confirm the firmware running on it?

                          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                          Rushmere3D 1 Reply Last reply Reply Quote 0
                          • Rushmere3D
                            Rushmere3D @jay_s_uk last edited by

                            @jay_s_uk Yes, everything is connected how it has been since I build the toolchanger. And the other SD card with semi updated firmware on works.

                            No I haven't tried in standalone mode.

                            Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

                            Piet 1 Reply Last reply Reply Quote 0
                            • Piet
                              Piet @Rushmere3D last edited by

                              @rushmere3d I had the same thing with a fresh DuetPi installation.
                              Can you check what it posts if you type sudo journalctl -u duetcontrolserver into putty.
                              For me i think it had to do with dissimilair firmware versions on the RPi and duet but i'm not sure. When i updated to the newest stable release (3.4) it started working again.

                              Rushmere3D 1 Reply Last reply Reply Quote 0
                              • Rushmere3D
                                Rushmere3D @Piet last edited by Rushmere3D

                                @piet How did you update? Via putty I assume?

                                Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

                                1 Reply Last reply Reply Quote 0
                                • Rushmere3D
                                  Rushmere3D last edited by Rushmere3D

                                  Output from sudo journalctl -u duetcontrolserver

                                  Mar 18 10:37:49 duet3 systemd[1]: duetcontrolserver.service: Failed with result 'protocol'.
                                  Mar 18 10:37:49 duet3 systemd[1]: Failed to start Duet Control Server.
                                  Mar 18 10:37:49 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=100ms expired, scheduling restart.
                                  Mar 18 10:37:49 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 5.
                                  Mar 18 10:37:49 duet3 systemd[1]: Stopped Duet Control Server.
                                  Mar 18 10:37:49 duet3 systemd[1]: Starting Duet Control Server...
                                  Mar 18 10:37:49 duet3 DuetControlServer[1141]: Duet Control Server v3.3.0
                                  Mar 18 10:37:49 duet3 DuetControlServer[1141]: Written by Christian Hammacher for Duet3D
                                  Mar 18 10:37:49 duet3 DuetControlServer[1141]: Licensed under the terms of the GNU Public License Version 3
                                  Mar 18 10:37:50 duet3 DuetControlServer[1141]: [info] Settings loaded
                                  Mar 18 10:37:51 duet3 DuetControlServer[1141]: [info] Environment initialized
                                  Mar 18 10:37:51 duet3 DuetControlServer[1141]: [fatal] Could not connect to Duet (Invalid protocol version 6)
                                  

                                  Now doing a

                                  sudo apt-get update
                                  sudo apt-get upgrade
                                  

                                  Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

                                  chrishamm 1 Reply Last reply Reply Quote 1
                                  • chrishamm
                                    chrishamm administrators @Rushmere3D last edited by

                                    @rushmere3d I just updated the default DuetPi and DuetPi-lite builds as well with new images that have v3.4 integrated. That way users don't need to perform extra steps after apt update/upgrade as described in the upgrade notes.

                                    You can always update the firmware using M997 if the update process fails. TBH I never saw that error message before, but I added some extra checks to avoid it in the future.

                                    Duet software engineer

                                    Piet 1 Reply Last reply Reply Quote 3
                                    • Rushmere3D
                                      Rushmere3D last edited by

                                      Right that's got me back up and running, after a longer update process everything seems to have updated correctly including the expansion board.

                                      I'd still like to get to the bottom of why things didn't work last time and this time updating from my existing system.

                                      Thinking about it, could me running execonmcode affect it some how?

                                      Thanks for the help all.

                                      Follow my adventures in 3D Printing, laser cutting and electronics. https://linktr.ee/Rushmere3D

                                      Piet 1 Reply Last reply Reply Quote 0
                                      • Piet
                                        Piet @Rushmere3D last edited by

                                        @rushmere3d

                                        Good to hear, I'm not sure i had the same error message coming from a clean image (Invalid protocol version 6). Read somewhere on the forum that it had to do with dissimilair versions on the pi and duet but I'm not sure.

                                        1 Reply Last reply Reply Quote 1
                                        • Piet
                                          Piet @chrishamm last edited by

                                          @chrishamm

                                          That definitely helps! Updating to 3.4 takes around 30min I'd say 😌

                                          SputnikOC3d 1 Reply Last reply Reply Quote 0
                                          • Topic has been marked as solved  Rushmere3D Rushmere3D 
                                          • SputnikOC3d
                                            SputnikOC3d @Piet last edited by

                                            @piet

                                            Any guidance anywhere in the forum or in docs on updating sbc mode fw when printer has no internet access directly ?

                                            Phaedrux 1 Reply Last reply Reply Quote 0
                                            • Phaedrux
                                              Phaedrux Moderator @SputnikOC3d last edited by

                                              @sputnikoc3d said in Failed Duet3 & SBC firmware update (again):

                                              @piet

                                              Any guidance anywhere in the forum or in docs on updating sbc mode fw when printer has no internet access directly ?

                                              I suppose you could download the DuetPi image for 3.4 and reflash the SD card (backup your config) and then use M997 to update the firmware on the board.

                                              Z-Bot CoreXY Build | Thingiverse Profile

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post
                                              Unless otherwise noted, all forum content is licensed under CC-BY-SA