Unable to retrieve Container logs with invalid utf-8 sequences (panic) #1148
Labels
awaiting-upstream
The issue cannot be resolved without action in another repository (may be owned by Pulumi).
blocked
The issue cannot be resolved without 3rd party action.
impact/panic
This bug represents a panic or unexpected crash
kind/bug
Some behavior is incorrect or out of spec
Describe what happened
(Related to this Slack thread)
While investigating the thread mentioned above, I create a basic container printing garbage utf-8 sequences.
While I couldn't get the same error message as our customer, I found 4 occurrences of a crash when calling the datasource
Docker.GetLogs()
.The app consists of:
echo
ing the sequencesSample program
Program.cs
Dockerfile
app/entrypoint.sh
Log output
After a close look, the 5 different test cases all generate the same crash.
Affected Resource(s)
Docker.GetLogs
Output of
pulumi about
Additional context
As a workaround to avoid the crash, it's possible to execute the container while at the same time retrieving the logs.
Attach
,Logs
andMustRun
need to be set as shown above and thenMyDockerContainer.ContainerLogs
should contain the logs generated during the container's execution..Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: