DWC not starting after update try
-
@chrishamm It didnt worked. I renamed the config.g as you instrected me. DWC still doent worked, I rebooted also with no sucess either.
I checked config.g, no change to the fie was done, I even manually inserted a G21 command to be sure it is in mms, and it didnt helped.
How can I downgrade from the ssh console to the previous version of the softwares that created this mess?
Right now there is nothing to upgrade, I tried the sudo upgrade method but it says everything is up to date.Logs:
Sep 06 15:06:21 PU-LT-4590 DuetControlServer[1778]: [info] Application has shut down
Sep 06 15:06:21 PU-LT-4590 systemd[1]: duetcontrolserver.service: Main process exited, code=exited, status=70/SOFTWARE
Sep 06 15:06:21 PU-LT-4590 systemd[1]: duetcontrolserver.service: Failed with result 'exit-code'.
Sep 06 15:06:22 PU-LT-4590 systemd[1]: duetcontrolserver.service: Service RestartSec=100ms expired, scheduling restart.
Sep 06 15:06:22 PU-LT-4590 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 11.
Sep 06 15:06:22 PU-LT-4590 systemd[1]: Stopped Duet Control Server.
Sep 06 15:06:22 PU-LT-4590 systemd[1]: Starting Duet Control Server...
Sep 06 15:06:23 PU-LT-4590 DuetControlServer[1846]: Duet Control Server v3.4.1
Sep 06 15:06:23 PU-LT-4590 DuetControlServer[1846]: Written by Christian Hammacher for Duet3D
Sep 06 15:06:23 PU-LT-4590 DuetControlServer[1846]: Licensed under the terms of the GNU Public License Version 3
Sep 06 15:06:25 PU-LT-4590 DuetControlServer[1846]: [info] Settings loaded
Sep 06 15:06:26 PU-LT-4590 DuetControlServer[1846]: [info] Environment initialized
Sep 06 15:06:26 PU-LT-4590 DuetControlServer[1846]: [info] Connection to Duet established
Sep 06 15:06:26 PU-LT-4590 DuetControlServer[1846]: [info] IPC socket created at /run/dsf/dcs.sock
Sep 06 15:06:27 PU-LT-4590 systemd[1]: Started Duet Control Server.
Sep 06 15:06:29 PU-LT-4590 DuetControlServer[1846]: [fatal] Abnormal program termination
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: [fatal] Update task faulted
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: System.ArgumentException: Requested value 'in' was not found.
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.TryParseInt32Enum(RuntimeType enumType, ReadOnlySpan
1 value, Int32 minInclusive, Int32 maxInclusive, Boole
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.TryParse(Type enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result) Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.Utility.JsonLowerCaseStringEnumConverter.JsonLowerCaseStringEnumConverterInner
1.Read(Utf8JsonReader& reader, T
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOption Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStac
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.Serialization.JsonConverter1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable1 act Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 json, JsonTypeInfo jsonTypeInfo)
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options)
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ModelCollection1.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties, Int32 offset Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ObjectModel.InternalUpdateFromJson(String key, JsonElement jsonElement, Boolean ignoreSbcProperties Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ObjectModel.UpdateFromFirmwareJson(String key, JsonElement jsonElement, Int32 offset, Boolean last) Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetControlServer.Model.Updater.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Model/Updat Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: [fatal] Update task faulted Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: System.ArgumentException: Requested value 'in' was not found. Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan
1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.TryParseInt32Enum(RuntimeType enumType, ReadOnlySpan1 value, Int32 minInclusive, Int32 maxInclusive, Boole Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.TryParse(Type enumType, ReadOnlySpan
1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.Utility.JsonLowerCaseStringEnumConverter.JsonLowerCaseStringEnumConverterInner1.Read(Utf8JsonReader& reader, T Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOption
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStac Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.Serialization.JsonConverter
1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options,
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable
1 act
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo jsonTypeInfo) Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options) Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ModelCollection
1.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties, Int32 offset
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ObjectModel.InternalUpdateFromJson(String key, JsonElement jsonElement, Boolean ignoreSbcProperties
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetAPI.ObjectModel.ObjectModel.UpdateFromFirmwareJson(String key, JsonElement jsonElement, Int32 offset, Boolean last)
Sep 06 15:06:30 PU-LT-4590 DuetControlServer[1846]: at DuetControlServer.Model.Updater.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Model/Updat
Sep 06 15:06:34 PU-LT-4590 DuetControlServer[1846]: [info] Application has shut down
Sep 06 15:06:34 PU-LT-4590 systemd[1]: duetcontrolserver.service: Main process exited, code=exited, status=70/SOFTWARE
Sep 06 15:06:34 PU-LT-4590 systemd[1]: duetcontrolserver.service: Failed with result 'exit-code'.
Sep 06 15:06:34 PU-LT-4590 systemd[1]: duetcontrolserver.service: Service RestartSec=100ms expired, scheduling restart.
Sep 06 15:06:34 PU-LT-4590 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 12.
Sep 06 15:06:34 PU-LT-4590 systemd[1]: Stopped Duet Control Server.
Sep 06 15:06:34 PU-LT-4590 systemd[1]: Starting Duet Control Server...
Sep 06 15:06:35 PU-LT-4590 DuetControlServer[1920]: Duet Control Server v3.4.1
Sep 06 15:06:35 PU-LT-4590 DuetControlServer[1920]: Written by Christian Hammacher for Duet3D
Sep 06 15:06:35 PU-LT-4590 DuetControlServer[1920]: Licensed under the terms of the GNU Public License Version 3
Sep 06 15:06:37 PU-LT-4590 DuetControlServer[1920]: [info] Settings loaded
Sep 06 15:06:38 PU-LT-4590 DuetControlServer[1920]: [info] Environment initialized
Sep 06 15:06:38 PU-LT-4590 DuetControlServer[1920]: [info] Connection to Duet established
Sep 06 15:06:39 PU-LT-4590 DuetControlServer[1920]: [info] IPC socket created at /run/dsf/dcs.sock
Sep 06 15:06:39 PU-LT-4590 systemd[1]: Started Duet Control Server.
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: [fatal] Abnormal program termination
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: [fatal] Update task faulted
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: System.ArgumentException: Requested value 'in' was not found.
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.TryParseInt32Enum(RuntimeType enumType, ReadOnlySpan
1 value, Int32 minInclusive, Int32 maxInclusive, Boole
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.TryParse(Type enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result) Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.Utility.JsonLowerCaseStringEnumConverter.JsonLowerCaseStringEnumConverterInner
1.Read(Utf8JsonReader& reader, T
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOption Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStac
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.Serialization.JsonConverter1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable1 act Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 json, JsonTypeInfo jsonTypeInfo)
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options)
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ModelCollection1.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties, Int32 offset Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ObjectModel.InternalUpdateFromJson(String key, JsonElement jsonElement, Boolean ignoreSbcProperties Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ObjectModel.UpdateFromFirmwareJson(String key, JsonElement jsonElement, Int32 offset, Boolean last) Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at DuetControlServer.Model.Updater.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Model/Updat Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: [fatal] Update task faulted Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: System.ArgumentException: Requested value 'in' was not found. Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan
1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.TryParseInt32Enum(RuntimeType enumType, ReadOnlySpan1 value, Int32 minInclusive, Int32 maxInclusive, Boole Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.TryParse(Type enumType, ReadOnlySpan
1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.Utility.JsonLowerCaseStringEnumConverter.JsonLowerCaseStringEnumConverterInner1.Read(Utf8JsonReader& reader, T Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOption
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStac Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.Serialization.JsonConverter
1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options,
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable
1 act
Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo jsonTypeInfo) Sep 06 15:06:43 PU-LT-4590 DuetControlServer[1920]: at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options) Sep 06 15:06:44 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ModelObject.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties) in /home/christian Sep 06 15:06:44 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ModelCollection
1.UpdateFromJson(JsonElement jsonElement, Boolean ignoreSbcProperties, Int32 offset
Sep 06 15:06:44 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ObjectModel.InternalUpdateFromJson(String key, JsonElement jsonElement, Boolean ignoreSbcProperties
Sep 06 15:06:44 PU-LT-4590 DuetControlServer[1920]: at DuetAPI.ObjectModel.ObjectModel.UpdateFromFirmwareJson(String key, JsonElement jsonElement, Int32 offset, Boolean last)
Sep 06 15:06:44 PU-LT-4590 DuetControlServer[1920]: at DuetControlServer.Model.Updater.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Model/Updat
Sep 06 15:06:46 PU-LT-4590 DuetControlServer[1920]: [info] Application has shut down
Sep 06 15:06:46 PU-LT-4590 systemd[1]: duetcontrolserver.service: Main process exited, code=exited, status=70/SOFTWARE
Sep 06 15:06:46 PU-LT-4590 systemd[1]: duetcontrolserver.service: Failed with result 'exit-code'.
Sep 06 15:06:46 PU-LT-4590 systemd[1]: duetcontrolserver.service: Service RestartSec=100ms expired, scheduling restart.
Sep 06 15:06:46 PU-LT-4590 systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 13.
Sep 06 15:06:46 PU-LT-4590 systemd[1]: Stopped Duet Control Server.
Sep 06 15:06:46 PU-LT-4590 systemd[1]: Starting Duet Control Server... -
@Tinchus Then please try to restart your board and make sure
config.g
is not executed on start-up. From your log I can clearly see DSF tries to deserializein
[which DSF thinks should beinch
] and there is no other reference to"in"
in RRF so I strongly suspect there isG20
somewhere in your files (maybe by accident, I don't know):DuetControlServer[1920]: System.ArgumentException: Requested value 'in' was not found.
If it still fails to start after power-cycling/resetting the Duet, try to erase the firmware and flash RRF 3.4.1 manually as per these instructions and a USB cable: https://docs.duet3d.com/en/User_manual/RepRapFirmware/Updating_firmware#fallback-procedure-2
The bug that makes DCS crash in this particular case will be fixed in the next version.
-
@chrishamm Hello. Just in case: my setup is a SBC duet 3 with a raspi connected. So the software problem is on the raspberry. Can I just put a sd card with a backup I had. Version on that sdcard is 3.4.1, and firmware on the duet is already 3.4.1
Would that fix it?Or: is there a y way I can reload everything through the ssh connection?
-
@tinchus Can you connect a USB cable to the Duet and collect the output of
M409 K"inputs" F"d99vn"
from a serial console? -
@chrishamm Im not that skilled jajajajjaa. This duet3 is conected on SBC mode to a raspberry. If I connect directly to the USB port on the duet board, how do I access the interface? Everything on my setup is done for SBC mode. Do I need to disconnect all cables from the duet?
Right now I dont have personall access, but can find a way (is a printer I assembled at the school, that is why if I can do things remotly would help me a lot) -
@tinchus I understand it is connected via SBC but I am still not convinced that you don't have
G20
anywhere in your config/job files. Showing the output of that command should confirm the origin of this instruction. See https://docs.duet3d.com/en/User_manual/Troubleshooting/Terminal_Emulators -
@chrishamm I have checked config.g and I can say there is no G20 command there or any "inch" command o mention. I have not checked the jobs folder. I can just erase all gcodes on the printer from that folder and see what happens?
-
@chrishamm I do have ssh connection to the printer, is there any way I can aluch that command from that ssh conection console in the printer?
-
@tinchus You can now try to upgrade your system using
apt update
/apt dist-upgrade
. The version that we released today should fix your issue, and the upgrade command does not query the affected object model key. -
@chrishamm Hello. The update fixed the issue. Sadly, I had scheduled the execution of your requested command for monday, so I cant provide you with the output of that command in order for you to fully diagnose the problem.
But this update did the magic. THANKS!