Problems downgrading 3.2-Beta 2Duet 6HC +SBC
-
Hey I upgraded my Duet 6HC + SBC t to the beta firmware because I wasn't able to upgrade.
I did this by
sudo curl https://pkg.duet3d.com/duet3d-unstable.list -o /etc/apt/sources.list.d/duet3d.list sudo apt-get update sudo apt-get upgrade sudo curl https://pkg.duet3d.com/duetcontrolserver.service -o /usr/lib/systemd/system/duetcontrolserver.service sudo systemctl daemon-reload
Doing so I got the following log and error but it still seemed to work:
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: duetcontrolserver duetruntime duetsd duetsoftwareframework duettools duetwebcontrol duetwebserver reprapfirmware 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 33.5 MB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://pkg.duet3d.com unstable/armv7 armhf duetsoftwareframework armhf 3.2.0-beta2 [2,030 B] Get:2 https://pkg.duet3d.com unstable/armv7 armhf duetsd all 1.1.0 [2,102 B] Get:3 https://pkg.duet3d.com unstable/armv7 armhf duettools armhf 3.2.0-beta2 [61.8 kB] Get:4 https://pkg.duet3d.com unstable/armv7 armhf duetcontrolserver armhf 3.2.0-beta2 [221 kB] Get:5 https://pkg.duet3d.com unstable/armv7 armhf duetruntime armhf 3.2.0-beta2 [28.8 MB] Get:6 https://pkg.duet3d.com unstable/armv7 armhf duetwebserver armhf 3.2.0-beta2 [84.0 kB] Get:7 https://pkg.duet3d.com unstable/armv7 armhf duetwebcontrol all 3.2.0-beta2 [3,504 kB] Get:8 https://pkg.duet3d.com unstable/armv7 armhf reprapfirmware all 3.2.0-beta2-1 [875 kB] Fetched 33.5 MB in 3min 34s (156 kB/s) Reading changelogs... Done (Reading database ... 98361 files and directories currently installed.) Preparing to unpack .../0-duetsoftwareframework_3.2.0-beta2_armhf.deb ... Unpacking duetsoftwareframework (3.2.0-beta2) over (3.1.1) ... Preparing to unpack .../1-duetsd_1.1.0_all.deb ... Unpacking duetsd (1.1.0) over (1.0.6) ... Preparing to unpack .../2-duettools_3.2.0-beta2_armhf.deb ... Unpacking duettools (3.2.0-beta2) over (3.1.1) ... Preparing to unpack .../3-duetcontrolserver_3.2.0-beta2_armhf.deb ... Unpacking duetcontrolserver (3.2.0-beta2) over (3.1.1) ... Preparing to unpack .../4-duetruntime_3.2.0-beta2_armhf.deb ... Unpacking duetruntime (3.2.0-beta2) over (3.1.1) ... Preparing to unpack .../5-duetwebserver_3.2.0-beta2_armhf.deb ... Unpacking duetwebserver (3.2.0-beta2) over (3.1.0) ... Preparing to unpack .../6-duetwebcontrol_3.2.0-beta2_all.deb ... Unpacking duetwebcontrol (3.2.0-beta2) over (3.1.1) ... Preparing to unpack .../7-reprapfirmware_3.2.0-beta2-1_all.deb ... Unpacking reprapfirmware (3.2.0-beta2-1) over (3.1.1-1) ... Setting up duetruntime (3.2.0-beta2) ... Setting up duetcontrolserver (3.2.0-beta2) ... Installing new version of config file /opt/dsf/conf/config.json ... Creating group dsf with gid 995. Creating user dsf (n/a) with uid 995 and gid 995. Setting up duettools (3.2.0-beta2) ... Setting up duetwebserver (3.2.0-beta2) ... Setting up duetsoftwareframework (3.2.0-beta2) ... To modify config files consider adding yourself to the dsf groupd: # usermod -a -G dsf <username> Setting up duetwebcontrol (3.2.0-beta2) ... Setting up duetsd (1.1.0) ... Setting up reprapfirmware (3.2.0-beta2-1) ... Sending update request to DCS... Error: Failed to send update request Unhandled exception. DuetAPIClient.InternalServerException: ArgumentNullException in Code: Value cannot be null. (Parameter 'input') at DuetAPIClient.BaseConnection.PerformCommand[T](BaseCommand command, CancellationToken cancellationToken) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetAPIClient/BaseConnection.cs:line 190 at DuetControlServer.Program.CheckForAnotherInstance() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Program.cs:line 305 at DuetControlServer.Program.Main(String[] args) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Program.cs:line 84 at DuetControlServer.Program.<Main>(String[] args)
After running into some Problems I would like to downgrade back to the stable version.
I tried so by repeating the code from above and changing unstable to stable but Running
sudo apt-get update
I get the following errorE: Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/duet3d.list E: The list of sources could not be read.
So next I tried to reflash the SD card. This method resulted in me not being able to connect to DWC. I guess due to version incompatibility. Running
sudo journalctl -u duetcontrolserver -e
leads to the following output.Oct 29 14:45:23 duet3 DuetControlServer[2630]: Written by Christian Hammacher for Duet3D Oct 29 14:45:23 duet3 DuetControlServer[2630]: Licensed under the terms of the GNU Public License Version 3 Oct 29 14:45:24 duet3 DuetControlServer[2630]: [info] Settings loaded Oct 29 14:45:25 duet3 DuetControlServer[2630]: [info] Environment initialized Oct 29 14:45:25 duet3 DuetControlServer[2630]: [fatal] Could not connect to Duet (Invalid protocol version 3) Oct 29 14:45:25 duet3 systemd[1]: duetcontrolserver.service: Succeeded. Oct 29 14:45:30 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart. Oct 29 14:45:30 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 67. Oct 29 14:45:30 duet3 systemd[1]: Stopped Duet Control Server. Oct 29 14:45:30 duet3 systemd[1]: Started Duet Control Server. Oct 29 14:45:31 duet3 DuetControlServer[2644]: Duet Control Server v3.1.1 Oct 29 14:45:31 duet3 DuetControlServer[2644]: Written by Christian Hammacher for Duet3D Oct 29 14:45:31 duet3 DuetControlServer[2644]: Licensed under the terms of the GNU Public License Version 3 Oct 29 14:45:32 duet3 DuetControlServer[2644]: [info] Settings loaded Oct 29 14:45:33 duet3 DuetControlServer[2644]: [info] Environment initialized Oct 29 14:45:33 duet3 DuetControlServer[2644]: [fatal] Could not connect to Duet (Invalid protocol version 3) Oct 29 14:45:33 duet3 systemd[1]: duetcontrolserver.service: Succeeded. Oct 29 14:45:38 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart. Oct 29 14:45:38 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 68. Oct 29 14:45:38 duet3 systemd[1]: Stopped Duet Control Server. Oct 29 14:45:38 duet3 systemd[1]: Started Duet Control Server. Oct 29 14:45:39 duet3 DuetControlServer[2659]: Duet Control Server v3.1.1 Oct 29 14:45:39 duet3 DuetControlServer[2659]: Written by Christian Hammacher for Duet3D Oct 29 14:45:39 duet3 DuetControlServer[2659]: Licensed under the terms of the GNU Public License Version 3 Oct 29 14:45:40 duet3 DuetControlServer[2659]: [info] Settings loaded Oct 29 14:45:40 duet3 DuetControlServer[2659]: [info] Environment initialized Oct 29 14:45:40 duet3 DuetControlServer[2659]: [fatal] Could not connect to Duet (Invalid protocol version 3) Oct 29 14:45:41 duet3 systemd[1]: duetcontrolserver.service: Succeeded. Oct 29 14:45:46 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart. Oct 29 14:45:46 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 69. Oct 29 14:45:46 duet3 systemd[1]: Stopped Duet Control Server. Oct 29 14:45:46 duet3 systemd[1]: Started Duet Control Server. Oct 29 14:45:46 duet3 DuetControlServer[2670]: Duet Control Server v3.1.1 Oct 29 14:45:46 duet3 DuetControlServer[2670]: Written by Christian Hammacher for Duet3D Oct 29 14:45:46 duet3 DuetControlServer[2670]: Licensed under the terms of the GNU Public License Version 3 Oct 29 14:45:48 duet3 DuetControlServer[2670]: [info] Settings loaded Oct 29 14:45:48 duet3 DuetControlServer[2670]: [info] Environment initialized Oct 29 14:45:48 duet3 DuetControlServer[2670]: [fatal] Could not connect to Duet (Invalid protocol version 3) Oct 29 14:45:48 duet3 systemd[1]: duetcontrolserver.service: Succeeded. Oct 29 14:45:53 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart. Oct 29 14:45:53 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 70. Oct 29 14:45:53 duet3 systemd[1]: Stopped Duet Control Server. Oct 29 14:45:53 duet3 systemd[1]: Started Duet Control Server. Oct 29 14:45:54 duet3 DuetControlServer[2685]: Duet Control Server v3.1.1 Oct 29 14:45:54 duet3 DuetControlServer[2685]: Written by Christian Hammacher for Duet3D Oct 29 14:45:54 duet3 DuetControlServer[2685]: Licensed under the terms of the GNU Public License Version 3 Oct 29 14:45:55 duet3 DuetControlServer[2685]: [info] Settings loaded Oct 29 14:45:56 duet3 DuetControlServer[2685]: [info] Environment initialized Oct 29 14:45:56 duet3 DuetControlServer[2685]: [fatal] Could not connect to Duet (Invalid protocol version 3) Oct 29 14:45:56 duet3 systemd[1]: duetcontrolserver.service: Succeeded. Oct 29 14:46:01 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=5s expired, scheduling restart. Oct 29 14:46:01 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 71. Oct 29 14:46:01 duet3 systemd[1]: Stopped Duet Control Server. Oct 29 14:46:01 duet3 systemd[1]: Started Duet Control Server. Oct 29 14:46:02 duet3 DuetControlServer[2699]: Duet Control Server v3.1.1 Oct 29 14:46:02 duet3 DuetControlServer[2699]: Written by Christian Hammacher for Duet3D Oct 29 14:46:02 duet3 DuetControlServer[2699]: Licensed under the terms of the GNU Public License Version 3 Oct 29 14:46:03 duet3 DuetControlServer[2699]: [info] Settings loaded Oct 29 14:46:04 duet3 DuetControlServer[2699]: [info] Environment initialized Oct 29 14:46:04 duet3 DuetControlServer[2699]: [fatal] Could not connect to Duet (Invalid protocol version 3) Oct 29 14:46:04 duet3 systemd[1]: duetcontrolserver.service: Succeeded.
I've since gone back to the unstable branch and have been able to connect to the web interface again. But I would still like to downgrade to the stable version.
-
Take a look here: https://forum.duet3d.com/topic/19257/downgrade-from-3-2beta2-to-3-1-1/2