uselagoon / lagoon-images

This repository builds the images used in Lagoon and local development environments
Apache License 2.0
27 stars 33 forks source link

ln: '/tmp/amazeeio_ssh-agent/socket' and '/tmp/amazeeio_ssh-agent/socket' are the same file #458

Closed ocean90 closed 1 year ago

ocean90 commented 4 years ago

Describe the bug Occasionally, when SSH-ing into the local CLI container the following error is returned and prevents the connection.

❯ docker-compose run --rm cli wp post update 132615 --post_status=draft;
ln: '/tmp/amazeeio_ssh-agent/socket' and '/tmp/amazeeio_ssh-agent/socket' are the same file

To Reproduce Unclear, it just happens occasionally when using something like docker-compose run --rm cli sh

Expected behavior The connection should happen.

Additional context Looking at https://github.com/amazeeio/lagoon/blob/f94b13eb91c1016aad7dc0360ff17e1f27aa4e6e/images/php/cli/10-ssh-agent.sh#L6-L7 it seems like the symlink still exists but is no socket anymore?

The current workaround is to run docker exec -it amazeeio-ssh-agent rm -rf /tmp/amazeeio_ssh-agent/socket and then run the previous command again.

Pygmy Version: 0.9.10 macOS Version: 10.15.4 (19E266)

tobybellwood commented 1 year ago

this is likely a pygmy issue :-) Please reopen there if you see it again?