DockerClient->startContainer return: Server error - what does it mean?


KluthR

Recommended Posts

Hi,

 

I use the https://github.com/limetech/webgui/blob/master/plugins/dynamix.docker.manager/include/DockerClient.php to stop/start some containers. It returns `$code` which is normally "1". But sometimes I get "Server error" back. But I dont see any messages inside the system log. What could cause "Server error" and how could I debug it?

 

Thanks in advance!

 

nas-diagnostics-20221129-1738.zip

Unraid 6.11.5

Link to comment
20 minutes ago, Squid said:

docker run would probably tell you why

Are those actions not logged via docker.log?

 

I remember, that I got something out of docker, using docker run:

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: time="2022-11-09T17:46:39+01:00" level=fatal msg="failed to set IPv6 gateway while updating gateway: file exists": unknown
Error: failed to start containers: mysql

 

I dont know if this is a docker issue only here.

 

However, does the API (used by DockerClient) return more info here, which could be added to the return variable?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.