localstack icon indicating copy to clipboard operation
localstack copied to clipboard

exception during call chain when deploying kinesis lambda subscriber

Open rcollette opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

When running a cdk where I have updated a lambda function that is a subscriber to a kinesis queue I get the error

 localstack_main  | 2023-09-19T19:42:40.058 ERROR --- [   asgi_gw_1] l.aws.handlers.logging     : exception during call chain: ("Version '%s' already starting up and in state %s", 'arn:aws:lambda:us-east-1:000000000000:function:OktaEventConsumerDev:$LATEST', None)

Expected Behavior

The function should deploy. The error message should include the detail in the %s placeholders.

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

docker compose up
version: "3.8"

services:
  localstack:
    container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
    image: localstack/localstack
    ports:
      - "127.0.0.1:4566:4566"            # LocalStack Gateway
      - "127.0.0.1:4510-4559:4510-4559"  # external services port range
    environment:
      - DEBUG=${DEBUG-}
      - DOCKER_HOST=unix:///var/run/docker.sock
      - LAMBDA_DOCKER_FLAGS=-e NODE_OPTIONS=--inspect-brk=0.0.0.0:9229 -p 9229:9229
      - LAMBDA_RUNTIME_ENVIRONMENT_TIMEOUT=30
    volumes:
      - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

cdklocal deploy --all --require-approval never

Environment

- OS: macOS 13.5.2
- LocalStack: latest (4dae755e65a454110749dbccc6e1043a001f91dbe7c565fed3bdb8680aa83752)

Anything else?

No response

rcollette avatar Sep 19 '23 19:09 rcollette

Hello 👋! It looks like this issue hasn’t been active in longer than five months. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

localstack-bot avatar Feb 17 '24 11:02 localstack-bot