Error appearing during execution of init script

Hello, during starting localstack pod in helm I have some problems with add secrets to secret menager through script.


  repository: localstack/localstack
  tag: "2.3.2"
  pullPolicy: IfNotPresent

  enableInitFiles: true

alias awslocal="aws --endpoint-url http://host.docker.internal:4566 --profile localstack"

awslocal secretsmanager create-secret --name test-secret --secret-string '{ "user": "test", "password": "test" }' is set as executable:
-rwxr-xr-x 1 macbus macbus 11645 Oct 4 12:07*

Error from localstack logs:

Could not connect to the endpoint URL: "http://host.docker.internal:4566/"
2023-10-23T08:29:43.609 ERROR --- [  MainThread] localstack.runtime.init    : Error while running script Script(path='/etc/localstack/init/ready.d/', stage=READY, state=ERROR)
Traceback (most recent call last):
  File "/opt/code/localstack/localstack/runtime/", line 136, in run_stage
  File "/opt/code/localstack/localstack/runtime/", line 71, in run
    raise OSError("Script %s returned a non-zero exit code %s" % (path, exit_code))
OSError: Script /etc/localstack/init/ready.d/ returned a non-zero exit code 255

What is interesting, when I change tag from 2.3.2 to latest (ver. script work correctly. I also checked versions 2.2.0, 2.3.0, but only is working

I appreciate the thorough report. If the matter has been resolved in the most recent version of LocalStack, kindly consider utilizing it. Within the next few weeks, we will release a newer, tagged version.

1 Like