# Dfx nns install unusable

**URL:** <https://forum.dfinity.org/t/dfx-nns-install-unusable/32802>\
**Category:** Developers\
**Created:** [July 6, 2024, 10:24am UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802 "2024-07-06T10:24:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 6, 2024, 10:24am UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/1 "2024-07-06T10:24:25Z")

</div>

I started a clean local state with DFX and spinned NNS and dapp with dfx but, once logged in NNS dapp, the ICP account load forever and I’m unable to get ICP, which basically makes the test setting basically useless.

Can you fix the issue?

```auto
dfx start --clean
dfx extension uninstall nns
dfx extension install nns --version 0.4.1
dfx nns install

```

Open NNS dapp e.g. on [http://qsgjb-riaaa-aaaaa-aaaga-cai.localhost:8080/](http://qsgjb-riaaa-aaaaa-aaaga-cai.localhost:8080/)

 ![Capture d’écran 2024-07-06 à 12.23.28](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/6/0/6067edbc75e2346d211a7ae2bf6c8ee3ce84fef8.jpeg)  
 ![Capture d’écran 2024-07-06 à 12.23.41](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/f/5/f5ebd64fe5f62e84593bb69d8e5e70abfe923fd8.jpeg)

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 6, 2024, 10:38am UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/2 "2024-07-06T10:38:43Z")

</div>

Workaround: clean and reinstall the uterrly old version of NNS dapp.

```auto
dfx start --clean
dfx extension uninstall nns
dfx extension install nns
dfx nns install

```

 ![Capture d’écran 2024-07-06 à 12.38.35](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/5/0/507589421755f52294e9671b17b4f97ddff9e046.jpeg)

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 7, 2024, 1:05pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/3 "2024-07-07T13:05:05Z")

</div>

It works for me using dfx v0.20.1, Ubuntu 22.04.4 LTS, Google Chrome Version 126.0.6478.126 (Official Build) (64-bit), and `dfx extension install nns --version 0.4.1`:

 ![Screenshot from 2024-07-07 15-03-06](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/7/c/7c2cc478f38e9cfd5ad8eb5dc9b69d89582b3934.jpeg)

For completeness, here’s my `networks.json`:

```auto
$ cat ~/.config/dfx/networks.json 
{ 
  "local": { 
    "bind": "127.0.0.1:8080", 
    "type": "ephemeral", 
    "replica": { 
      "subnet_type": "system"
    } 
  } 
}

```

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 7, 2024, 1:32pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/4 "2024-07-07T13:32:16Z")

</div>

Thanks. I cleared the state for the zillion times and this time it worked out here as well. I guess the state went corrupted at some point.

 ![Capture d’écran 2024-07-07 à 15.31.31](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/b/b/bbf6584e6441a5781b1a0b6ecc83c6c5c5735ba1.jpeg)

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 7, 2024, 4:10pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/5 "2024-07-07T16:10:36Z")

</div>

Happened again. Might be because I started and quickly killed `dfx start --clean` - i.e. too slow and parts of the states is deleted but, other parts are still there.

 ![Capture d’écran 2024-07-07 à 18.08.58](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/3/7/37917df9b77c9774569294c3f29fa382aca385c5.jpeg)

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 8, 2024, 3:52pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/6 "2024-07-08T15:52:53Z")

</div>

It’s broken again! I definitely did not run any command like `clean` or whatsoever. I don’t know what’s happening, but there is definitely something fishy in that `dfx nns` setup.

 ![Capture d’écran 2024-07-08 à 17.50.47](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/3/8/38ea200b8c6b38fd0fe8fd4e365ba4b6d09cad48.jpeg)

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 8, 2024, 5:41pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/7 "2024-07-08T17:41:33Z")

</div>

Do you see some suspicious replica logs? Some errors in the browser console? Without a way to reproduce the error, it’d be close to impossible to fix it.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 9, 2024, 5:06pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/8 "2024-07-09T17:06:51Z")

</div>

It happened again. It feels like every day when I come back to my project, this just crashes.

> [@mraszyk](#):
>
> Do you see some suspicious replica logs? Some errors in the browser console? Without a way to reproduce the error, it’d be close to impossible to fix it.

So, no logs in DFX / local replica, or at least nothing particular.

 ![Capture d’écran 2024-07-09 à 17.56.25](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/d/0/d0f0166bbbe798a33415e08e0a3350b34f5dfcc3.jpeg)

In the browser console, it’s Xmas:

```auto
index.d5b34e7a.js:4 
        
        
       GET http://127.0.0.1:51760/api/v2/status net::ERR_CONNECTION_REFUSED
window.fetch @ index.d5b34e7a.js:4
request @ vendor.1affbd98.js:27
e @ vendor.1affbd98.js:32
status @ vendor.1affbd98.js:27
fetchRootKey @ vendor.1affbd98.js:27
vv @ vendor.1affbd98.js:47
Wn @ index.d5b34e7a.js:6
tc @ index.d5b34e7a.js:15
Aj @ index.d5b34e7a.js:15
request @ index.d5b34e7a.js:15
m @ index.d5b34e7a.js:15
kn @ index.d5b34e7a.js:15
Hi @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
r @ index.d5b34e7a.js:4
o @ index.d5b34e7a.js:4
setCanisters @ index.d5b34e7a.js:15
Tj @ index.d5b34e7a.js:15
jj @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
c3 @ index.d5b34e7a.js:1
(anonymous) @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
W @ index.d5b34e7a.js:4
HNe @ index.d5b34e7a.js:6
ee @ index.d5b34e7a.js:4
_e @ index.d5b34e7a.js:4
await in _e (async)
te @ index.d5b34e7a.js:4
goto @ index.d5b34e7a.js:4
LNe @ index.d5b34e7a.js:6
(anonymous) @ main.js:11
Promise.then (async)
(anonymous) @ main.js:10
index.d5b34e7a.js:4 
        
        
       GET http://127.0.0.1:51760/api/v2/status net::ERR_CONNECTION_REFUSED
window.fetch @ index.d5b34e7a.js:4
request @ vendor.1affbd98.js:27
e @ vendor.1affbd98.js:32
status @ vendor.1affbd98.js:27
fetchRootKey @ vendor.1affbd98.js:27
vv @ vendor.1affbd98.js:47
Wn @ index.d5b34e7a.js:6
tc @ index.d5b34e7a.js:15
Aj @ index.d5b34e7a.js:15
request @ index.d5b34e7a.js:15
m @ index.d5b34e7a.js:15
kn @ index.d5b34e7a.js:15
Hi @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:16
DW @ index.d5b34e7a.js:16
k @ index.d5b34e7a.js:16
v @ index.d5b34e7a.js:16
(anonymous) @ index.d5b34e7a.js:16
KJ.s.$$.update @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
Z8 @ index.d5b34e7a.js:16
WJ @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
YJ @ index.d5b34e7a.js:16
Lt @ index.d5b34e7a.js:1
Z9 @ index.d5b34e7a.js:6
$e @ index.d5b34e7a.js:1
oq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
Vz @ index.d5b34e7a.js:15
W @ index.d5b34e7a.js:4
l_ @ index.d5b34e7a.js:15
lq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
eq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
YE @ index.d5b34e7a.js:13
W @ index.d5b34e7a.js:4
QE @ index.d5b34e7a.js:13
rq @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
os @ index.d5b34e7a.js:16
iq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
Dz @ index.d5b34e7a.js:15
$e @ index.d5b34e7a.js:1
FP @ index.d5b34e7a.js:13
$e @ index.d5b34e7a.js:1
tP @ index.d5b34e7a.js:13
W @ index.d5b34e7a.js:4
rP @ index.d5b34e7a.js:13
Lt @ index.d5b34e7a.js:1
zP @ index.d5b34e7a.js:13
W @ index.d5b34e7a.js:4
qP @ index.d5b34e7a.js:13
Bz @ index.d5b34e7a.js:15
W @ index.d5b34e7a.js:4
Er @ index.d5b34e7a.js:15
aq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
Rz @ index.d5b34e7a.js:15
W @ index.d5b34e7a.js:4
ol @ index.d5b34e7a.js:15
uq @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
fq @ index.d5b34e7a.js:16
Lt @ index.d5b34e7a.js:1
Y9 @ index.d5b34e7a.js:6
Q9 @ index.d5b34e7a.js:6
$e @ index.d5b34e7a.js:1
y1 @ index.d5b34e7a.js:15
p @ index.d5b34e7a.js:15
l9 @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
Promise.then (async)
k3 @ index.d5b34e7a.js:4
u9 @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:15
r @ index.d5b34e7a.js:4
sync @ index.d5b34e7a.js:6
await in sync (async)
Lj @ index.d5b34e7a.js:15
zj @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
c3 @ index.d5b34e7a.js:1
(anonymous) @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
W @ index.d5b34e7a.js:4
HNe @ index.d5b34e7a.js:6
ee @ index.d5b34e7a.js:4
_e @ index.d5b34e7a.js:4
await in _e (async)
te @ index.d5b34e7a.js:4
goto @ index.d5b34e7a.js:4
LNe @ index.d5b34e7a.js:6
(anonymous) @ main.js:11
Promise.then (async)
(anonymous) @ main.js:10
index.d5b34e7a.js:4 
        
        
       GET http://127.0.0.1:51760/api/v2/status net::ERR_CONNECTION_REFUSED
window.fetch @ index.d5b34e7a.js:4
request @ vendor.1affbd98.js:27
e @ vendor.1affbd98.js:32
status @ vendor.1affbd98.js:27
fetchRootKey @ vendor.1affbd98.js:27
vv @ vendor.1affbd98.js:47
Wn @ index.d5b34e7a.js:6
Nn @ index.d5b34e7a.js:14
F4 @ index.d5b34e7a.js:14
queryNeurons @ index.d5b34e7a.js:14
request @ index.d5b34e7a.js:15
m @ index.d5b34e7a.js:15
kn @ index.d5b34e7a.js:15
await in kn (async)
Gr @ index.d5b34e7a.js:15
LV @ index.d5b34e7a.js:15
g5 @ index.d5b34e7a.js:15
s.$$.update @ index.d5b34e7a.js:15
l9 @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
Promise.then (async)
k3 @ index.d5b34e7a.js:4
u9 @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:15
r @ index.d5b34e7a.js:4
sync @ index.d5b34e7a.js:6
await in sync (async)
Lj @ index.d5b34e7a.js:15
zj @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
c3 @ index.d5b34e7a.js:1
(anonymous) @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
W @ index.d5b34e7a.js:4
HNe @ index.d5b34e7a.js:6
ee @ index.d5b34e7a.js:4
_e @ index.d5b34e7a.js:4
await in _e (async)
te @ index.d5b34e7a.js:4
goto @ index.d5b34e7a.js:4
LNe @ index.d5b34e7a.js:6
(anonymous) @ main.js:11
Promise.then (async)
(anonymous) @ main.js:10
index.d5b34e7a.js:4 
        
        
       GET http://127.0.0.1:51760/api/v2/status net::ERR_CONNECTION_REFUSED
window.fetch @ index.d5b34e7a.js:4
request @ vendor.1affbd98.js:27
e @ vendor.1affbd98.js:32
status @ vendor.1affbd98.js:27
fetchRootKey @ vendor.1affbd98.js:27
vv @ vendor.1affbd98.js:47
Wn @ index.d5b34e7a.js:6
tc @ index.d5b34e7a.js:15
Pj @ index.d5b34e7a.js:15
Oj @ index.d5b34e7a.js:15
request @ index.d5b34e7a.js:15
m @ index.d5b34e7a.js:15
kn @ index.d5b34e7a.js:15
await in kn (async)
uo @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:16
DW @ index.d5b34e7a.js:16
k @ index.d5b34e7a.js:16
v @ index.d5b34e7a.js:16
(anonymous) @ index.d5b34e7a.js:16
KJ.s.$$.update @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
Z8 @ index.d5b34e7a.js:16
WJ @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
YJ @ index.d5b34e7a.js:16
Lt @ index.d5b34e7a.js:1
Z9 @ index.d5b34e7a.js:6
$e @ index.d5b34e7a.js:1
oq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
Vz @ index.d5b34e7a.js:15
W @ index.d5b34e7a.js:4
l_ @ index.d5b34e7a.js:15
lq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
eq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
YE @ index.d5b34e7a.js:13
W @ index.d5b34e7a.js:4
QE @ index.d5b34e7a.js:13
rq @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
os @ index.d5b34e7a.js:16
iq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
Dz @ index.d5b34e7a.js:15
$e @ index.d5b34e7a.js:1
FP @ index.d5b34e7a.js:13
$e @ index.d5b34e7a.js:1
tP @ index.d5b34e7a.js:13
W @ index.d5b34e7a.js:4
rP @ index.d5b34e7a.js:13
Lt @ index.d5b34e7a.js:1
zP @ index.d5b34e7a.js:13
W @ index.d5b34e7a.js:4
qP @ index.d5b34e7a.js:13
Bz @ index.d5b34e7a.js:15
W @ index.d5b34e7a.js:4
Er @ index.d5b34e7a.js:15
aq @ index.d5b34e7a.js:16
$e @ index.d5b34e7a.js:1
Rz @ index.d5b34e7a.js:15
W @ index.d5b34e7a.js:4
ol @ index.d5b34e7a.js:15
uq @ index.d5b34e7a.js:16
W @ index.d5b34e7a.js:4
fq @ index.d5b34e7a.js:16
Lt @ index.d5b34e7a.js:1
Y9 @ index.d5b34e7a.js:6
Q9 @ index.d5b34e7a.js:6
$e @ index.d5b34e7a.js:1
y1 @ index.d5b34e7a.js:15
p @ index.d5b34e7a.js:15
l9 @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
Promise.then (async)
k3 @ index.d5b34e7a.js:4
u9 @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:15
r @ index.d5b34e7a.js:4
sync @ index.d5b34e7a.js:6
await in sync (async)
Lj @ index.d5b34e7a.js:15
zj @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
c3 @ index.d5b34e7a.js:1
(anonymous) @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
W @ index.d5b34e7a.js:4
HNe @ index.d5b34e7a.js:6
ee @ index.d5b34e7a.js:4
_e @ index.d5b34e7a.js:4
await in _e (async)
te @ index.d5b34e7a.js:4
goto @ index.d5b34e7a.js:4
LNe @ index.d5b34e7a.js:6
(anonymous) @ main.js:11
Promise.then (async)
(anonymous) @ main.js:10
index.d5b34e7a.js:4 
        
        
       GET http://127.0.0.1:51760/api/v2/status net::ERR_CONNECTION_REFUSED
window.fetch @ index.d5b34e7a.js:4
request @ vendor.1affbd98.js:27
e @ vendor.1affbd98.js:32
status @ vendor.1affbd98.js:27
fetchRootKey @ vendor.1affbd98.js:27
vv @ vendor.1affbd98.js:47
Wn @ index.d5b34e7a.js:6
Yo @ index.d5b34e7a.js:14
Kp @ index.d5b34e7a.js:14
JO @ index.d5b34e7a.js:15
l5 @ index.d5b34e7a.js:15
request @ index.d5b34e7a.js:15
m @ index.d5b34e7a.js:15
kn @ index.d5b34e7a.js:15
await in kn (async)
i5 @ index.d5b34e7a.js:15
eV @ index.d5b34e7a.js:15
$Ne @ index.d5b34e7a.js:22
fB @ index.d5b34e7a.js:14
await in fB (async)
c @ index.d5b34e7a.js:15
s.$$.update @ index.d5b34e7a.js:15
l9 @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
Promise.then (async)
k3 @ index.d5b34e7a.js:4
u9 @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:4
(anonymous) @ index.d5b34e7a.js:15
r @ index.d5b34e7a.js:4
sync @ index.d5b34e7a.js:6
await in sync (async)
Lj @ index.d5b34e7a.js:15
zj @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
c3 @ index.d5b34e7a.js:1
(anonymous) @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
W @ index.d5b34e7a.js:4
HNe @ index.d5b34e7a.js:6
ee @ index.d5b34e7a.js:4
_e @ index.d5b34e7a.js:4
await in _e (async)
te @ index.d5b34e7a.js:4
goto @ index.d5b34e7a.js:4
LNe @ index.d5b34e7a.js:6
(anonymous) @ main.js:11
Promise.then (async)
(anonymous) @ main.js:10
qsgjb-riaaa-aaaaa-aaaga-cai.localhost/:1 Access to fetch at 'http://sgymv-uiaaa-aaaaa-aaaia-cai.localhost:8080/v1/sns/list/page/0/slow.json' from origin 'http://qsgjb-riaaa-aaaaa-aaaga-cai.localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
index.d5b34e7a.js:4 
        
        
       GET http://sgymv-uiaaa-aaaaa-aaaia-cai.localhost:8080/v1/sns/list/page/0/slow.json net::ERR_FAILED 500 (Internal Server Error)
window.fetch @ index.d5b34e7a.js:4
q5 @ index.d5b34e7a.js:15
oj @ index.d5b34e7a.js:15
querySnsProjects @ index.d5b34e7a.js:15
K5 @ index.d5b34e7a.js:15
jj @ index.d5b34e7a.js:15
(anonymous) @ index.d5b34e7a.js:15
c3 @ index.d5b34e7a.js:1
(anonymous) @ index.d5b34e7a.js:4
gn @ index.d5b34e7a.js:4
W @ index.d5b34e7a.js:4
HNe @ index.d5b34e7a.js:6
ee @ index.d5b34e7a.js:4
_e @ index.d5b34e7a.js:4
await in _e (async)
te @ index.d5b34e7a.js:4
goto @ index.d5b34e7a.js:4
LNe @ index.d5b34e7a.js:6
(anonymous) @ main.js:11
Promise.then (async)
(anonymous) @ main.js:10
index.d5b34e7a.js:15 Error converting data TypeError: Failed to fetch
    at window.fetch (index.d5b34e7a.js:4:9223)
    at q5 (index.d5b34e7a.js:15:67635)
    at oj (index.d5b34e7a.js:15:68050)
    at Object.querySnsProjects (index.d5b34e7a.js:15:68348)
    at K5 (index.d5b34e7a.js:15:68908)
    at jj (index.d5b34e7a.js:15:78230)
    at index.d5b34e7a.js:15:85386
    at c3 (index.d5b34e7a.js:1:1543)
    at Array.map (<anonymous>)
    at index.d5b34e7a.js:4:6596

```

 ![Capture d’écran 2024-07-09 à 17.59.23](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/8/a/8afe47fcf6f4dd361f2bce18fbf8b22fdc47933a.jpeg)  
 ![Capture d’écran 2024-07-09 à 17.59.16](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/3/b/3b4d0ed2fb6602da1506d77afa5d31d6e60a6994.jpeg)

Note that only NNS dapp and the ledger seems to have issues . My own project deployed with my own canister are just fine. Likewise for II.

 ![Capture d’écran 2024-07-09 à 18.00.01](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/c/6/c6ede68c26c7ec27a6ea4a67e2c61a850f3b9b5c.jpeg)  
 ![Capture d’écran 2024-07-09 à 18.00.16](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/1/7/171029905f1bb2b31dbcc63fc40abb9ebffe5020.jpeg)

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 9, 2024, 5:30pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/9 "2024-07-09T17:30:24Z")

</div>

Since [http://127.0.0.1:51760/api/v2/status](http://127.0.0.1:51760/api/v2/status) doesn’t work, it looks like the agent is trying to connect to a non-existing replica. Why does the agent not use the HTTP gateway port (8080)?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 9, 2024, 5:41pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/10 "2024-07-09T17:41:11Z")

</div>

No clue.

That’s my dfx file: [proposals.network/dfx.json at main · peterpeterparker/proposals.network · GitHub](https://github.com/peterpeterparker/proposals.network/blob/main/dfx.json)

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 9, 2024, 5:52pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/11 "2024-07-09T17:52:56Z")

</div>

Btw. those are the instruction to deploy and develop that particular project locally: [proposals.network/HACKING.md at main · peterpeterparker/proposals.network · GitHub](https://github.com/peterpeterparker/proposals.network/blob/main/HACKING.md)

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 9, 2024, 6:22pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/12 "2024-07-09T18:22:11Z")

</div>

The replica URL comes from [here](https://github.com/dfinity/dfx-extensions/blob/c09914b15343659e550ee50558b9a8cf8c976312/extensions/nns/src/commands/install.rs#L42) so you should make sure to not stop and start the replica after running `dfx nns install`, or even better pin the replica port:

```auto
$ cat ~/.config/dfx/networks.json 
{ 
  "local": { 
    "bind": "127.0.0.1:8080", 
    "type": "ephemeral", 
    "replica": { 
      "subnet_type": "system",
      "port": 8000
    } 
  } 
}

```

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 9, 2024, 6:25pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/13 "2024-07-09T18:25:58Z")

</div>

I’ll also fix the dfx nns extension, but this might take some time to get out, so pinning the replica port is the best short-term mitigation.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 9, 2024, 6:47pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/14 "2024-07-09T18:47:53Z")

</div>

> [@mraszyk](#):
>
> so you should make sure to not stop and start the replica after running `dfx nns install`,

I’m not sure I understand what you mean. Are you implying that I should `dfx start`, then `dfx nns install`, and then never stop `dfx` again, otherwise it will lead to the issue?

> [@mraszyk](#):
>
> or even better pin the replica port:

Sure I can try that.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 9, 2024, 7:28pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/15 "2024-07-09T19:28:49Z")

</div>

> [@peterparker](#):
>
> > [@mraszyk](#):
> >
> > or even better pin the replica port:
> 
> Sure I can try that.

Well, that does not work at all.

```auto
❯ dfx start --clean
Running dfx start for version 0.20.0
Using project-specific network 'local' defined in /Users/daviddalbusco/projects/opensource/proposals.network/dfx.json
2024-07-09T19:27:56.684786Z ERROR icx_proxy_dev: Runtime crashed
Error: Runtime crashed

Caused by:
    0: fail to fetch root key for http://localhost:8000/
    1: An error happened during communication with the replica: error trying to connect: tcp connect error: Connection refused (os error 61)
2024-07-09T19:27:58.898450Z ERROR icx_proxy_dev: Runtime crashed
Error: Runtime crashed

Caused by:
    0: fail to fetch root key for http://localhost:8000/
    1: An error happened during communication with the replica: error trying to connect: tcp connect error: Connection refused (os error 61)
Initialized replica.
Dashboard: http://localhost:8000/_/dashboard

```

```auto
"networks": {
		"local": {
			"bind": "127.0.0.1:8080",
			"replica": {
				"subnet_type": "system",
				"port": 8000
			},
			"type": "ephemeral"
		}
	},

```

 ![Capture d’écran 2024-07-09 à 21.28.40](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/4/7/4728e274042d321853f3ff42a568e27e5c3226c1.jpeg)

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 9, 2024, 8:11pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/16 "2024-07-09T20:11:16Z")

</div>

Don’t worry about the error messages, icx-proxy seems to be too eager, but eventually the connection is established.

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 9, 2024, 8:11pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/17 "2024-07-09T20:11:55Z")

</div>

> [@peterparker](#):
>
> I’m not sure I understand what you mean. Are you implying that I should `dfx start`, then `dfx nns install`, and then never stop `dfx` again, otherwise it will lead to the issue?

Exactly! This is what I mean.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 10, 2024, 2:00pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/18 "2024-07-10T14:00:30Z")

</div>

> [@mraszyk](#):
>
> Exactly! This is what I mean.

Thanks, I appreciate that you come up with a scenario but, it’s just not an option.

> [@mraszyk](#):
>
> Don’t worry about the error messages, icx-proxy seems to be too eager, but eventually the connection is established.

Ok, I’ll try again.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [July 10, 2024, 2:20pm UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/19 "2024-07-10T14:20:43Z")

</div>

> [@mraszyk](#):
>
> Don’t worry about the error messages, icx-proxy seems to be too eager, but eventually the connection is established.

Correct. I redeployed. I let know if NNS dapp and its state get corrupted again.

---

<div class="post-metadata">

**Author:** ![mraszyk](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mraszyk/32/7945_2.png) [@mraszyk](https://forum.dfinity.org/u/mraszyk)\
**Post date:** [July 11, 2024, 6:56am UTC](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802/20 "2024-07-11T06:56:59Z")

</div>

Here’s the dfx extension fix: [fix: use localhost:8080 in nns-dapp init args by mraszyk · Pull Request #129 · dfinity/dfx-extensions · GitHub](https://github.com/dfinity/dfx-extensions/pull/129)

[Next page](https://forum.dfinity.org/t/dfx-nns-install-unusable/32802.md?page=2)
