I was trying (again) to get a dotnet agent up and running, and after adding the sample package (built from this) to the agent, ended up with it being stuck on restarting state.
Can’t stop it, can’t delete it
(HTTP code 409) unexpected - cannot remove container "/curly-fire-7aa3": container is restarting: stop the container before removing or force remove
From the error message, force remove looks like an option, but not sure if this can be done from OpenFlow, or do we need to go into the server and do it from docker?
Update:
I got the package working (yay), but only in another agent.
In the meantime, got another one stuck in restarting state, most likely due to an initial invalid setup of the environment variable with packageid
.
Correcting it, once it’s stuck in restart, doesn’t change anything.
Hard to say what (if anything) is happening inside, because logs get flushed when it restarts (to my knowledge), so it gets hard to debug.
if you need to troubleshoot, you can check “sleep”
this will override the run command with a counting loop, so you can open a terminal to the container and run things manually. For my agent image that would be node dist/runagent.js
.
But dotnet is not part of the normal image, for the dotnet image that would be dotnet dotnetapi.dll
oh, I think i better understand.
The container is constantly restarting and docker will not allow deleting or updating while it’s restarting ? then setting sleep will not “help” or at least, not until you can get it “set” in docker too.
Try and see if you can “hit” the sweet spot doing restarts where it will allow you to stop the container, then you can either set “sleep” to troubleshoot, or if you don’t care, just delete it.
If not, then you need to get ssh access to the server, to run docker stop on the container id ( docker ps
to find the id, and then docker stop id
to stop it. then docker rm id
to remove it, or click “stop” again inside openflow )
Thanks.
I passed it along to the platform (we’ll just get rid of them).
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.