e2b-dev / E2B

Secure open source cloud runtime for AI apps & AI agents
https://e2b.dev/docs
Apache License 2.0
7.02k stars 458 forks source link

`Error: write EPIPE` during template building #426

Open mlejva opened 3 months ago

mlejva commented 3 months ago

When building a sandbox template, sometimes when the build takes long, it fails with the following error

b25671f0-575d-4efb-ac54-c82e0b516d17: digest: sha256:41bac1a8691ff8c808cb6b03ec4312d1a4c9dd48d24547b4fe070b0c15b49160 size: 2006
Docker image pushed.

Triggering build...
TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11600:11) {
  cause: Error: write EPIPE
      at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
      at __node_internal_errnoException (node:internal/errors:623:12)
      at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
      at writevGeneric (node:internal/stream_base_commons:138:26)
      at Socket._writeGeneric (node:net:950:11)
      at Socket._writev (node:net:959:8)
      at doWrite (node:internal/streams/writable:416:12)
      at clearBuffer (node:internal/streams/writable:571:5)
      at Writable.uncork (node:internal/streams/writable:358:7)
      at AsyncWriter.write (node:internal/deps/undici/undici:10342:16)
      at writeIterable (node:internal/deps/undici/undici:10281:23)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
    errno: -32,
    code: 'EPIPE',
    syscall: 'write'
  }
}
Execution time: 981.38s