# KeyError on additional processes while using Distributed

**URL:** <https://discourse.julialang.org/t/keyerror-on-additional-processes-while-using-distributed/63437>\
**Category:** Performance\
**Tags:** question, diffeq, distributed\
**Created:** [June 23, 2021, 12:29pm UTC](https://discourse.julialang.org/t/keyerror-on-additional-processes-while-using-distributed/63437 "2021-06-23T12:29:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vedang/32/26408_2.png) [@vedang](https://discourse.julialang.org/u/vedang)\
**Post date:** [June 23, 2021, 12:29pm UTC](https://discourse.julialang.org/t/keyerror-on-additional-processes-while-using-distributed/63437/1 "2021-06-23T12:29:25Z")

</div>

I am new to using Julia. I am trying to solve an `EnsembleProblem` using `EnsembleDistributed()` option in [DifferentialEquations.jl](https://diffeq.sciml.ai/stable/features/ensemble/). I have created multiple processes using:

```julia
using Distributed
addprocs(1,exeflags="--project=.")

```

I get the following error:

`ERROR: On worker 2: KeyError: key (0xbf15578b, 0x9f07237e, 0x8034bd61, 0xd9f77e95, 0xf00aa3dc) not found`

I could reproduce the error using `remotecall_fetch(solve, 2, prob, QNDF())`.

I understand that this error is thrown when the inquired key is not found in the dictionary. But what are these hash codes (e.g. `0xbf15578b`) ? (I am not sure if they are called hash codes). Is it because some modules/packages are not loaded correctly on the additional processes? However, I made sure that all functions and modules needed to define `prob` are available on the workers by calling `@getfrom 2 prob`. The `ODEProblem prob` being solved uses custom modules.

The test [example](https://diffeq.sciml.ai/stable/features/ensemble/#Example-1:-Solving-an-ODE-With-Different-Initial-Conditions) is working as expected.
