aws / aws/aws-sam-cli

Build is stuck trying to acquire `tstate_lock`

Open
#5,886 12 comments 2 reactions 0 assignees View on GitHub
area/build blocked/more-info-needed platform/windows
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

When running `sam build` (under WSL2), I get:

```
architecture: x86_64 functions: HelloWorldFunction
Building image for HelloWorldFunction function
Setting DockerBuildArgs: {} for HelloWorldFunction function
```

It is stuck there. When I abort it, I get:
```
Aborted!
^CException ignored in:
Traceback (most recent call last):
File "threading.py", line 1553, in _shutdown
File "concurrent/futures/thread.py", line 31, in _python_exit
File "threading.py", line 1112, in join
File "threading.py", line 1132, in _wait_for_tstate_lock
KeyboardInterrupt:
```

This suggests that it is waiting for a lock called `tstate_lock`. Rebooting the computer did not fix the problem.

P.S. I have also asked this on [SO](https://stackoverflow.com/q/77039005/2725810).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.