Skip to content

[BUG] - Pipe buffer deadlockΒ #2928

@Adam-D-Lewis

Description

@Adam-D-Lewis

Describe the bug

I've seen an issue where there is deadlock shortly after running a nebari deploy command. The deadlock occurs when reading in the state from the tofu show command. The issue is a pipe buffer deadlock.

See the warning in the python docs:

Warning Use communicate() rather than .stdin.write, .stdout.read or .stderr.read to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.

We don't want to use communicate in this case b/c it blocks and we would only display output to our users after terraform stops running which could be very long in some cases.

Expected behavior

No deadlock

OS and architecture in which you are running Nebari

Linux

How to Reproduce the problem?

Working on it

Command output

Versions and dependencies used.

No response

Compute environment

None

Integrations

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done πŸ’ͺ🏾

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions