artefactual-sdps / enduro

A tool to support ingest and automation in digital preservation workflows
https://enduro.readthedocs.io/
Apache License 2.0
4 stars 3 forks source link

Problem: Regularly get "write EPIPE" error from Dashboard in Tilt dev env #1057

Open djjuhasz opened 1 month ago

djjuhasz commented 1 month ago

Describe the bug

In the Enduro Tilt dev environment when I load the package list in the Dashboard the page often fails to load a displays a totally blank white screen. The Dashboard log has the following error messages:

VITE v5.4.8  ready in 705 ms

  ➜  Local:   [http://localhost:80/](http://localhost/)
  ➜  Network: use --host to expose
3:32:41 PM [vite] ✨ new dependencies optimized: @vueuse/core, bootstrap/js/dist/tooltip, @vue/reactivity
3:32:41 PM [vite] ✨ optimized dependencies changed. reloading
Reconnecting... Error port-forwarding enduro-dashboard (8080 -> 80): creating stream: Timeout occurred
3:33:19 PM [vite] ws proxy socket error:
Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:161:15)
    at writeGeneric (node:internal/stream_base_commons:152:3)
    at Socket._writeGeneric (node:net:954:11)
    at Socket._write (node:net:966:8)
    at writeOrBuffer (node:internal/streams/writable:570:12)
    at _write (node:internal/streams/writable:499:10)
    at Writable.write (node:internal/streams/writable:508:10)
    at Socket.ondata (node:internal/streams/readable:1007:22)
    at Socket.emit (node:events:519:28)
    at addChunk (node:internal/streams/readable:559:12)

To Reproduce

Steps to reproduce the behavior:

  1. Start the Tilt dev environment with tilt up
  2. Add a one or more SIPs to the the Minio "sips" bucket to start processing
  3. Open the Enduro Dashboard in a browser window (http://localhost:8080/packages)
  4. Click on the "Packages" link on the left side of the screen
  5. Page fails to load, and after some time (30s?) the above errors are written the Tilt log for the "enduro-dashboard" resource

Expected behavior

The package list should load without errors

Screenshots

image

Additional context

If I wait a couple of minutes then try to reload http://localhost:8080/packages it usually loads fine.