# Pkg.instantiate() error with multiple workers on 1 machine

**URL:** <https://discourse.julialang.org/t/pkg-instantiate-error-with-multiple-workers-on-1-machine/91022>\
**Category:** Julia at Scale\
**Created:** [November 30, 2022, 1:29am UTC](https://discourse.julialang.org/t/pkg-instantiate-error-with-multiple-workers-on-1-machine/91022 "2022-11-30T01:29:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jocklawrie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jocklawrie/32/33616_2.png) [@jocklawrie](https://discourse.julialang.org/u/jocklawrie)\
**Post date:** [November 30, 2022, 1:29am UTC](https://discourse.julialang.org/t/pkg-instantiate-error-with-multiple-workers-on-1-machine/91022/1 "2022-11-30T01:29:46Z")

</div>

Hi there,

This may well be user error, but thought I’d report it anyway in case there’s more to it.

I’m running a simulation over multiple workers on the same machine. I get an error (see the image below) that indicates a race condition when `@everywhere Pkg.instantiate()` is called. The more workers, the more likely the error. Removing `@everywhere` seems to fix it.

Do we chalk this up as user error?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/1/117635d73f1de124b5641b15dce313bfa583ee87.png)

---

<div class="post-metadata">

**Author:** ![simonbyrne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonbyrne/32/19_2.png) [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Post date:** [December 1, 2022, 10:18pm UTC](https://discourse.julialang.org/t/pkg-instantiate-error-with-multiple-workers-on-1-machine/91022/2 "2022-12-01T22:18:53Z")

</div>

Yes, in general you should only `Pkg.instantiate()` on a single process.
