terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

The process has been signaled with signal "4". #128

Open vladdancer opened 8 years ago

vladdancer commented 8 years ago

When I run terra environment:enable I get an error

[Symfony\Component\Process\Exception\RuntimeException] The process has been signaled with signal "4".

So I've run with -vvv and it seems that EnvironmentFactory->enable() throws an exception when try to execute new Process('docker-compose up -d', $this->getDockerComposePath())

I'm using MacBook (13-inch, Mid 2010), I've found issue about docker-compose https://github.com/docker/compose/issues/1885

This is happening because by default, Homebrew builds Python with all of the optimizations that the build machine can support. Assuming the build is happening on a Mac with a Sandy Bridge or newer processor, those optimizations will include the use of AVX instructions.

So the fix was to run pip install docker-compose

I leave it here if someone may need a workaround.

jonpugh commented 7 years ago

Thanks, @vladdancer! Installing docker-compose is not so much a workaround as a requirement!
;)

We should do more to detect missing docker-compose and inform the user on how to install it.