This repository was archived by the owner on Mar 23, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
JUnit 5 failing in the spining up of localstack infrastructure #1928
Copy link
Copy link
Closed
Labels
type: questionPlease ask questions on our community slack (slack.localstack.cloud)Please ask questions on our community slack (slack.localstack.cloud)type: usageUsage of LocalStack and Best PracticesUsage of LocalStack and Best Practices
Description
I am trying a sample application, I first added the to connect to SQS, SNS and ElasticSearch
@ExtendWith(LocalstackExtension.class)
@LocalstackDockerProperties(services = {"sqs", "sns", "elasticsearch"}, randomizePorts = true)
class MyAppApplicationTests {
@Test
void contextLoads() {
AmazonSQS sqs = TestUtils.getClientSQS();
AmazonSNS sns = TestUtils.getClientSNS();
}
}2020-01-06 17:49:21.899 INFO 20484 --- [ main] cloud.localstack.deprecated.Localstack : /tmp/localstack_install_dir
2020-01-06 17:49:21.899 INFO 20484 --- [ main] cloud.localstack.deprecated.Localstack : Waiting for infrastructure to be spun up
java.lang.RuntimeException: Unable to start local infrastructure. Debug output: make: Entering directory '/tmp/localstack_install_dir'
(. .venv/bin/activate; exec bin/localstack start --host)
Starting local dev environment. CTRL-C to quit.
ERROR: 'cd /tmp/localstack_install_dir/localstack; npm install https://github.com/whummer/serverless-iot-offline': exit code 127; output: /bin/sh: 1: npm: not found
ERROR: 'cd "/tmp/localstack_install_dir/localstack" && npm install': exit code 127; output: /bin/sh: 1: npm: not found
Error starting infrastructure: Command 'cd "/tmp/localstack_install_dir/localstack" && npm install' returned non-zero exit status 127. Traceback (most recent call last):
File "/tmp/localstack_install_dir/localstack/services/infra.py", line 432, in start_infra
install.install_components(apis)
File "/tmp/localstack_install_dir/localstack/services/install.py", line 210, in install_components
parallelize(install_component, names)
File "/tmp/localstack_install_dir/localstack/utils/common.py", line 1090, in parallelize
result = pool.map(func, list)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 253, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
CalledProcessError: Command 'cd "/tmp/localstack_install_dir/localstack" && npm install' returned non-zero exit status 127.
ERROR: Command 'cd "/tmp/localstack_install_dir/localstack" && npm install' returned non-zero exit status 127.
Makefile:47: recipe for target 'infra' failed
make: Leaving directory '/tmp/localstack_install_dir'
I tried removing the /tmp/localstack_install_dir and it errors like this
Jan 06, 2020 5:55:17 PM cloud.localstack.deprecated.Localstack ensureInstallation
INFO: Installing LocalStack to temporary directory (this may take a while): /tmp/localstack_install_dir
java.lang.RuntimeException: java.lang.IllegalStateException: Failed to run command 'bash -c cd "/tmp/localstack_install_dir"; make install', return code 2.
STDOUT: make setup-venv && \
(test ! -e requirements.txt || (. .venv/bin/activate; pip -q install -r requirements.txt && \
PYTHONPATH=. exec python localstack/services/install.py testlibs)) || exit 1
make[1]: Entering directory '/tmp/localstack_install_dir'
(test `which virtualenv` || pip install --user virtualenv) && \
(test -e .venv || virtualenv .venv)
Makefile:14: recipe for target 'setup-venv' failed
make[1]: Leaving directory '/tmp/localstack_install_dir'
Makefile:18: recipe for target 'install' failed
STDERR: /bin/sh: 2: virtualenv: not found
make[1]: *** [setup-venv] Error 127
make: *** [install] Error 1
I have localstack installed in /tmp/localstack, it works fine on the command line, should I try to use it as the root dir?
Help me localstack gods.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: questionPlease ask questions on our community slack (slack.localstack.cloud)Please ask questions on our community slack (slack.localstack.cloud)type: usageUsage of LocalStack and Best PracticesUsage of LocalStack and Best Practices