# What causes the Distributed.ProcessExitedException(3) error in Julia and how can I resolve it in my Pluto notebook?

**URL:** <https://discourse.julialang.org/t/what-causes-the-distributed-processexitedexception-3-error-in-julia-and-how-can-i-resolve-it-in-my-pluto-notebook/97790>\
**Category:** Pluto\
**Tags:** distributed, julia\
**Created:** [April 22, 2023, 4:09pm UTC](https://discourse.julialang.org/t/what-causes-the-distributed-processexitedexception-3-error-in-julia-and-how-can-i-resolve-it-in-my-pluto-notebook/97790 "2023-04-22T16:09:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kondjenim](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kondjenim](https://discourse.julialang.org/u/kondjenim)\
**Post date:** [April 22, 2023, 4:09pm UTC](https://discourse.julialang.org/t/what-causes-the-distributed-processexitedexception-3-error-in-julia-and-how-can-i-resolve-it-in-my-pluto-notebook/97790/1 "2023-04-22T16:09:37Z")

</div>

I am encountering the `Distributed.ProcessExitedException(3)` error in my Julia Pluto notebook. I am not sure what is causing this error or how to resolve it. I have tried updating Julia and the Pluto package, as well as restarting the kernel, but the error persists.

Here is an example of the code that is causing the error:

```julia
MLJ.fit!(xgb_regressor, rows=train)

```

Can anyone help me understand what is causing this error and how I can resolve it? Thank you!

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [April 22, 2023, 6:40pm UTC](https://discourse.julialang.org/t/what-causes-the-distributed-processexitedexception-3-error-in-julia-and-how-can-i-resolve-it-in-my-pluto-notebook/97790/2 "2023-04-22T18:40:33Z")

</div>

That’s not quite what I meant with my earlier response in the other thread. A `Distributed.ProcessExitedException` just means that there was an error on some worker process, but it doesn’t tell you anything about the error itself. You’ll need to provide a full stacktrace, or even better an MWE version of your notebook for people to give you any useful advice.

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [April 22, 2023, 8:05pm UTC](https://discourse.julialang.org/t/what-causes-the-distributed-processexitedexception-3-error-in-julia-and-how-can-i-resolve-it-in-my-pluto-notebook/97790/3 "2023-04-22T20:05:02Z")

</div>

It could be running out of memory. Does it work if you use much less data (to diagnose)?

---

<div class="post-metadata">

**Author:** ![kondjenim](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kondjenim](https://discourse.julialang.org/u/kondjenim)\
**Post date:** [April 27, 2023, 1:48pm UTC](https://discourse.julialang.org/t/what-causes-the-distributed-processexitedexception-3-error-in-julia-and-how-can-i-resolve-it-in-my-pluto-notebook/97790/4 "2023-04-27T13:48:41Z")

</div>

Even if i reduce the data, i am still getting the same error

---

<div class="post-metadata">

**Author:** ![kondjenim](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kondjenim](https://discourse.julialang.org/u/kondjenim)\
**Post date:** [April 27, 2023, 4:02pm UTC](https://discourse.julialang.org/t/what-causes-the-distributed-processexitedexception-3-error-in-julia-and-how-can-i-resolve-it-in-my-pluto-notebook/97790/5 "2023-04-27T16:02:26Z")

</div>

Here is the full stacktrace

Worker 2 terminated.  
Unhandled Task ERROR: IOError: read: connection reset by peer (ECONNRESET)  
Stacktrace:  
[1] wait\_readnb(x::Sockets.TCPSocket, nb::Int64)  
@ Base .\stream.jl:410  
[2] (::Base.var"#wait\_locked#680")(s::Sockets.TCPSocket, buf::IOBuffer, nb::Int64)  
@ Base .\stream.jl:947  
[3] unsafe\_read(s::Sockets.TCPSocket, p::Ptr{UInt8}, nb::UInt64)  
@ Base .\stream.jl:953  
[4] unsafe\_read  
@ .\io.jl:759 [inlined]  
[5] unsafe\_read(s::Sockets.TCPSocket, p::Base.RefValue{NTuple{4, Int64}}, n::Int64)  
@ Base .\io.jl:758  
[6] read!  
@ .\io.jl:760 [inlined]  
[7] deserialize\_hdr\_raw  
@ C:\Users\martthomas\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Distributed\src\messages.jl:167 [inlined]  
[8] message\_handler\_loop(r\_stream::Sockets.TCPSocket, w\_stream::Sockets.TCPSocket, incoming::Bool)  
@ Distributed C:\Users\martthomas\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Distributed\src\process\_messages.jl:172  
[9] process\_tcp\_streams(r\_stream::Sockets.TCPSocket, w\_stream::Sockets.TCPSocket, incoming::Bool)  
@ Distributed C:\Users\martthomas\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Distributed\src\process\_messages.jl:133  
[10] (::Distributed.var"#103#104"{Sockets.TCPSocket, Sockets.TCPSocket, Bool})()  
@ Distributed .\task.jl:484
