tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Tilt does not show logs after restarting a container (docker-compose)

Open jrico207 opened this issue 2 years ago • 3 comments

Expected Behavior

Tilt UI should continue showing logs of a container after it restarts.

Current Behavior

After a container restarts, Tilt UI no longer shows the output of the container.

Steps to Reproduce

Using the tilt provided example.

git clone https://github.com/tilt-dev/tilt-example-docker-compose
cd tilt-example-docker-compose
tilt up

Go to UI & restart the app container. It does not output expected "Server listening on port 3000" like it does on initial start.

Context

tilt doctor Output

Tilt: v0.31.2, built 2023-02-10 System: linux-amd64

Docker

  • Host: unix:///var/run/docker.sock
  • Server Version: 23.0.1
  • API Version: 1.42
  • Builder: 2
  • Compose Version: v2.14.1

Kubernetes

  • Env:
  • Context:
  • Cluster Name: Unknown
  • Namespace: default
  • Container Runtime: unknown
  • Version: Error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
  • Cluster Local Registry: none

About Your Use Case

Unable to develop effectively since I can't see logs after restarting.

jrico207 avatar Feb 11 '23 21:02 jrico207

One work-around is to disable the resource and enable it again. logs will show correctly.

jrico207 avatar Feb 11 '23 21:02 jrico207

:thinking: I can repro with Compose 2.14 but not with 2.15. can you try upgrading to Compose v2.15 and see if it fixes the problem for you?

nicks avatar Feb 13 '23 21:02 nicks

I've faced this issue too. Unfortunately, if you are using Rancher Desktop, as I do, the latest release only contains Compose 2.14. https://github.com/rancher-sandbox/rancher-desktop/releases/tag/v1.7.0

LeeShan87 avatar Feb 14 '23 21:02 LeeShan87