# Basic dfx new + dfx start errors

**URL:** <https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057>\
**Category:** Rust\
**Created:** [October 28, 2023, 7:41am UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057 "2023-10-28T07:41:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cakeday](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cakeday/32/13433_2.png) [@Cakeday](https://forum.dfinity.org/u/Cakeday)\
**Post date:** [October 28, 2023, 7:41am UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/1 "2023-10-28T07:41:21Z")

</div>

I installed the cli tool following the docs, but after creating a new project with `dfx new what` (ignore the dirname… lol), running dfx start (from the what dir) spits out this error:

➜ what git:(main) ✗ dfx start  
Running dfx start for version 0.15.1  
Using the default definition for the ‘local’ shared network because /Users/calebreyes/.config/dfx/networks.json does not exist.  
thread ‘main’ panicked at ‘Conversion from protobuf should not fail: Other(“Missing required struct field: UnmaskedTranscriptWithAttributes::attributes”)’, rs/artifact\_pool/src/rocksdb\_pool.rs:541:22  
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

more details:  
➜ what git:(main) ✗ which dfx  
/usr/local/bin/dfx  
➜ what git:(main) ✗ dfx -V  
dfx 0.15.1  
➜ what git:(main) ✗ dfx diagnose  
Error: An error happened during communication with the replica: error sending request for url ([http://127.0.0.1:4943/api/v2/status](http://127.0.0.1:4943/api/v2/status)): error trying to connect: tcp connect error: Connection refused (os error 61)

I also deleted and re-installed the cache via dfx cache, to no avail.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [October 30, 2023, 7:40am UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/2 "2023-10-30T07:40:44Z")

</div>

What system are you running this on?

---

<div class="post-metadata">

**Author:** ![ZackDS](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zackds/32/40368_2.png) [@ZackDS](https://forum.dfinity.org/u/ZackDS)\
**Post date:** [October 30, 2023, 1:05pm UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/3 "2023-10-30T13:05:26Z")

</div>

Not able to reproduce this, can you give more details about your setup ?

---

<div class="post-metadata">

**Author:** ![Cakeday](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cakeday/32/13433_2.png) [@Cakeday](https://forum.dfinity.org/u/Cakeday)\
**Post date:** [October 30, 2023, 6:08pm UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/4 "2023-10-30T18:08:17Z")

</div>

Running on an M1 MacBook Pro. After nuking/reinstalling the binary a few times, I got the local environment running after running dfx start --clean. 🤷🏽‍♂️

---

<div class="post-metadata">

**Author:** ![whitedevil9991](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/whitedevil9991/32/16204_2.png) [@whitedevil9991](https://forum.dfinity.org/u/whitedevil9991)\
**Post date:** [March 7, 2024, 10:22am UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/5 "2024-03-07T10:22:04Z")

</div>

same issue. upon running: dfx start, error: Running dfx start for version 0.17.0  
Using the default definition for the ‘local’ shared network because /home/rk/.config/dfx/networks.json does not exist.  
Initialized replica.  
Dashboard: htp://localhost:40683/\_/dashboard - Nothing is showing if i open this AND upon running: dfx stop, error: Using the default definition for the ‘local’ shared network because /home/rk/.config/dfx/networks.json does not exist. - I have tried modifying the dfx.json file with the help of google’s gemini but of no use

---

<div class="post-metadata">

**Author:** ![lwshang](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lwshang/32/3394_2.png) [@lwshang](https://forum.dfinity.org/u/lwshang)\
**Post date:** [March 12, 2024, 3:00pm UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/6 "2024-03-12T15:00:26Z")

</div>

Hi @whitedevil9991,

It seems that you **did** successfully start a local replica and then stop it.

The message you saw when running both `dfx start` and `dfx stop` was **not** an error message.

```txt
Using the default definition for the ‘local’ shared network because /home/rk/.config/dfx/networks.json does not exist.

```

It informed you that it didn’t find a `networks.json` file at the path which can be used to configure the local replica behavior. So it proceeded with a default setting to start and stop the local replica.

After running `dfx run`, you said “Nothing is showing”. This is expected behavior since there was no interaction with the started replica. In a different CLI window, you can execute other `dfx` commands, e.g. `dfx deploy`.

---

<div class="post-metadata">

**Author:** ![shivangivatsalpatel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/shivangivatsalpatel/32/17529_2.png) [@shivangivatsalpatel](https://forum.dfinity.org/u/shivangivatsalpatel)\
**Post date:** [May 10, 2024, 1:37pm UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/7 "2024-05-10T13:37:15Z")

</div>

@lwshang Hello, i am facing the same problem as @Cakeday  
you said it didn’t find networks.json file in the path and i am facing the same issue so how can i add networks.json in the path? and where to find it from?

---

<div class="post-metadata">

**Author:** ![lwshang](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lwshang/32/3394_2.png) [@lwshang](https://forum.dfinity.org/u/lwshang)\
**Post date:** [May 10, 2024, 11:55pm UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/8 "2024-05-10T23:55:24Z")

</div>

You don’t need a `networks.json` file to start a local replica.  
Without the `networks.json`, `dfx start` will start the local replica with default configuration.

You can customize some configuration by providing a `networks.json` file at the suggested path. This is **optional**.

You can find more info in this page: [Defining custom networks](https://internetcomputer.org/docs/current/developer-docs/developer-tools/cli-tools/advanced-dfx/networks-json)

---

<div class="post-metadata">

**Author:** ![shivangivatsalpatel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/shivangivatsalpatel/32/17529_2.png) [@shivangivatsalpatel](https://forum.dfinity.org/u/shivangivatsalpatel)\
**Post date:** [May 11, 2024, 10:12am UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/9 "2024-05-11T10:12:33Z")

</div>

@Cakeday Hey! did you find the solution?

---

<div class="post-metadata">

**Author:** ![lwshang](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lwshang/32/3394_2.png) [@lwshang](https://forum.dfinity.org/u/lwshang)\
**Post date:** [May 13, 2024, 2:47pm UTC](https://forum.dfinity.org/t/basic-dfx-new-dfx-start-errors/24057/10 "2024-05-13T14:47:49Z")

</div>

Cakeday solved the original issue by running `dfx start --clean`.

The error message in the top of this forum thread implied that there might be some unload-able replica state data. That was likely caused by a previous run of `dfx start` using an old `dfx` version. After upgrading `dfx`, the state data format changed and the old data cannot be loaded.

The `--clean` flag will delete the previous local replica state data and start a new local replica instance with fresh clean state.
