Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving "Error: request() got an unexpected keyword argument 'chunked'" after upgrading to SAM 1.85.0 #5243

Closed
donovan-middleton opened this issue Jun 1, 2023 · 15 comments
Labels
area/docker stage/waiting-for-release Fix has been merged to develop and is waiting for a release type/bug

Comments

@donovan-middleton
Copy link

After upgrading to AWS SAM CLI from version 1.84.0 to version 1.85.0 using the AWS_SAM_CLI_64_PY3.msi installer, I receive the following error message when attempting to do a sam build command:
Error: request() got an unexpected keyword argument 'chunked'

And in writing up this Bug Report, also found I get the following error when running sam --info:
TypeError: request() got an unexpected keyword argument 'chunked'

Steps to reproduce:

On Windows 11 Pro, upgrade from SAM 1.84.0 to SAM 1.85.0.
Using AWS SAM in a PowerShell 7.3.4 terminal within Visual Studio Code.
Running sam build --template 'IL4SS-template.yml' --parallel --use-container from within the folder the template is in.

Observed result:

With SAM 1.85.0:

PS C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out> sam build --template 'IL4SS-template.yml' --parallel --use-container --debug
2023-06-01 17:52:21,805 | Config file location: C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\samconfig.toml
2023-06-01 17:52:21,809 | Config file 'C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\samconfig.toml' does not exist
2023-06-01 17:52:21,825 | Using config file: samconfig.toml, config environment: default
2023-06-01 17:52:21,827 | Expand command line arguments to:
2023-06-01 17:52:21,828 | --template_file=C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\IL4SS-template.yml --parallel --use_container --mount_with=READ     
--build_dir=.aws-sam\build --cache_dir=.aws-sam\cache
2023-06-01 17:52:22,240 | 'build' command is called
2023-06-01 17:52:22,241 | Starting Build inside a container
2023-06-01 17:52:22,248 | No Parameters detected in the template
2023-06-01 17:52:22,269 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-01 17:52:22,271 | 0 stacks found in the template
2023-06-01 17:52:22,272 | No Parameters detected in the template
2023-06-01 17:52:22,285 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-01 17:52:22,288 | 1 resources found in the stack
2023-06-01 17:52:22,288 | Found Serverless function with name='Lambda' and CodeUri='source'
2023-06-01 17:52:22,289 | --base-dir is not presented, adjusting uri source relative to C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\IL4SS-template.yml    
2023-06-01 17:52:22,297 | 1 resources found in the stack
2023-06-01 17:52:22,298 | Found Serverless function with name='Lambda' and CodeUri='source'
2023-06-01 17:52:22,300 | Instantiating build definitions
2023-06-01 17:52:22,309 | Unique function build definition found, adding as new (Function Build Definition: BuildDefinition(provided.al2,
C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\source, Zip, , 23479874-fac6-4902-a31c-f7e2b350b681, {'BuildMethod': 'makefile'}, {}, x86_64, []), Function:  
Function(function_id='Lambda', name='Lambda', functionname='Lambda', runtime='provided.al2', memory=512, timeout=90, handler='SQS-to-Mail-Out.ps1', imageuri=None, packagetype='Zip',
imageconfig=None, codeuri='C:\\Users\\donov\\OneDrive\\Documents\\AFPOA\\Lambda\\Lambda Functions\\SQS-to-Mail-Out\\source', environment={'Variables': {'BodyFooter': 'For further assistance,
please submit a ticket with the A1 Service Desk and have the ticket assigned to the "A1 VDC Cloud Operations Team" using one of the following methods:|Email: a1dta.a1.sd@us.af.mil|Phone:    
210.565.5004|On AFNET: https://tmis.us.af.mil', 'BodyHeader': '*** Please do not reply to this message. This mailbox is not monitored. ***', 'Debug': 'False', 'DefaultFrom': 'No-Reply       
<No-Reply@02.A1VDC.US.AF.mil>', 'DefaultTo': 'UDG_A1_DTA_A1VDC_Operations <UDG.A1DTA.A1VDC.Operations@US.AF.mil>', 'SmtpServer': '140.18.22.18'}}, rolearn=None,
layers=[<samcli.lib.providers.provider.LayerVersion object at 0x000002E01B458940>, <samcli.lib.providers.provider.LayerVersion object at 0x000002E01B458A90>,
<samcli.lib.providers.provider.LayerVersion object at 0x000002E01B458D00>], events={'MySQSEvent': {'Type': 'SQS', 'Properties': {'Queue':
'arn:aws-us-gov:sqs:us-gov-west-1:503277488201:AFPOA_Outbound_Mail'}}}, metadata={'BuildMethod': 'makefile', 'SamResourceId': 'Lambda'}, inlinecode=None, codesign_config_arn=None,
architectures=None, function_url_config=None, stack_path='', runtime_management_config=None))
2023-06-01 17:52:22,318 | Async execution started
2023-06-01 17:52:22,318 | Invoking function functools.partial(<bound method ParallelBuildStrategy.build_single_function_definition of <samcli.lib.build.build_strategy.ParallelBuildStrategy  
object at 0x000002E01B47CBB0>>, <samcli.lib.build.build_graph.FunctionBuildDefinition object at 0x000002E01B458730>)
2023-06-01 17:52:22,322 | Building codeuri: C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\source runtime: provided.al2 metadata: {'BuildMethod': 'makefile'}
architecture: x86_64 functions: Lambda
2023-06-01 17:52:22,323 | Waiting for async results
2023-06-01 17:52:22,323 | Building to following folder C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\.aws-sam\build\Lambda
2023-06-01 17:52:22,332 | Exception raised during the execution
2023-06-01 17:52:22,333 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-06-01 17:52:22,371 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-06-01 17:52:22,372 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '49c42550-b005-4347-8394-4a67e764e4cc', 'installationId': '23135065-7e6e-40b9-b118-5e4132441a5e',      
'sessionId': 'e9fc1592-3b37-4bf9-858f-e5274ac40193', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.85.0', 'awsProfileProvided': False,
'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'CFN', 'gitOrigin': None, 'projectName':
'e48ddf194e19b59ebb710bcc352328cba648a56c5c0c4a56db5fa0cb376322c2', 'initialCommit': None}, 'duration': 506, 'exitReason': 'TypeError', 'exitCode': 255}}]}
2023-06-01 17:52:22,373 | Unable to find Click Context for getting session_id.
2023-06-01 17:52:22,378 | Sending Telemetry: {'metrics': [{'events': {'requestId': 'e9eb861d-8b3a-4c12-b9ea-9a70946779a0', 'installationId': '23135065-7e6e-40b9-b118-5e4132441a5e',
'sessionId': 'e9fc1592-3b37-4bf9-858f-e5274ac40193', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.85.0', 'metricSpecificAttributes': {'events':      
[{'event_name': 'BuildWorkflowUsed', 'event_value': 'provided-None', 'thread_id': 'ba0a55ea32f54a09b7f1c47d758aa0ef', 'time_stamp': '2023-06-01 22:52:22.299', 'exception_name': None},       
{'event_name': 'BuildFunctionRuntime', 'event_value': 'provided.al2', 'thread_id': '4e22e7a4887849bf9610d0b7bb56f54d', 'time_stamp': '2023-06-01 22:52:22.300', 'exception_name': None},      
{'event_name': 'BuildWorkflowUsed', 'event_value': 'provided-None', 'thread_id': 'e31bd5ffcbd14f93917e438a43938fb3', 'time_stamp': '2023-06-01 22:52:22.326', 'exception_name': None}]}}}]}   
2023-06-01 17:52:22,854 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)
2023-06-01 17:52:22,855 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)

Error: request() got an unexpected keyword argument 'chunked'
Traceback:
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\telemetry\metric.py", line 184, in wrapped
    raise exception  # pylint: disable=raising-bad-type
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\telemetry\metric.py", line 149, in wrapped
    return_value = func(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\utils\version_checker.py", line 42, in wrapped
    actual_result = func(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\cli\main.py", line 95, in wrapper
    return func(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\commands\build\command.py", line 179, in cli
    do_cli(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\commands\build\command.py", line 275, in do_cli
    ctx.run()
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\commands\build\build_context.py", line 279, in run
    self._build_result = builder.build()
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\app_builder.py", line 214, in build
    return ApplicationBuildResult(build_graph, build_strategy.build())
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\build_strategy.py", line 394, in build
    return super().build()
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\build_strategy.py", line 81, in build
    result.update(self._build_functions(self._build_graph))
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\build_strategy.py", line 400, in _build_functions
    return self._run_builds_async(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\build_strategy.py", line 416, in _run_builds_async
    async_results = async_context.run_async()
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\utils\async_utils.py", line 131, in run_async
    return run_given_tasks_async(self._async_tasks, event_loop)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\utils\async_utils.py", line 90, in run_given_tasks_async
    return event_loop.run_until_complete(_run_given_tasks_async(tasks, event_loop, executor))
  File "asyncio\base_events.py", line 616, in run_until_complete
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\utils\async_utils.py", line 58, in _run_given_tasks_async
    raise result
  File "concurrent\futures\thread.py", line 57, in run
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\build_strategy.py", line 427, in build_single_function_definition
    return self._delegate_build_strategy.build_single_function_definition(build_definition)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\build_strategy.py", line 164, in build_single_function_definition
    result = self._build_function(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\app_builder.py", line 688, in _build_function
    return self._build_function_on_container(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\build\app_builder.py", line 895, in _build_function_on_container
    if not self._container_manager.is_docker_reachable:
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\manager.py", line 54, in is_docker_reachable
    return utils.is_docker_reachable(self.docker_client)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\utils.py", line 90, in is_docker_reachable
    docker_client.ping()
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\client.py", line 187, in ping
    return self.api.ping(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\daemon.py", line 166, in ping
    return self._result(self._get(self._url('/_ping'))) == 'OK'
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\utils\decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\client.py", line 230, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\adapters.py", line 486, in send
    resp = conn.urlopen(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\urllib3\connectionpool.py", line 496, in _make_request
    conn.request(

An unexpected error was encountered while executing "sam build".
Search for an existing issue:
https://github.com/aws/aws-sam-cli/issues?q=is%3Aissue+is%3Aopen+Bug%3A%20sam%20build%20-%20TypeError
Or create a bug report:
https://github.com/aws/aws-sam-cli/issues/new?template=Bug_report.md&title=Bug%3A%20sam%20build%20-%20TypeError

And

PS C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out> sam --info   
Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\__main__.py", line 12, in <module>
    cli(prog_name="sam")
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1054, in main
    with self.make_context(prog_name, args, **extra) as ctx:
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 920, in make_context
    self.parse_args(ctx, args)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1613, in parse_args
    rest = super().parse_args(ctx, args)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1378, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 2360, in handle_parse_result
    value = self.process_value(ctx, value)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 2322, in process_value
    value = self.callback(ctx, self, value)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\cli\main.py", line 58, in print_info
    "additional_dependencies": gather_additional_dependencies_info(),
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\utils\system_info.py", line 37, in gather_additional_dependencies_info
    "docker_engine": _gather_docker_info(),
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\utils\system_info.py", line 60, in _gather_docker_info
    if is_docker_reachable(client):
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\utils.py", line 90, in is_docker_reachable
    docker_client.ping()
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\client.py", line 187, in ping
    return self.api.ping(*args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\daemon.py", line 166, in ping
    return self._result(self._get(self._url('/_ping'))) == 'OK'
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\utils\decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\client.py", line 230, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\adapters.py", line 486, in send
    resp = conn.urlopen(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\urllib3\connectionpool.py", line 496, in _make_request
    conn.request(
TypeError: request() got an unexpected keyword argument 'chunked'

Expected result:

With SAM 1.84.0:

PS C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out> sam build --template 'IL4SS-template.yml' --parallel --use-container --debug
2023-06-01 18:08:02,267 | Config file location: C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\samconfig.toml
2023-06-01 18:08:02,271 | Config file 'C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\samconfig.toml' does not exist
2023-06-01 18:08:02,290 | Using config file: samconfig.toml, config environment: default
2023-06-01 18:08:02,292 | Expand command line arguments to:
2023-06-01 18:08:02,292 | --template_file=C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\IL4SS-template.yml --parallel --use_container --mount_with=READ     
--build_dir=.aws-sam\build --cache_dir=.aws-sam\cache
2023-06-01 18:08:04,110 | 'build' command is called
2023-06-01 18:08:04,110 | Starting Build inside a container
2023-06-01 18:08:04,118 | No Parameters detected in the template
2023-06-01 18:08:04,246 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-01 18:08:04,247 | 0 stacks found in the template
2023-06-01 18:08:04,249 | No Parameters detected in the template
2023-06-01 18:08:04,261 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-01 18:08:04,263 | 1 resources found in the stack
2023-06-01 18:08:04,263 | Found Serverless function with name='Lambda' and CodeUri='source'
2023-06-01 18:08:04,265 | --base-dir is not presented, adjusting uri source relative to C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\IL4SS-template.yml    
2023-06-01 18:08:04,273 | 1 resources found in the stack
2023-06-01 18:08:04,274 | Found Serverless function with name='Lambda' and CodeUri='source'
2023-06-01 18:08:04,276 | Instantiating build definitions
2023-06-01 18:08:04,285 | Unique function build definition found, adding as new (Function Build Definition: BuildDefinition(provided.al2,
C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\source, Zip, , d3c423bd-2ad5-49b4-acf5-9591961c591f, {'BuildMethod': 'makefile'}, {}, x86_64, []), Function:  
Function(function_id='Lambda', name='Lambda', functionname='Lambda', runtime='provided.al2', memory=512, timeout=90, handler='SQS-to-Mail-Out.ps1', imageuri=None, packagetype='Zip',
imageconfig=None, codeuri='C:\\Users\\donov\\OneDrive\\Documents\\AFPOA\\Lambda\\Lambda Functions\\SQS-to-Mail-Out\\source', environment={'Variables': {'BodyFooter': 'For further assistance,
please submit a ticket with the A1 Service Desk and have the ticket assigned to the "A1 VDC Cloud Operations Team" using one of the following methods:|Email: a1dta.a1.sd@us.af.mil|Phone:    
210.565.5004|On AFNET: https://tmis.us.af.mil', 'BodyHeader': '*** Please do not reply to this message. This mailbox is not monitored. ***', 'Debug': 'False', 'DefaultFrom': 'No-Reply       
<No-Reply@02.A1VDC.US.AF.mil>', 'DefaultTo': 'UDG_A1_DTA_A1VDC_Operations <UDG.A1DTA.A1VDC.Operations@US.AF.mil>', 'SmtpServer': '140.18.22.18'}}, rolearn=None,
layers=[<samcli.lib.providers.provider.LayerVersion object at 0x000001812618A160>, <samcli.lib.providers.provider.LayerVersion object at 0x000001812618A220>,
<samcli.lib.providers.provider.LayerVersion object at 0x000001812618A250>], events={'MySQSEvent': {'Type': 'SQS', 'Properties': {'Queue':
'arn:aws-us-gov:sqs:us-gov-west-1:503277488201:AFPOA_Outbound_Mail'}}}, metadata={'BuildMethod': 'makefile', 'SamResourceId': 'Lambda'}, inlinecode=None, codesign_config_arn=None,
architectures=None, function_url_config=None, stack_path='', runtime_management_config=None))
2023-06-01 18:08:04,294 | Async execution started
2023-06-01 18:08:04,294 | Invoking function functools.partial(<bound method ParallelBuildStrategy.build_single_function_definition of <samcli.lib.build.build_strategy.ParallelBuildStrategy  
object at 0x00000181242DAB80>>, <samcli.lib.build.build_graph.FunctionBuildDefinition object at 0x00000181262265B0>)
2023-06-01 18:08:04,297 | Building codeuri: C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\source runtime: provided.al2 metadata: {'BuildMethod': 'makefile'}
architecture: x86_64 functions: Lambda
2023-06-01 18:08:04,299 | Waiting for async results
2023-06-01 18:08:04,299 | Building to following folder C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\.aws-sam\build\Lambda

Fetching public.ecr.aws/sam/build-provided.al2:latest-x86_64 Docker container image......
2023-06-01 18:08:05,363 | Mounting C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\source as /tmp/samcli/source:ro,delegated, inside runtime container        
Using the request object from command line argument
Loading workflow module 'aws_lambda_builders.workflows'
Registering workflow 'CustomMakeBuilder' with capability 'Capability(language='provided', dependency_manager=None, application_framework=None)'
Registering workflow 'DotnetCliPackageBuilder' with capability 'Capability(language='dotnet', dependency_manager='cli-package', application_framework=None)'
Registering workflow 'GoModulesBuilder' with capability 'Capability(language='go', dependency_manager='modules', application_framework=None)'
Registering workflow 'JavaGradleWorkflow' with capability 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
Registering workflow 'JavaMavenWorkflow' with capability 'Capability(language='java', dependency_manager='maven', application_framework=None)'
Registering workflow 'NodejsNpmBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
Registering workflow 'NodejsNpmEsbuildBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm-esbuild', application_framework=None)'
Registering workflow 'PythonPipBuilder' with capability 'Capability(language='python', dependency_manager='pip', application_framework=None)'
Registering workflow 'RubyBundlerBuilder' with capability 'Capability(language='ruby', dependency_manager='bundler', application_framework=None)'
Registering workflow 'RustCargoLambdaBuilder' with capability 'Capability(language='rust', dependency_manager='cargo', application_framework=None)'
Found workflow 'CustomMakeBuilder' to support capabilities 'Capability(language='provided', dependency_manager=None, application_framework=None)'
Running workflow 'CustomMakeBuilder'
Running CustomMakeBuilder:CopySource
Copying source file (/tmp/samcli/source/Makefile) to destination (/tmp/samcli/scratch/Makefile)
Copying source file (/tmp/samcli/source/SQS-to-Mail-Out.ps1) to destination (/tmp/samcli/scratch/SQS-to-Mail-Out.ps1)
CustomMakeBuilder:CopySource succeeded
Running CustomMakeBuilder:MakeBuild
Current Artifacts Directory : /tmp/samcli/artifacts
executing Make: ['make', '--makefile', '/tmp/samcli/source/Makefile', 'build-Lambda']
cp -R . /tmp/samcli/artifacts
rm /tmp/samcli/artifacts/Makefile
CustomMakeBuilder:MakeBuild succeeded
2023-06-01 18:08:06,137 | Failed to get the logs from the container
Traceback (most recent call last):
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\container.py", line 433, in _write_container_output
    for stdout_data, stderr_data in output_itr:
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\types\daemon.py", line 32, in __next__
    return next(self._stream)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\client.py", line 406, in <genexpr>
    gen = (demux_adaptor(*frame) for frame in gen)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\utils\socket.py", line 94, in frames_iter_no_tty
    (stream, n) = next_frame_header(socket)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\utils\socket.py", line 66, in next_frame_header
    data = read_exactly(socket, 8)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\utils\socket.py", line 51, in read_exactly
    next_data = read(socket, n - len(data))
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\utils\socket.py", line 35, in read
    return socket.recv(n)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\transport\npipesocket.py", line 23, in wrapped
    return f(self, *args, **kwargs)
  File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\transport\npipesocket.py", line 117, in recv
    err, data = win32file.ReadFile(self._handle, bufsize)
pywintypes.error: (109, 'ReadFile', 'The pipe has been ended.')
2023-06-01 18:08:06,148 | Build inside container returned response {"jsonrpc": "2.0", "id": 1, "result": {"artifacts_dir": "/tmp/samcli/artifacts"}}
2023-06-01 18:08:06,149 | Build inside container was successful. Copying artifacts from container to host
2023-06-01 18:08:06,483 | Copying from container: /tmp/samcli/artifacts/. -> C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\.aws-sam\build\Lambda
2023-06-01 18:08:06,594 | Build inside container succeeded
2023-06-01 18:08:06,596 | Async execution completed
2023-06-01 18:08:06,599 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-01 18:08:06,601 | 1 resources found in the stack
2023-06-01 18:08:06,602 | Found Serverless function with name='Lambda' and CodeUri='source'

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
2023-06-01 18:08:06,651 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-06-01 18:08:06,688 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-06-01 18:08:06,689 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '5940cfa6-c9a6-492b-ab9e-910da85ae45c', 'installationId': '23135065-7e6e-40b9-b118-5e4132441a5e',      
'sessionId': '32cbcbd9-137b-4fce-b4ec-b91bb0b8235f', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.84.0', 'awsProfileProvided': False,
'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'CFN', 'gitOrigin': None, 'projectName':
'e48ddf194e19b59ebb710bcc352328cba648a56c5c0c4a56db5fa0cb376322c2', 'initialCommit': None}, 'duration': 4361, 'exitReason': 'success', 'exitCode': 0}}]}
2023-06-01 18:08:06,689 | Unable to find Click Context for getting session_id.
2023-06-01 18:08:06,695 | Sending Telemetry: {'metrics': [{'events': {'requestId': '6246d947-3354-48cd-818d-359fbefffe83', 'installationId': '23135065-7e6e-40b9-b118-5e4132441a5e',
'sessionId': '32cbcbd9-137b-4fce-b4ec-b91bb0b8235f', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.84.0', 'metricSpecificAttributes': {'events':      
[{'event_name': 'BuildWorkflowUsed', 'event_value': 'provided-None', 'thread_id': 17028, 'time_stamp': '2023-06-01 23:08:04.275', 'exception_name': None}, {'event_name':
'BuildFunctionRuntime', 'event_value': 'provided.al2', 'thread_id': 17028, 'time_stamp': '2023-06-01 23:08:04.276', 'exception_name': None}, {'event_name': 'BuildWorkflowUsed',
'event_value': 'provided-None', 'thread_id': 17028, 'time_stamp': '2023-06-01 23:08:04.302', 'exception_name': None}]}}}]}
2023-06-01 18:08:07,216 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)
2023-06-01 18:08:07,587 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)

And

PS C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out> sam --info
{
  "version": "1.84.0",
  "system": {
    "python": "3.8.8",
    "os": "Windows-10-10.0.22621-SP0"
  },
  "additional_dependencies": {
    "docker_engine": "23.0.5",
    "aws_cdk": "Not available",
    "terraform": "Not available"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

Additional environment details:

  1. OS: Windows 11 Pro (fully updated)
  2. SAM Version: 1.85.0 (as shown in Installed apps from Windows)
  3. AWS region: N/A for this!
  4. Other: Visual Studio Code 1.78.2, PowerShell 7.3.4, and Docker Desktop 4.19.0

The sam --info command was not working on the 1.85.0 version, so unable to provide the output from that version.

Additional notes:

I have uninstalled SAM 1.85.0 and then reinstalled SAM 1.84.0. All the commands go back to working.
I have tried downloaded the "AWS_SAM_CLI_64_PY3.msi" installer again (and verified the checksum) and reinstalled, but the commands still fail.
For now, I have uninstalled the 1.85.0 version and will continue to use the 1.84.0 version.

@donovan-middleton donovan-middleton added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jun 1, 2023
@Tran-Minh23
Copy link

I got the same issue when using 1.85.0 version, cannot run "sam local start-api" command

@jfuss
Copy link
Contributor

jfuss commented Jun 2, 2023

From the stack trace, looks like it is coming directly from docker. Did anyone following this upgrade docker? If you downgrade docker to a previous version do things begin to work again?

@jfuss
Copy link
Contributor

jfuss commented Jun 2, 2023

Reading docker/docker-py#3113, this looks like our dependencies are not playing well with each other.

Will need to validate more but looks like we need to downgrade requests or upgrade docker. Please downgrade SAM CLI for the time being by installing an older msi (can be found in our Github Release Page). Will have a conversation with the team today to see what is the best path forward.

My personal opinion is to upgrade docker (which we are in the progress of doing anyways) but need to balance time with impact here.

@fortivi002
Copy link

I have the latest version of docker 4.20.0 and I had the same problem. I downgraded sam for now and it works fine.

@donovan-middleton
Copy link
Author

Upgraded to Docker Desktop 4.20.0. SAM 1.84.0 still works.
Upgraded to SAM 1.85.0 and got the same results as I initially showed. Even sam --info still throws an error.
Uninstalled SAM 1.85.0 again and installed SAM 1.84.0 and back it to working!

@jfuss
Copy link
Contributor

jfuss commented Jun 2, 2023

Downgrading to 1.84.0 or earlier is going to be the short term path.

We are upgrading Docker within #5225 which (from what I understand in the docker issue), should be enough to resolve this. Our goal is trying to get a nightly release cut today and would then ask for help to ensure this does resolve the issues raised here. I will comment back once nightly release is cut.

Also thanks for reporting this @donovan-middleton!

@jfuss jfuss added area/docker type/bug and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jun 2, 2023
@jfuss
Copy link
Contributor

jfuss commented Jun 3, 2023

Following up before the weekend. We got a build out for the nightly release today. You can find instructions here for how to install or get the artifacts from https://github.com/aws/aws-sam-cli/releases/tag/sam-cli-nightly directly. Our nightly version is based on the head of develop when the artifacts are generated and is named differently, sam-nightly vs sam.

It would be very helpful if anyone experiencing issues for this could try out night and report back if it solved the issues. I expect it does but we need to validate as this was missed in our testing but at the moment it's unclear why/how.

@jfuss jfuss added the stage/waiting-for-release Fix has been merged to develop and is waiting for a release label Jun 3, 2023
@donovan-middleton
Copy link
Author

The nightly works for me!

Here is what I get when I run sam-nightly build --template 'IL4SS-template.yml' --parallel --use-container --debug:

sam-nightly build --template 'IL4SS-template.yml' --parallel --use-container --debug
2023-06-02 21:58:49,816 | Config file location: C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\samconfig.toml
2023-06-02 21:58:49,820 | Config file 'C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\samconfig.toml' does not exist
2023-06-02 21:58:49,839 | Using config file: samconfig.toml, config environment: default
2023-06-02 21:58:49,841 | Expand command line arguments to:
2023-06-02 21:58:49,842 | --template_file=C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\IL4SS-template.yml --parallel --use_container --mount_with=READ
--build_dir=.aws-sam\build --cache_dir=.aws-sam\cache
2023-06-02 21:58:51,119 | 'build' command is called
2023-06-02 21:58:51,120 | Starting Build inside a container
2023-06-02 21:58:51,127 | No Parameters detected in the template
2023-06-02 21:58:51,259 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-02 21:58:51,261 | 0 stacks found in the template
2023-06-02 21:58:51,261 | No Parameters detected in the template
2023-06-02 21:58:51,274 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-02 21:58:51,275 | 1 resources found in the stack
2023-06-02 21:58:51,276 | Found Serverless function with name='Lambda' and CodeUri='source'
2023-06-02 21:58:51,277 | --base-dir is not presented, adjusting uri source relative to C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\IL4SS-template.yml
2023-06-02 21:58:51,301 | 1 resources found in the stack
2023-06-02 21:58:51,302 | Found Serverless function with name='Lambda' and CodeUri='source'
2023-06-02 21:58:51,316 | Instantiating build definitions
2023-06-02 21:58:51,317 | No previous build graph found, generating new one
2023-06-02 21:58:51,319 | Unique function build definition found, adding as new (Function Build Definition: BuildDefinition(provided.al2, C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda
Functions\SQS-to-Mail-Out\source, Zip, , ac97ecb7-119b-4075-8321-3b83b41b4949, {'BuildMethod': 'makefile'}, {}, x86_64, []), Function: Function(function_id='Lambda', name='Lambda', functionname='Lambda',      
runtime='provided.al2', memory=512, timeout=90, handler='SQS-to-Mail-Out.ps1', imageuri=None, packagetype='Zip', imageconfig=None, codeuri='C:\\Users\\donov\\OneDrive\\Documents\\AFPOA\\Lambda\\Lambda
Functions\\SQS-to-Mail-Out\\source', environment={'Variables': {'BodyFooter': 'For further assistance, please submit a ticket with the A1 Service Desk and have the ticket assigned to the "A1 VDC Cloud
Operations Team" using one of the following methods:|Email: a1dta.a1.sd@us.af.mil|Phone: 210.565.5004|On AFNET: https://tmis.us.af.mil', 'BodyHeader': '*** Please do not reply to this message. This mailbox is 
not monitored. ***', 'Debug': 'False', 'DefaultFrom': 'No-Reply <No-Reply@02.A1VDC.US.AF.mil>', 'DefaultTo': 'UDG_A1_DTA_A1VDC_Operations <UDG.A1DTA.A1VDC.Operations@US.AF.mil>', 'SmtpServer':
'140.18.22.18'}}, rolearn=None, layers=[<samcli.lib.providers.provider.LayerVersion object at 0x000002811A127A00>, <samcli.lib.providers.provider.LayerVersion object at 0x000002811A13A190>,
<samcli.lib.providers.provider.LayerVersion object at 0x000002811A13A2E0>], events={'MySQSEvent': {'Type': 'SQS', 'Properties': {'Queue': 'arn:aws-us-gov:sqs:us-gov-west-1:503277488201:AFPOA_Outbound_Mail'}}},
metadata={'BuildMethod': 'makefile', 'SamResourceId': 'Lambda'}, inlinecode=None, codesign_config_arn=None, architectures=None, function_url_config=None, function_build_info=<FunctionBuildInfo.BuildableZip:   
(<enum.auto object at 0x0000028119884F10>, 'Regular ZIP function which can be build with SAM CLI')>, stack_path='', runtime_management_config=None))
2023-06-02 21:58:51,328 | Async execution started
2023-06-02 21:58:51,330 | Invoking function functools.partial(<bound method ParallelBuildStrategy.build_single_function_definition of <samcli.lib.build.build_strategy.ParallelBuildStrategy object at
0x000002811A0C4040>>, <samcli.lib.build.build_graph.FunctionBuildDefinition object at 0x000002811A14EF40>)
2023-06-02 21:58:51,332 | Building codeuri: C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\source runtime: provided.al2 metadata: {'BuildMethod': 'makefile'} architecture:     
x86_64 functions: Lambda
2023-06-02 21:58:51,334 | Waiting for async results
2023-06-02 21:58:51,334 | Building to following folder C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\.aws-sam\build\Lambda

Fetching public.ecr.aws/sam/build-provided.al2:latest-x86_64 Docker container image......
2023-06-02 21:58:52,436 | Mounting C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\source as /tmp/samcli/source:ro,delegated, inside runtime container
Using the request object from command line argument
Loading workflow module 'aws_lambda_builders.workflows'
Registering workflow 'CustomMakeBuilder' with capability 'Capability(language='provided', dependency_manager=None, application_framework=None)'
Registering workflow 'DotnetCliPackageBuilder' with capability 'Capability(language='dotnet', dependency_manager='cli-package', application_framework=None)'
Registering workflow 'GoModulesBuilder' with capability 'Capability(language='go', dependency_manager='modules', application_framework=None)'
Registering workflow 'JavaGradleWorkflow' with capability 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
Registering workflow 'JavaMavenWorkflow' with capability 'Capability(language='java', dependency_manager='maven', application_framework=None)'
Registering workflow 'NodejsNpmBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
Registering workflow 'NodejsNpmEsbuildBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm-esbuild', application_framework=None)'
Registering workflow 'PythonPipBuilder' with capability 'Capability(language='python', dependency_manager='pip', application_framework=None)'
Registering workflow 'RubyBundlerBuilder' with capability 'Capability(language='ruby', dependency_manager='bundler', application_framework=None)'
Registering workflow 'RustCargoLambdaBuilder' with capability 'Capability(language='rust', dependency_manager='cargo', application_framework=None)'
Found workflow 'CustomMakeBuilder' to support capabilities 'Capability(language='provided', dependency_manager=None, application_framework=None)'
Running workflow 'CustomMakeBuilder'
Running CustomMakeBuilder:CopySource
Copying source file (/tmp/samcli/source/Makefile) to destination (/tmp/samcli/scratch/Makefile)
Copying source file (/tmp/samcli/source/SQS-to-Mail-Out.ps1) to destination (/tmp/samcli/scratch/SQS-to-Mail-Out.ps1)
CustomMakeBuilder:CopySource succeeded
Running CustomMakeBuilder:MakeBuild
Current Artifacts Directory : /tmp/samcli/artifacts
executing Make: ['make', '--makefile', '/tmp/samcli/source/Makefile', 'build-Lambda']
cp -R . /tmp/samcli/artifacts
rm /tmp/samcli/artifacts/Makefile
CustomMakeBuilder:MakeBuild succeeded
2023-06-02 21:58:53,466 | Build inside container returned response {"jsonrpc": "2.0", "id": 1, "result": {"artifacts_dir": "/tmp/samcli/artifacts"}}
2023-06-02 21:58:53,471 | Build inside container was successful. Copying artifacts from container to host
2023-06-02 21:58:53,886 | Copying from container: /tmp/samcli/artifacts/. -> C:\Users\donov\OneDrive\Documents\AFPOA\Lambda\Lambda Functions\SQS-to-Mail-Out\.aws-sam\build\Lambda
2023-06-02 21:58:54,015 | Build inside container succeeded
2023-06-02 21:58:54,017 | Async execution completed
2023-06-02 21:58:54,019 | There is no customer defined id or cdk path defined for resource Lambda, so we will use the resource logical id as the resource id
2023-06-02 21:58:54,021 | 1 resources found in the stack
2023-06-02 21:58:54,022 | Found Serverless function with name='Lambda' and CodeUri='source'

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
2023-06-02 21:58:54,212 | Installed version 1.85.0.dev202306022034, current version 1.85.0

SAM CLI update available (1.85.0); (1.85.0.dev202306022034 installed)
To download: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
2023-06-02 21:58:54,217 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-06-02 21:58:54,260 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-06-02 21:58:54,261 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '23e3aeb6-983c-465d-9a56-da2fe55fb637', 'installationId': '23135065-7e6e-40b9-b118-5e4132441a5e', 'sessionId':
'29b2cc9a-ea9f-4730-94f4-e866d1813192', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.85.0.dev202306022034', 'awsProfileProvided': False, 'debugFlagProvided': True,     
'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'CFN', 'gitOrigin': None, 'projectName': 'e48ddf194e19b59ebb710bcc352328cba648a56c5c0c4a56db5fa0cb376322c2',
'initialCommit': None}, 'duration': 4377, 'exitReason': 'success', 'exitCode': 0}}]}
2023-06-02 21:58:54,261 | Unable to find Click Context for getting session_id.
2023-06-02 21:58:54,266 | Sending Telemetry: {'metrics': [{'events': {'requestId': 'e54135be-b28e-47cf-9449-6bb01a90fb4d', 'installationId': '23135065-7e6e-40b9-b118-5e4132441a5e', 'sessionId':
'29b2cc9a-ea9f-4730-94f4-e866d1813192', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.85.0.dev202306022034', 'metricSpecificAttributes': {'events': [{'event_name':      
'BuildWorkflowUsed', 'event_value': 'provided-None', 'thread_id': 'd469ddb72da145a1b7f1679d67f501b3', 'time_stamp': '2023-06-03 02:58:51.304', 'exception_name': None}, {'event_name': 'BuildFunctionRuntime',   
'event_value': 'provided.al2', 'thread_id': '5c4a60c7e02542b2bcdc5092e4f88d34', 'time_stamp': '2023-06-03 02:58:51.316', 'exception_name': None}, {'event_name': 'BuildWorkflowUsed', 'event_value':
'provided-None', 'thread_id': '44efedbd52ad4a49a9024c3a2f98824a', 'time_stamp': '2023-06-03 02:58:51.336', 'exception_name': None}]}}}]}
2023-06-02 21:58:54,760 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)
2023-06-02 21:58:55,104 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)

And sam-nightly --info works too!!!

sam-nightly --info   
{
  "version": "1.85.0.dev202306022034",
  "system": {
    "python": "3.8.8",
    "os": "Windows-10-10.0.22621-SP0"
  },
  "additional_dependencies": {
    "docker_engine": "24.0.2",
    "aws_cdk": "Not available",
    "terraform": "Not available"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

Thanks. I'll be looking forward to the next release!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

Patch is released in v1.86.0. Closing

@github-actions github-actions bot closed this as completed Jun 6, 2023
@jfuss
Copy link
Contributor

jfuss commented Jun 7, 2023

We found an issue with the upgrade. We had to revert until we patch it. Reopening.

@jfuss jfuss reopened this Jun 7, 2023
@jfuss jfuss removed the stage/waiting-for-release Fix has been merged to develop and is waiting for a release label Jun 7, 2023
@donovan-middleton
Copy link
Author

donovan-middleton commented Jun 7, 2023

Just pulled down 1.86.1. Still the same issue.
Guessing from the notes above, you all are already aware!!

Docker Desktop is now at 4.20.1 (110738) and retested. Same issue.

@jfuss
Copy link
Contributor

jfuss commented Jun 7, 2023

@donovan-middleton We had to revert the docker upgrade due to some breaking changes we didn't catch in the docker upgrade. We have that patched in #5279 and working on tests for that path we missed (commands that can use docker would fail if docker wasn't running).

Hopefully we can get this into our next release. 1.84.0 is still you best bet in the meantime. Sorry for the inconvenience and patience.

@jfuss
Copy link
Contributor

jfuss commented Jun 12, 2023

@donovan-middleton or others

Nightly should be working again. Would be helpful to us if someone can install nightly and just make sure things work as expected. The team got together and seems like we got everything resolved but additional validation just helps our confidence :)

@donovan-middleton
Copy link
Author

Installed SAM CLI, version 1.86.1.dev202306120901.

sam-nightly build --template 'IL4SS-template.yml' --parallel --use-container --debug works for me!

And output from sam-nightly --info:

{
  "version": "1.86.1.dev202306120901",
  "system": {
    "python": "3.8.8",
    "os": "Windows-10-10.0.22621-SP0"
  },
  "additional_dependencies": {
    "docker_engine": "24.0.2",
    "aws_cdk": "Not available",
    "terraform": "Not available"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

@jfuss jfuss added the stage/waiting-for-release Fix has been merged to develop and is waiting for a release label Jun 13, 2023
@github-actions
Copy link
Contributor

Patch is released in v1.87.0. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docker stage/waiting-for-release Fix has been merged to develop and is waiting for a release type/bug
Projects
None yet
Development

No branches or pull requests

4 participants