I have a better sequence of how things are happening:
initial state: SBC and duet booted, everything works.
I press emergency stop in the web UI
new state: web UI is asking for password, and remote upload doesn't work (401) if I enter the password in the web UI, the UI works, but I can not upload files from prusa
I SSH into the pi, and restart the duetcontrolserver.service
now the file upload works again
When I press the emergency stop button, I have the following control server logs:
Oct 31 13:06:35 lili DuetControlServer[819]: [warn] Emergency stop
Oct 31 13:06:35 lili DuetControlServer[819]: [warn] Resetting controller
Oct 31 13:06:35 lili DuetControlServer[819]: [info] Application has shut down
Oct 31 13:06:35 lili systemd[1]: duetcontrolserver.service: Succeeded.
Oct 31 13:06:35 lili systemd[1]: duetcontrolserver.service: Consumed 25.798s CPU time.
Oct 31 13:06:35 lili systemd[1]: duetcontrolserver.service: Scheduled restart job, restart counter is at 1.
Oct 31 13:06:35 lili systemd[1]: Stopped Duet Control Server.
Oct 31 13:06:35 lili systemd[1]: duetcontrolserver.service: Consumed 25.798s CPU time.
Oct 31 13:06:35 lili systemd[1]: Starting Duet Control Server...
Oct 31 13:06:36 lili DuetControlServer[982]: Duet Control Server v3.4.4
Oct 31 13:06:36 lili DuetControlServer[982]: Written by Christian Hammacher for Duet3D
Oct 31 13:06:36 lili DuetControlServer[982]: Licensed under the terms of the GNU Public License Version 3
Oct 31 13:06:36 lili DuetControlServer[982]: [info] Settings loaded
Oct 31 13:06:36 lili DuetControlServer[982]: [info] Environment initialized
Oct 31 13:06:36 lili DuetControlServer[982]: [info] Connection to Duet established
Oct 31 13:06:36 lili DuetControlServer[982]: [info] IPC socket created at /run/dsf/dcs.sock
Oct 31 13:06:37 lili systemd[1]: Started Duet Control Server.
Oct 31 13:06:37 lili DuetControlServer[982]: [info] Starting macro file config.g on channel Trigger
Oct 31 13:06:38 lili DuetControlServer[982]: [info] Finished macro file config.g
And when I restart it to "fix things", I have this logs:
ct 31 13:07:41 lili systemd[1]: Stopping Duet Control Server...
Oct 31 13:07:41 lili DuetControlServer[982]: [warn] Received SIGTERM, shutting down...
Oct 31 13:07:41 lili DuetControlServer[982]: [info] Application has shut down
Oct 31 13:07:42 lili systemd[1]: duetcontrolserver.service: Succeeded.
Oct 31 13:07:42 lili systemd[1]: Stopped Duet Control Server.
Oct 31 13:07:42 lili systemd[1]: duetcontrolserver.service: Consumed 10.851s CPU time.
Oct 31 13:07:42 lili systemd[1]: Starting Duet Control Server...
Oct 31 13:07:42 lili DuetControlServer[1089]: Duet Control Server v3.4.4
Oct 31 13:07:42 lili DuetControlServer[1089]: Written by Christian Hammacher for Duet3D
Oct 31 13:07:42 lili DuetControlServer[1089]: Licensed under the terms of the GNU Public License Version 3
Oct 31 13:07:42 lili DuetControlServer[1089]: [info] Settings loaded
Oct 31 13:07:43 lili DuetControlServer[1089]: [info] Environment initialized
Oct 31 13:07:43 lili DuetControlServer[1089]: [info] Connection to Duet established
Oct 31 13:07:43 lili DuetControlServer[1089]: [info] IPC socket created at /run/dsf/dcs.sock
Oct 31 13:07:43 lili systemd[1]: Started Duet Control Server.