Permissions Error: Unstable state when updating repo
When creating a Lambda SAM Application, I get a permissions error. Error: Unstable state when updating repo. Check that you have permissions to create/delete files in C:\Users\user\AppData\Roaming\AWS SAM directory Attached is the log file
- OS: Windows 10
-
sam --version: SAM CLI, version 1.35.0 - AWS region: us-east-2
2021-11-19 15:05:02 [ERROR]: log level: info 2021-11-19 15:05:02 [INFO]: Retrieving AWS endpoint data 2021-11-19 15:05:02 [INFO]: OS: Windows_NT x64 10.0.19041 2021-11-19 15:05:02 [INFO]: Visual Studio Code Extension Host Version: 1.62.3AWS Toolkit Version: 1.33.0 2021-11-19 15:05:31 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:05:34 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:05:36 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:05:39 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:05:43 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:05:45 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:05:48 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:05:48 [WARN]: AwsContext: no default region in credentials profile, falling back to us-east-1: 2021-11-19 15:06:20 [INFO]: SAM CLI location: C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd 2021-11-19 15:06:20 [INFO]: Running command: (not started) [C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd init --name lambda-nodejs12.x --no-interactive --dependency-manager npm --runtime nodejs12.x --app-template hello-world --architecture x86_64] 2021-11-19 15:06:20 [INFO]: SAM CLI not configured, using SAM found at: 'C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd' 2021-11-19 15:06:20 [INFO]: Running: (not started) [C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd init --name lambda-nodejs12.x --no-interactive --dependency-manager npm --runtime nodejs12.x --app-template hello-world --architecture x86_64] 2021-11-19 15:08:19 [ERROR]: Unexpected exitcode (1), expecting (0) 2021-11-19 15:08:19 [ERROR]: Error creating new SAM Application. Check the logs by running the "View AWS Toolkit Logs" command from the Command Palette. 2021-11-19 15:08:19 [ERROR]: Error: undefined 2021-11-19 15:08:19 [ERROR]: stderr: Cloning from https://github.com/aws/aws-sam-cli-app-templates ,Error: Unstable state when updating repo. Check that you have permissions to create/delete files in C:\Users\user\AppData\Roaming\AWS SAM directory or file an issue at https://github.com/aws/aws-sam-cli/issues 2021-11-19 15:08:19 [ERROR]: stdout: 2021-11-19 15:08:19 [ERROR]: Error creating new SAM Application: Error: Error with child process: Cloning from https://github.com/aws/aws-sam-cli-app-templates ,Error: Unstable state when updating repo. Check that you have permissions to create/delete files in C:\Users\user\AppData\Roaming\AWS SAM directory or file an issue at https://github.com/aws/aws-sam-cli/issues at CL (c:\Users\user.vscode\extensions\amazonwebservices.aws-toolkit-vscode-1.33.0\dist\extension.js:2032:116) at BS (c:\Users\user.vscode\extensions\amazonwebservices.aws-toolkit-vscode-1.33.0\dist\extension.js:2032:495) at r3 (c:\Users\user.vscode\extensions\amazonwebservices.aws-toolkit-vscode-1.33.0\dist\extension.js:2348:555) at processTicksAndRejections (internal/process/task_queues.js:93:5) at N3 (c:\Users\user.vscode\extensions\amazonwebservices.aws-toolkit-vscode-1.33.0\dist\extension.js:2366:1855) at c:\Users\user.vscode\extensions\amazonwebservices.aws-toolkit-vscode-1.33.0\dist\extension.js:2432:985 at o._executeContributedCommand (c:\Users\user\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:94:111743) 2021-11-19 15:10:04 [INFO]: telemetry: sent batch (size=4)
@IamTinashe Do you have git installed? This typically happens on Windows when git isn't found (or at least from things I have seen in the past).
error happening to me too in windows. GIT installed.
Error: Unstable state when updating repo. Check that you have permissions to create/delete files in C:\Users
some issues found with possible solutions https://github.com/aws/aws-sam-cli/issues/1712 https://github.com/aws/aws-sam-cli/issues/1891
update: this one works for me https://github.com/aws/aws-sam-cli/issues/1891#issuecomment-997204295
sam init --output-dir . --name demo-app --location c:/users/dude/appdata/local/programs/python/python37-32/lib/site-packages/samcli/lib/init/templates/cookiecutter-aws-sam-hello-nodejs --debug
@superern Thanks for providing help on this! @IamTinashe are you still having this issue still or did you get it figured out? Looking forward to hearing from you!
This is happening to me as well
Also happening to me too.
-
SAM CLI, version 1.53.0 - Windows 10 Pro
- Version 10.0.19044 Build 19044
Do we have a work aroud yet? It looks like it's been a problem for a long time.
2022-08-11 13:01:28,132 |
Cloning from https://github.com/aws/aws-sam-cli-app-templates (process may take a moment)
2022-08-11 13:01:28,132 | Configure core.longpaths=true in git clone. You might also need to enable long paths in Windows registry.
2022-08-11 13:01:43,913 | Removing old repo at C:\Users\MY_USERNAME\AppData\Roaming\AWS SAM\aws-sam-cli-app-templates
2022-08-11 13:01:44,593 | Copying from C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates to C:\Users\MY_USERNAME\AppData\Roaming\AWS SAM\aws-sam-cli-app-templates
2022-08-11 13:01:47,494 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\dotnetcore3.1\cookiecutter-aws-sam-quick-start-cloudwatch-events-dotnet\{{cookiecutter.project_name}}\test\{{cookiecutter.project_name}}.Tests\{{cookiecutter.project_name}}.Tests.csproj, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583E80>)
2022-08-11 13:01:47,494 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\dotnetcore3.1\cookiecutter-aws-sam-quick-start-cloudwatch-events-dotnet\{{cookiecutter.project_name}}\test\{{cookiecutter.project_name}}.Tests, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583E80>)
2022-08-11 13:01:47,495 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\dotnetcore3.1\cookiecutter-aws-sam-quick-start-cloudwatch-events-dotnet\{{cookiecutter.project_name}}\test, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583F80>)
2022-08-11 13:01:47,495 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\dotnetcore3.1\cookiecutter-aws-sam-quick-start-cloudwatch-events-dotnet\{{cookiecutter.project_name}}, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583E40>)
2022-08-11 13:01:47,496 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\dotnetcore3.1\cookiecutter-aws-sam-quick-start-cloudwatch-events-dotnet, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2588400>)
2022-08-11 13:01:47,530 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\dotnetcore3.1, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25884C0>)
2022-08-11 13:01:47,900 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,901 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,901 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,901 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,901 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,901 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,901 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,901 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,902 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25836C0>)
2022-08-11 13:01:47,902 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\native-image.properties, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583740>)
2022-08-11 13:01:47,902 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\reflect-config.json, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583740>)
2022-08-11 13:01:47,902 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583740>)
2022-08-11 13:01:47,903 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583780>)
2022-08-11 13:01:47,903 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,904 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583980>)
2022-08-11 13:01:47,904 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25839C0>)
2022-08-11 13:01:47,905 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583B80>)
2022-08-11 13:01:47,906 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583BC0>)
2022-08-11 13:01:47,907 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583CC0>)
2022-08-11 13:01:47,907 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-gradle, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583F00>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,911 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,912 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,912 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\native-image.properties, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583940>)
2022-08-11 13:01:47,912 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\reflect-config.json, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583940>)
2022-08-11 13:01:47,913 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583940>)
2022-08-11 13:01:47,913 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583A00>)
2022-08-11 13:01:47,913 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583A80>)
2022-08-11 13:01:47,914 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25839C0>)
2022-08-11 13:01:47,915 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583B00>)
2022-08-11 13:01:47,916 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583D40>)
2022-08-11 13:01:47,917 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583C80>)
2022-08-11 13:01:47,918 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25838C0>)
2022-08-11 13:01:47,918 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11\cookiecutter-aws-sam-graalvm-maven, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583E00>)
2022-08-11 13:01:47,918 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java11, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2588040>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,925 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,926 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583600>)
2022-08-11 13:01:47,926 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\native-image.properties, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583800>)
2022-08-11 13:01:47,926 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\reflect-config.json, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583800>)
2022-08-11 13:01:47,926 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583800>)
2022-08-11 13:01:47,927 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583780>)
2022-08-11 13:01:47,927 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,928 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583A40>)
2022-08-11 13:01:47,929 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583A00>)
2022-08-11 13:01:47,930 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25839C0>)
2022-08-11 13:01:47,930 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}\HelloWorldFunction, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583B00>)
2022-08-11 13:01:47,931 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle\{{cookiecutter.project_name}}, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583B40>)
2022-08-11 13:01:47,931 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-gradle, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583AC0>)
2022-08-11 13:01:47,935 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,936 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-core, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,936 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,936 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-events, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,936 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,936 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-runtime-interface-client, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,936 | rmtree failed in <built-in function scandir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,936 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws\aws-lambda-java-serialization, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,937 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\com.amazonaws, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25837C0>)
2022-08-11 13:01:47,938 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\native-image.properties, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583940>)
2022-08-11 13:01:47,938 | rmtree failed in <built-in function unlink> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld\reflect-config.json, details: (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the path specified'), <traceback object at 0x000001D6B2583940>)
2022-08-11 13:01:47,938 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image\helloworld, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583940>)
2022-08-11 13:01:47,939 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF\native-image, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583A80>)
2022-08-11 13:01:47,939 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources\META-INF, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583900>)
2022-08-11 13:01:47,940 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\resources, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583A00>)
2022-08-11 13:01:47,940 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src\main, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583C40>)
2022-08-11 13:01:47,942 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction\src, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583D40>)
2022-08-11 13:01:47,942 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}\HelloWorldFunction, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583DC0>)
2022-08-11 13:01:47,943 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven\{{cookiecutter.project_name}}, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25838C0>)
2022-08-11 13:01:47,944 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17\cookiecutter-aws-sam-graalvm-maven, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2583E80>)
2022-08-11 13:01:47,945 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm\java17, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2588040>)
2022-08-11 13:01:47,945 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2\graalvm, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2588400>)
2022-08-11 13:01:47,948 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates\provided.al2, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B25880C0>)
2022-08-11 13:01:48,124 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq\aws-sam-cli-app-templates, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B2588100>)
2022-08-11 13:01:48,125 | rmtree failed in <built-in function rmdir> for C:\Users\MY_USERNAME\AppData\Local\Temp\tmp8s0_6jpq, details: (<class 'OSError'>, OSError(41, 'The directory is not empty'), <traceback object at 0x000001D6B258CE40>)
2022-08-11 13:01:48,125 | Template is not provided in context, skip adding project type metric
2022-08-11 13:01:48,126 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': 'c181cd4f-1c6c-44d3-b968-84b331213289', 'installationId': '980e2af2-4539-4065-8631-5b5dd148f23a', 'sessionId': 'f6d74ea6-5fb7-4e38-b55f-43ffed42837c', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.53.0', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam init', 'duration': 32849, 'exitReason': 'AppTemplateUpdateException', 'exitCode': 1}}]}
2022-08-11 13:01:51,325 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)
Error: Unstable state when updating repo. Check that you have permissions to create/delete files in C:\Users\MY_USERNAME\AppData\Roaming\AWS SAM directory or file an issue at https://github.com/aws/aws-sam-cli/issues```
Solution: I'd set Git to allow long paths, but hadn't set the Windows registry.
- Open Registry Editor (
regedit.exe). - Navigate to
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem - Set
LongPathsEnabledto1.
Problem solved.
Closing in favor of https://github.com/aws/aws-sam-cli/issues/4031
Unstable state when updating repo. Check thaUnstable state when updating repo. Check that you have permissions to create/delete files in C:\Users\USER\AppData\Roaming\AWS SAM directoryt you have permissions to create/delete files in C:\Users\USER\AppData\Roaming\AWS SAM directory how fix it