Error setting up duetcontrolserver during upgrade to fw 3.2
-
When i try to upgrade the firmware for my duet 3 it fails to install the upgrade on my RPI3. The duet board i have updated with Bossa without issues.
Tried a complete new install without succes. Only downgrading back to 3.1.1 works.
See process result below:
pi@duet3:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up duetcontrolserver (3.2.0) ...
dpkg: error processing package duetcontrolserver (--configure):
installed duetcontrolserver package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of duettools:
duettools depends on duetcontrolserver (= 3.2.0); however:
Package duetcontrolserver is not configured yet.dpkg: error processing package duettools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of duetwebserver:
duetwebserver depends on duetcontrolserver (>= 3.2.0); however:
Package duetcontrolserver is not configured yet.dpkg: error processing package duetwebserver (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of duetsoftwareframework:
duetsoftwareframework depends on duetcontrolserver (= 3.2.0); however:
Package duetcontrolserver is not configured yet.
duetsoftwareframework depends on duettools (= 3.2.0); however:
Package duettools is not configured yet.
duetsoftwareframework depends on duetwebserver (= 3.2.0); however:
Package duetwebserver is not configured yet.dpkg: error processing package duetsoftwareframework (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of reprapfirmware:
reprapfirmware depends on duetsoftwareframework (>= 3.2.0); however:
Package duetsoftwareframework is not configured yet.
reprapfirmware depends on duetcontrolserver (>= 1.2.0.0); however:
Package duetcontrolserver is not configured yet.dpkg: error processing package reprapfirmware (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of duetwebcontrol:
duetwebcontrol depends on duetsoftwareframework (>= 3.2.0); however:
Package duetsoftwareframework is not configured yet.dpkg: error processing package duetwebcontrol (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of duetsd:
duetsd depends on duetsoftwareframework (>= 3.2.0); however:
Package duetsoftwareframework is not configured yet.dpkg: error processing package duetsd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
duetcontrolserver
duettools
duetwebserver
duetsoftwareframework
reprapfirmware
duetwebcontrol
duetsd
E: Sub-process /usr/bin/dpkg returned an error code (1) -
Can you try creating a fresh SD card using a fresh download of the Duet Pi image?
https://pkg.duet3d.com/DuetPi-lite.zip
https://pkg.duet3d.com/DuetPi.zip
Then do the apt update, etc
-
It sounds like the apt update was interrupted. Run
sudo dpkg --configure -a
and check if that resolves it. Note that you will need a different update approach if you are on the unstable feed; unfortunately apt doesn't respect semver when it comes to beta/rc suffixes. I'll check again if I can generate a new dsf package to fix this. -
@chrishamm we've had the same issue reported by a couple of LPC/STM users when moving from one beta to another.
I'll add that command to our wiki for reference -
@chrishamm After sudo dpkg --configure -a I was able to upgrade to fw 3.2 without problems.
Only now the DCS server is not starting, do you have any idea why?
pi@duet3:~ $ sudo systemctl start duetcontrolserver
Job for duetcontrolserver.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status duetcontrolserver.service" and "journalctl -xe" for details.pi@duet3:~ $ systemctl status duetcontrolserver.service
● duetcontrolserver.service - Duet Control Server
Loaded: loaded (/lib/systemd/system/duetcontrolserver.service; enabled; vendor preset: enabled)
Active: activating (start) since Thu 2021-01-07 17:48:27 CET; 1s ago
Main PID: 2434 (DuetControlServ)
Tasks: 9 (limit: 2063)
CGroup: /system.slice/duetcontrolserver.service
└─2434 /opt/dsf/bin/DuetControlServerJan 07 17:48:27 duet3 systemd[1]: Starting Duet Control Server...
Jan 07 17:48:27 duet3 DuetControlServer[2434]: Duet Control Server v3.2.0
Jan 07 17:48:27 duet3 DuetControlServer[2434]: Written by Christian Hammacher for Duet3D
Jan 07 17:48:27 duet3 DuetControlServer[2434]: Licensed under the terms of the GNU Public License Version 3
pi@duet3:~ $ -
@jay_s_uk I have tried a beta version before so it can be related. I will try a clean stable install and see if I get my board working on fw 3.2
-
@chrishamm After a new fresh SD card install and upgrade to fw 3.2 and another board update with Bossa I have the same result that the DCS server is not starting.
When i downgrade then to fw 3.1.1 then everything works. So it seems to be a bug in 3.2
-
@Klaas-B Your log is truncated. Please post the output of
journalctl -u duetcontrolserver -f
instead. -
@chrishamm the log keeps looping so i copied a part of it.
This is from my existing install my fresh install was not able to upgrade to 3.2 after i downgraded it to 3.1.1 even not after the sudo dpkg --configure -a command.
pi@duet3:~ $ journalctl -u duetcontrolserver -f
-- Logs begin at Fri 2021-01-08 11:18:45 CET. --
Jan 08 11:21:57 duet3 DuetControlServer[2342]: Licensed under the terms of the GNU Public License Version 3
Jan 08 11:21:58 duet3 DuetControlServer[2342]: [info] Settings loaded
Jan 08 11:21:59 duet3 DuetControlServer[2342]: [info] Environment initialized
Jan 08 11:22:00 duet3 DuetControlServer[2342]: [fatal] Could not connect to Duet (Timeout while waiting for transfer ready pin)
Jan 08 11:22:00 duet3 systemd[1]: duetcontrolserver.service: Failed with result 'protocol'.
Jan 08 11:22:00 duet3 systemd[1]: Failed to start Duet Control Server.
Jan 08 11:22:00 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=100ms expired, scheduling restart.
Jan 08 11:22:00 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 5.
Jan 08 11:22:00 duet3 systemd[1]: Stopped Duet Control Server.
Jan 08 11:22:00 duet3 systemd[1]: Starting Duet Control Server...
Jan 08 11:22:01 duet3 DuetControlServer[2362]: Duet Control Server v3.2.0
Jan 08 11:22:01 duet3 DuetControlServer[2362]: Written by Christian Hammacher for Duet3D
Jan 08 11:22:01 duet3 DuetControlServer[2362]: Licensed under the terms of the GNU Public License Version 3
Jan 08 11:22:02 duet3 DuetControlServer[2362]: [info] Settings loaded
Jan 08 11:22:03 duet3 DuetControlServer[2362]: [info] Environment initialized
Jan 08 11:22:03 duet3 DuetControlServer[2362]: [fatal] Could not connect to Duet (Timeout while waiting for transfer ready pin)
Jan 08 11:22:03 duet3 systemd[1]: duetcontrolserver.service: Failed with result 'protocol'.
Jan 08 11:22:03 duet3 systemd[1]: Failed to start Duet Control Server.
Jan 08 11:22:04 duet3 systemd[1]: duetcontrolserver.service: Service RestartSec=100ms expired, scheduling restart.
Jan 08 11:22:04 duet3 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 6.
Jan 08 11:22:04 duet3 systemd[1]: Stopped Duet Control Server.
Jan 08 11:22:04 duet3 systemd[1]: Starting Duet Control Server...
Jan 08 11:22:04 duet3 DuetControlServer[2385]: Duet Control Server v3.2.0
Jan 08 11:22:04 duet3 DuetControlServer[2385]: Written by Christian Hammacher for Duet3D
Jan 08 11:22:04 duet3 DuetControlServer[2385]: Licensed under the terms of the GNU Public License Version 3
Jan 08 11:22:06 duet3 DuetControlServer[2385]: [info] Settings loaded
Jan 08 11:22:06 duet3 DuetControlServer[2385]: [info] Environment initialized
^C
pi@duet3:~ $ -
@Klaas-B Remove the SD card from your Duet if there is one in it.
-
@chrishamm I have removed the SD card from my Duet and now it is working. Did not now that the card should not be in there. So the SD card in the duet has no use?
But problem solved, thanks for your help!
-
@Klaas-B Glad to hear that solved it! The SD card can be used either in the Duet or the Pi but if a Pi is attached no SD card must be present in the Duet.