You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
I struggled to reproduce this. In particular, I do not get the error with weave launch sans --local; I get "Container weave died", as expected. And then it dawned on me that we are running different shells. On my ubuntu box weave --local runs dash. Without --local the shell that gets run is whatever is in the weavexec image, which is busybox's shell, which is some flavour of ash.
@dpw discovered that POSIX says "If the n operand is invalid or is greater than "$#", this may be considered a syntax error and a non-interactive shell may exit; if the shell does not exit in this case, a non-zero exit status shall be returned. Otherwise, zero shall be returned."
So locally the invalid shift causes the shell to exit, whereas in weavexec it just causes the http_call_ip function to return a non-zero status. Which is good since that makes this a less critical bug.
If the container dies just before the
docker inspect
at the beginning ofwait_for_status
thenTARGET_IP
can be blank, which causes an error.To reproduce: insert
docker stop $1
in the script at the beginning ofwait_for_status
:The text was updated successfully, but these errors were encountered: