You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest public.ecr.aws/lambda/ruby:3.3 is upgraded to 3.3.5 but sam local invoke still uses public.ecr.aws/lambda/ruby:3.3-preview and the version is 3.3.0 this version has some bug cause sam local invoke cannot work correctly.
sam build
Starting Build use cache
Cache is invalid, running build and copying resources for following layers (GemLayer)
Building layer 'GemLayer'
GemLayer: Running CustomMakeBuilder:CopySource
GemLayer: Running CustomMakeBuilder:MakeBuild
GemLayer: Current Artifacts Directory : /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer
cp Gemfile* /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer
cd /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer \
&& bundle config set deployment 'true' \
&& bundle config set without 'development test' \
&& bundle config set path /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer \
&& bundle config set no-cache 'true' \
&& bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching dry-inflector 1.2.0
Fetching rexml 3.4.0
Fetching aws-partitions 1.1035.0
Fetching aws-eventstream 1.3.0
Fetching logger 1.6.5
Fetching zeitwerk 2.7.1
Fetching concurrent-ruby 1.3.5
Fetching jmespath 1.6.2
Installing dry-inflector 1.2.0
Installing aws-partitions 1.1035.0
Installing zeitwerk 2.7.1
Installing aws-eventstream 1.3.0
Fetching aws-sigv4 1.11.0
Installing logger 1.6.5
Installing concurrent-ruby 1.3.5
Installing jmespath 1.6.2
Fetching dry-core 1.1.0
Installing rexml 3.4.0
Fetching rss 0.3.1
Installing aws-sigv4 1.11.0
Fetching aws-sdk-core 3.215.0
Installing dry-core 1.1.0
Fetching dry-auto_inject 1.1.0
Fetching dry-configurable 1.3.0
Installing rss 0.3.1
Installing aws-sdk-core 3.215.0
Installing dry-auto_inject 1.1.0
Installing dry-configurable 1.3.0
Fetching aws-sdk-sqs 1.90.0
Fetching dry-system 1.2.1
Installing aws-sdk-sqs 1.90.0
Installing dry-system 1.2.1
Bundle complete! 9 Gemfile dependencies, 17 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./.`
find /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer -type f -name '*.c' -delete
find /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer -type f -name '*.h' -delete
find /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer -type f -name '*.o' -delete
find /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer -type f -name '*.gem' -delete
rm /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer/Gemfile*
Manifest file is changed (new hash: c45eab29cbf47ffad05d4b7e32668f97) or dependency folder
(.aws-sam/deps/35f4b3e3-f1cf-4fe3-8a53-e3999b6e1b31) is missing for (NotifierFunction), downloading dependencies
and copying/building source
Building codeuri: /Users/elct9620/Workspace/Assistant/notifier runtime: ruby3.3 architecture: x86_64 functions:
NotifierFunction
Manifest file is changed (new hash: c45eab29cbf47ffad05d4b7e32668f97) or dependency folder
(.aws-sam/deps/01569123-8175-4c9f-855b-46ea9f9986fd) is missing for (FetcherFunction), downloading dependencies
and copying/building source
Building codeuri: /Users/elct9620/Workspace/Assistant/notifier runtime: ruby3.3 architecture: x86_64 functions:
FetcherFunction
NotifierFunction: Running CustomMakeBuilder:CopySource
FetcherFunction: Running CustomMakeBuilder:CopySource
NotifierFunction: Running CustomMakeBuilder:MakeBuild
FetcherFunction: Running CustomMakeBuilder:MakeBuild
NotifierFunction: Current Artifacts Directory :
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/NotifierFunction
FetcherFunction: Current Artifacts Directory :
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
rsync --exclude-from .rsyncignore -a . /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/NotifierFunction
rsync --exclude-from .rsyncignore -a . /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
cd /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction \
&& bundle config set path /opt \
&& bundle config set deployment 'true' \
&& bundle config set without 'development test'
cd /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/NotifierFunction \
&& bundle config set path /opt \
&& bundle config set deployment 'true' \
&& bundle config set without 'development test'
Build Succeeded
Built Artifacts : .aws-sam/build
Built Template : .aws-sam/build/template.yaml
Commands you can use next
[] Validate SAM template: sam validate
[] Invoke Function: sam local invoke
[] Test Function in the Cloud: sam sync --stack-name {{stack-name}} --watch
[] Deploy: sam deploy --guided
sam local invoke FetcherFunction --event events/Fetcher.json --env-vars env.json --debug
2025-01-17 10:41:56,653 | Config file location: /Users/elct9620/Workspace/Assistant/notifier/samconfig.toml
2025-01-17 10:41:56,654 | Loading configuration values from [default.['local', 'invoke'].parameters]
(env.command_name.section) in config file at '/Users/elct9620/Workspace/Assistant/notifier/samconfig.toml'...
2025-01-17 10:41:56,655 | Configuration values successfully loaded.
2025-01-17 10:41:56,655 | Configuration values are: {'stack_name': 'blog-notifier'}
2025-01-17 10:41:56,659 | Using SAM Template at
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,674 | Using config file: samconfig.toml, config environment: default
2025-01-17 10:41:56,674 | Expand command line arguments to:
2025-01-17 10:41:56,674 |
--template_file=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
--event=events/Fetcher.json --env_vars=env.json --function_logical_id=FetcherFunction --no_event
--layer_cache_basedir=/Users/elct9620/.aws-sam/layers-pkg --container_host=localhost
--container_host_interface=127.0.0.1
2025-01-17 10:41:56,675 | local invoke command is called
2025-01-17 10:41:56,711 | No current session found, using default AWS::AccountId
2025-01-17 10:41:56,715 | Collected default values for parameters: {'Namespace': 'blog-notifier'}
2025-01-17 10:41:56,725 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource GemLayer is GemLayer
2025-01-17 10:41:56,725 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource FetcherFunction is FetcherFunction
2025-01-17 10:41:56,726 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource NotifierFunction is NotifierFunction
2025-01-17 10:41:56,726 | There is no customer defined id or cdk path defined for resource NotifierQueue, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,726 | There is no customer defined id or cdk path defined for resource Config, so we will
use the resource logical id as the resource id
2025-01-17 10:41:56,727 | There is no customer defined id or cdk path defined for resource ConfigEnvironment, so
we will use the resource logical id as the resource id
2025-01-17 10:41:56,727 | There is no customer defined id or cdk path defined for resource ConfigChannels, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,728 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,728 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,729 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,729 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,730 | 0 stacks found in the template
2025-01-17 10:41:56,730 | Collected default values for parameters: {'Namespace': 'blog-notifier'}
2025-01-17 10:41:56,740 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource GemLayer is GemLayer
2025-01-17 10:41:56,741 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource FetcherFunction is FetcherFunction
2025-01-17 10:41:56,741 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource NotifierFunction is NotifierFunction
2025-01-17 10:41:56,741 | There is no customer defined id or cdk path defined for resource NotifierQueue, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,742 | There is no customer defined id or cdk path defined for resource Config, so we will
use the resource logical id as the resource id
2025-01-17 10:41:56,742 | There is no customer defined id or cdk path defined for resource ConfigEnvironment, so
we will use the resource logical id as the resource id
2025-01-17 10:41:56,742 | There is no customer defined id or cdk path defined for resource ConfigChannels, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,743 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,743 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,744 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,744 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,745 | 7 resources found in the stack
2025-01-17 10:41:56,745 | --base-dir is not presented, adjusting uri GemLayer relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,745 | Found Serverless function with name='FetcherFunction' and CodeUri='FetcherFunction'
2025-01-17 10:41:56,745 | --base-dir is not presented, adjusting uri FetcherFunction relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,746 | --base-dir is not presented, adjusting uri GemLayer relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,746 | Found Serverless function with name='NotifierFunction' and CodeUri='NotifierFunction'
2025-01-17 10:41:56,746 | --base-dir is not presented, adjusting uri NotifierFunction relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,753 | Found one Lambda function with name 'FetcherFunction'
2025-01-17 10:41:56,754 | Invoking config/lambda.Lambda.call (ruby3.3)
2025-01-17 10:41:56,754 | Environment variables data found in the CloudFormation parameter file format
2025-01-17 10:41:56,754 | Loading AWS credentials from session with profile 'None'
2025-01-17 10:41:56,759 | Resolving code path. Cwd=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build,
CodeUri=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,760 | Resolved absolute path to code is
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,760 | Resolving code path. Cwd=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build,
CodeUri=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,760 | Resolved real code path to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,761 | Code /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction is
not a zip/jar file
2025-01-17 10:41:56,761 | Code /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer is not a
zip/jar file
2025-01-17 10:41:56,762 | arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension:125 is
already cached. Skipping download
2025-01-17 10:41:56,762 | GemLayer is a local Layer in the template
2025-01-17 10:41:56,762 | Resolving code path. Cwd=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build,
CodeUri=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer
2025-01-17 10:42:00,269 | Local image is up-to-date
Building image.........................
2025-01-17 10:42:00,677 | Checking free port on 127.0.0.1:8090
2025-01-17 10:42:00,679 | Using local image: samcli/lambda-ruby:3.3-preview-x86_64-53611a63fe01a0ad43bef35e4.
2025-01-17 10:42:00,679 | Mounting /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction as /var/task:ro,delegated, inside runtime container
2025-01-17 10:42:00,835 | Starting a timer for 30 seconds for function 'FetcherFunction'
2025-01-17 10:42:00,835 | Getting lock for the key localhost-8090
2025-01-17 10:42:00,836 | Waiting to retrieve the lock (localhost-8090) to start invocation
2025-01-17 10:42:00,943 | Getting lock for the key localhost-8090
2025-01-17 10:42:00,944 | Waiting to retrieve the lock (localhost-8090) to start invocation
START RequestId: 449bbd6a-cae2-496b-a406-055cce0952ff Version: $LATEST
[appconfig agent] 2025/01/17 02:42:00 INFO AppConfig Lambda Extension 2.0.711
[appconfig agent] 2025/01/17 02:42:01 INFO serving on localhost:2772
Init error when loading handler
{
"errorMessage": "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins/monitoring.rb:35: anonymous block parameter is also used within block",
"errorType": "Init",
"stackTrace": [
"/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'",
"/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in require'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:65:in module:Plugins'",
"/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:5:in <module:System>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:4:in module:Dry'",
"/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:3:in <top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'",
"/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in require'",
"/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:56:in <class:Container>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:54:in module:System'",
"/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:10:in <module:Dry>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:9:in <top (required)>'",
"/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'",
"/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in require'", "/var/task/config/app.rb:12:in <top (required)>'",
"/var/task/config/lambda.rb:5:in require_relative'", "/var/task/config/lambda.rb:5:in <top (required)>'",
"/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'",
"/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:48:in run'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:221:in bootstrap_handler'",
"/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:203:in start'", "/var/runtime/index.rb:4:in
'"
]
}
17 Jan 2025 02:42:02,146 [ERROR] (rapid) Init failed error=Runtime exited with error: exit status 252 InvokeID=
[appconfig agent] 2025/01/17 02:42:02 INFO shutting down in 50ms
[appconfig agent] 2025/01/17 02:42:02 INFO stopping server on localhost:2772
[appconfig agent] 2025/01/17 02:42:02 INFO shutdown complete (actual duration: 51ms)
17 Jan 2025 02:42:02,204 [ERROR] (rapid) Invoke failed error=ErrAgentNameCollision InvokeID=ae83ade0-31b6-4463-a961-b873113088c0
17 Jan 2025 02:42:02,205 [ERROR] (rapid) Invoke DONE failed: Sandbox.Failure
{"errorMessage": "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins/monitoring.rb:35: anonymous block parameter is also used within block", "errorType": "Init", "stackTrace": ["/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in require'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:65:in module:Plugins'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:5:in <module:System>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:4:in module:Dry'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:3:in <top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in require'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:56:in <class:Container>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:54:in module:System'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:10:in <module:Dry>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:9:in <top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in require'", "/var/task/config/app.rb:12:in <top (required)>'", "/var/task/config/lambda.rb:5:in require_relative'", "/var/task/config/lambda.rb:5:in <top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in block (2 levels) in replace_require'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:48:in run'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:221:in bootstrap_handler'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:203:in start'", "/var/runtime/index.rb:4:in '"]}
2025-01-17 10:42:03,221 | [Container state] OOMKilled False
2025-01-17 10:42:03,379 | Cleaning all decompressed code dirs
2025-01-17 10:42:03,380 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-01-17 10:42:03,381 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-01-17 10:42:03,382 | Unable to find Click Context for getting session_id.
2025-01-17 10:42:03,384 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
Expected result:
No error was raised.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
OS: macOS 15.1.1
sam --version: SAM CLI, version 1.127.0 (from nixpkgs)
Description:
The latest
public.ecr.aws/lambda/ruby:3.3
is upgraded to3.3.5
butsam local invoke
still usespublic.ecr.aws/lambda/ruby:3.3-preview
and the version is3.3.0
this version has some bug causesam local invoke
cannot work correctly.https://bugs.ruby-lang.org/issues/20090
Steps to reproduce:
Add a ruby gem
dry-system
with version1.2.1
with this contentWhen invoking the local function the error is raised.
Observed result:
Build Succeeded
Built Artifacts : .aws-sam/build
Built Template : .aws-sam/build/template.yaml
Commands you can use next
[] Validate SAM template: sam validate
[] Invoke Function: sam local invoke
[] Test Function in the Cloud: sam sync --stack-name {{stack-name}} --watch
[] Deploy: sam deploy --guided
sam local invoke FetcherFunction --event events/Fetcher.json --env-vars env.json --debug
2025-01-17 10:41:56,653 | Config file location: /Users/elct9620/Workspace/Assistant/notifier/samconfig.toml
2025-01-17 10:41:56,654 | Loading configuration values from [default.['local', 'invoke'].parameters]
(env.command_name.section) in config file at '/Users/elct9620/Workspace/Assistant/notifier/samconfig.toml'...
2025-01-17 10:41:56,655 | Configuration values successfully loaded.
2025-01-17 10:41:56,655 | Configuration values are: {'stack_name': 'blog-notifier'}
2025-01-17 10:41:56,659 | Using SAM Template at
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,674 | Using config file: samconfig.toml, config environment: default
2025-01-17 10:41:56,674 | Expand command line arguments to:
2025-01-17 10:41:56,674 |
--template_file=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
--event=events/Fetcher.json --env_vars=env.json --function_logical_id=FetcherFunction --no_event
--layer_cache_basedir=/Users/elct9620/.aws-sam/layers-pkg --container_host=localhost
--container_host_interface=127.0.0.1
2025-01-17 10:41:56,675 | local invoke command is called
2025-01-17 10:41:56,711 | No current session found, using default AWS::AccountId
2025-01-17 10:41:56,715 | Collected default values for parameters: {'Namespace': 'blog-notifier'}
2025-01-17 10:41:56,725 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource GemLayer is GemLayer
2025-01-17 10:41:56,725 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource FetcherFunction is FetcherFunction
2025-01-17 10:41:56,726 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource NotifierFunction is NotifierFunction
2025-01-17 10:41:56,726 | There is no customer defined id or cdk path defined for resource NotifierQueue, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,726 | There is no customer defined id or cdk path defined for resource Config, so we will
use the resource logical id as the resource id
2025-01-17 10:41:56,727 | There is no customer defined id or cdk path defined for resource ConfigEnvironment, so
we will use the resource logical id as the resource id
2025-01-17 10:41:56,727 | There is no customer defined id or cdk path defined for resource ConfigChannels, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,728 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,728 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,729 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,729 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,730 | 0 stacks found in the template
2025-01-17 10:41:56,730 | Collected default values for parameters: {'Namespace': 'blog-notifier'}
2025-01-17 10:41:56,740 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource GemLayer is GemLayer
2025-01-17 10:41:56,741 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource FetcherFunction is FetcherFunction
2025-01-17 10:41:56,741 | Sam customer defined id is more priority than other IDs. Customer defined id for
resource NotifierFunction is NotifierFunction
2025-01-17 10:41:56,741 | There is no customer defined id or cdk path defined for resource NotifierQueue, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,742 | There is no customer defined id or cdk path defined for resource Config, so we will
use the resource logical id as the resource id
2025-01-17 10:41:56,742 | There is no customer defined id or cdk path defined for resource ConfigEnvironment, so
we will use the resource logical id as the resource id
2025-01-17 10:41:56,742 | There is no customer defined id or cdk path defined for resource ConfigChannels, so we
will use the resource logical id as the resource id
2025-01-17 10:41:56,743 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,743 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,744 | Unable to resolve property queueName: OrderedDict({'Fn::GetAtt': ['NotifierQueue',
'QueueName']}). Leaving as is.
2025-01-17 10:41:56,744 | Unable to resolve property Resource: {'Fn::Sub':
['arn:${AWS::Partition}:sqs:${AWS::Region}:${AWS::AccountId}:${queueName}', {'queueName':
OrderedDict({'Fn::GetAtt': ['NotifierQueue', 'QueueName']})}]}. Leaving as is.
2025-01-17 10:41:56,745 | 7 resources found in the stack
2025-01-17 10:41:56,745 | --base-dir is not presented, adjusting uri GemLayer relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,745 | Found Serverless function with name='FetcherFunction' and CodeUri='FetcherFunction'
2025-01-17 10:41:56,745 | --base-dir is not presented, adjusting uri FetcherFunction relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,746 | --base-dir is not presented, adjusting uri GemLayer relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,746 | Found Serverless function with name='NotifierFunction' and CodeUri='NotifierFunction'
2025-01-17 10:41:56,746 | --base-dir is not presented, adjusting uri NotifierFunction relative to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/template.yaml
2025-01-17 10:41:56,753 | Found one Lambda function with name 'FetcherFunction'
2025-01-17 10:41:56,754 | Invoking config/lambda.Lambda.call (ruby3.3)
2025-01-17 10:41:56,754 | Environment variables data found in the CloudFormation parameter file format
2025-01-17 10:41:56,754 | Loading AWS credentials from session with profile 'None'
2025-01-17 10:41:56,759 | Resolving code path. Cwd=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build,
CodeUri=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,760 | Resolved absolute path to code is
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,760 | Resolving code path. Cwd=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build,
CodeUri=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,760 | Resolved real code path to
/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction
2025-01-17 10:41:56,761 | Code /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction is
not a zip/jar file
2025-01-17 10:41:56,761 | Code /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer is not a
zip/jar file
2025-01-17 10:41:56,762 | arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension:125 is
already cached. Skipping download
2025-01-17 10:41:56,762 | GemLayer is a local Layer in the template
2025-01-17 10:41:56,762 | Resolving code path. Cwd=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build,
CodeUri=/Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/GemLayer
2025-01-17 10:42:00,269 | Local image is up-to-date
Building image.........................
2025-01-17 10:42:00,677 | Checking free port on 127.0.0.1:8090
2025-01-17 10:42:00,679 | Using local image: samcli/lambda-ruby:3.3-preview-x86_64-53611a63fe01a0ad43bef35e4.
2025-01-17 10:42:00,679 | Mounting /Users/elct9620/Workspace/Assistant/notifier/.aws-sam/build/FetcherFunction as /var/task:ro,delegated, inside runtime container
'"2025-01-17 10:42:00,835 | Starting a timer for 30 seconds for function 'FetcherFunction'
2025-01-17 10:42:00,835 | Getting lock for the key localhost-8090
2025-01-17 10:42:00,836 | Waiting to retrieve the lock (localhost-8090) to start invocation
2025-01-17 10:42:00,943 | Getting lock for the key localhost-8090
2025-01-17 10:42:00,944 | Waiting to retrieve the lock (localhost-8090) to start invocation
START RequestId: 449bbd6a-cae2-496b-a406-055cce0952ff Version: $LATEST
[appconfig agent] 2025/01/17 02:42:00 INFO AppConfig Lambda Extension 2.0.711
[appconfig agent] 2025/01/17 02:42:01 INFO serving on localhost:2772
Init error when loading handler
{
"errorMessage": "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins/monitoring.rb:35: anonymous block parameter is also used within block",
"errorType": "Init",
"stackTrace": [
"/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
block (2 levels) in replace_require'","/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in
require'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:65:in
module:Plugins'","/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:5:in
<module:System>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:4:in
module:Dry'","/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:3:in
<top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
require'","/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
block (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in
require'","/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:56:in
<class:Container>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:54:in
module:System'","/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:10:in
<module:Dry>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:9:in
<top (required)>'","/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
block (2 levels) in replace_require'","/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in
require'", "/var/task/config/app.rb:12:in
<top (required)>'","/var/task/config/lambda.rb:5:in
require_relative'", "/var/task/config/lambda.rb:5:in
<top (required)>'","/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
block (2 levels) in replace_require'","/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:48:in
run'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:221:in
bootstrap_handler'","/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:203:in
start'", "/var/runtime/index.rb:4:in
]
}
17 Jan 2025 02:42:02,146 [ERROR] (rapid) Init failed error=Runtime exited with error: exit status 252 InvokeID=
[appconfig agent] 2025/01/17 02:42:02 INFO shutting down in 50ms
[appconfig agent] 2025/01/17 02:42:02 INFO stopping server on localhost:2772
[appconfig agent] 2025/01/17 02:42:02 INFO shutdown complete (actual duration: 51ms)
17 Jan 2025 02:42:02,204 [ERROR] (rapid) Invoke failed error=ErrAgentNameCollision InvokeID=ae83ade0-31b6-4463-a961-b873113088c0
17 Jan 2025 02:42:02,205 [ERROR] (rapid) Invoke DONE failed: Sandbox.Failure
{"errorMessage": "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins/monitoring.rb:35: anonymous block parameter is also used within block", "errorType": "Init", "stackTrace": ["/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
block (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:inrequire'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:65:in
module:Plugins'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:5:in<module:System>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:4:in
module:Dry'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/plugins.rb:3:in<top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
require'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:inblock (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in
require'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:56:in<class:Container>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:54:in
module:System'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:10:in<module:Dry>'", "/opt/ruby/3.3.0/gems/dry-system-1.2.1/lib/dry/system/container.rb:9:in
<top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:inrequire'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
block (2 levels) in replace_require'", "/opt/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:inrequire'", "/var/task/config/app.rb:12:in
<top (required)>'", "/var/task/config/lambda.rb:5:inrequire_relative'", "/var/task/config/lambda.rb:5:in
<top (required)>'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:inrequire'", "/var/lang/lib/ruby/3.3.0/bundled_gems.rb:74:in
block (2 levels) in replace_require'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:48:inrun'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:221:in
bootstrap_handler'", "/var/runtime/gems/aws_lambda_ric-3.0.0/lib/aws_lambda_ric.rb:203:instart'", "/var/runtime/index.rb:4:in
'"]}2025-01-17 10:42:03,221 | [Container state] OOMKilled False
2025-01-17 10:42:03,379 | Cleaning all decompressed code dirs
2025-01-17 10:42:03,380 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-01-17 10:42:03,381 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-01-17 10:42:03,382 | Unable to find Click Context for getting session_id.
2025-01-17 10:42:03,384 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
Expected result:
No error was raised.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.127.0 (from nixpkgs)Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: