# Simulator not running

**URL:** <https://forum.storj.io/t/simulator-not-running/11336>\
**Category:** troubleshooting\
**Created:** [January 21, 2021, 11:27pm UTC](https://forum.storj.io/t/simulator-not-running/11336 "2021-01-21T23:27:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneyzb](https://storj.bcdn.literatehosting.com/letter_avatar/aneyzb/32/6_449c533f586939b6e5f246632a46421f.png) [@aneyzb](https://forum.storj.io/u/aneyzb)\
**Post date:** [January 21, 2021, 11:27pm UTC](https://forum.storj.io/t/simulator-not-running/11336/1 "2021-01-21T23:27:09Z")

</div>

The simulator seems to fail on the `storj-sim network run` command.

> <https://github.com/storj/storj/issues/4029>
>
> When running the test network using the following tutorial - https://github.com/storj/storj/wiki/Test-network
> When running storj-sim network run I get the following error
> satellite-migration/0 15:20:01.115...

I would appreciate any insight on how to resolve this,.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 24, 2021, 9:35am UTC](https://forum.storj.io/t/simulator-not-running/11336/2 "2021-01-24T09:35:13Z")

</div>

Hello @aneyzb,  
Welcome to the forum!

Can you check that you actually created the `teststorj` database, because I have a such `docker-compose.yml`:

```auto
version: '3'
services:
  postgres:
    image: postgres:latest
    environment:
      - POSTGRES_HOST_AUTH_METHOD=trust
      - POSTGRES_DB=teststorj
    ports:
      - 5432:5432
  storj-sim:
    build:
      context: .
    image: "storj-sim:latest"
    ports:
      - 10000:10000
      - 10002:10002
      - 11000:11000
      - 12000:12000
      - 13000:13000
    volumes:
      - "~/:/storj"
    depends_on:
      - postgres

```

And all running successfully.  
My `Dockerfile` for `storj-sim` is look like:

```auto
FROM golang:1.14 as builder
RUN git clone https://github.com/storj/storj.git storj
RUN cd storj && make install-sim
# RUN cd storj && go install -v ./...

FROM frolvlad/alpine-miniconda2
RUN apk --no-cache add ca-certificates redis
WORKDIR /storj/
COPY --from=builder /go/bin /bin
COPY --from=builder /go/storj/web /go/storj/web
RUN storj-sim network setup --postgres=postgres://postgres@postgres/teststorj?sslmode=disable
RUN sed -i 's/127.0.0.1:11000/0.0.0.0:11000/g' /root/.local/share/storj/local-network/gateway/0/config.yaml
RUN sed -i 's/server.address: 127.0.0.1:10000/server.address: :10000/g' /root/.local/share/storj/local-network/satellite/0/config.yaml
# RUN uplink import $(storj-sim network env GATEWAY_0_ACCESS)

EXPOSE 10000
EXPOSE 11000

CMD ["network", "run"]
ENTRYPOINT ["storj-sim"]

```

To check your postgres instance:

```auto
psql -U postgres -h localhost
postgres=# \l

```

Should return a list of databases. Check that it has the `teststorj` database here.

---

<div class="post-metadata">

**Author:** ![aneyzb](https://storj.bcdn.literatehosting.com/letter_avatar/aneyzb/32/6_449c533f586939b6e5f246632a46421f.png) [@aneyzb](https://forum.storj.io/u/aneyzb)\
**Post date:** [January 25, 2021, 1:10am UTC](https://forum.storj.io/t/simulator-not-running/11336/3 "2021-01-25T01:10:17Z")

</div>

Hi Alexey - I was able to resolve the issue. I was having a permissions issue with my posgres user. Thank you!
