Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Error connecting to local node on Debian 11 #873

Closed
ghost opened this issue Oct 28, 2021 · 10 comments
Closed

Error connecting to local node on Debian 11 #873

ghost opened this issue Oct 28, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Oct 28, 2021

Describe the bug
Retrying HTTP request for http://localhost:3030 because of error: FetchError: request to http://localhost:3030/ failed, reason: connect ECONNREFUSED ::1:3030

Debian 11

Installed near cli
Ran near-indexer-for-explorer indexer

image

image

BLOCKER

@ghost ghost added the bug Something isn't working label Oct 28, 2021
@ghost
Copy link
Author

ghost commented Oct 28, 2021

On Mac when no node is present, expect same error message but shows slightly different

Screenshot 2021-10-29 at 00 18 11

::1:3030 vs 127.0.0.1:3030

@ghost
Copy link
Author

ghost commented Oct 28, 2021

also curl http://localhost:3030/status works but NEAR_ENV=local near state ... cmds fails

@ghost ghost changed the title Error connecting to local node on fresh instance Error connecting to local node on Debian 11 Oct 29, 2021
@ghost
Copy link
Author

ghost commented Oct 29, 2021

Confirmed bug because httpie works
http post https://localhost:3030 jsonrpc=2.0 id=dontcare method=block \ params:='{ "finality": "final" }'

@volovyks
Copy link
Collaborator

volovyks commented Nov 1, 2021

@evergreen-trading-systems was it working before with NEAR CLI for you?
@khorolets have you seen such an error?

@khorolets
Copy link
Member

@evergreen-trading-systems could you give us the near-cli command to run, I can't reproduce it on Mac

@khorolets
Copy link
Member

@volovyk-s

on Mac

$ NEAR_ENV=local near state test.near
Loaded master account test.near key from /Users/khorolets/.near/validator_key.json with public key = ed25519:C7gcTuvcRKZkucxP2ihFKzTGQ6H2C2m5v8i79Lbk96fB
Account test.near
{
  amount: '999999899999150889875000000000000',
  locked: '53503741786773065593486268425715',
  code_hash: '11111111111111111111111111111111',
  storage_usage: 182,
  storage_paid_at: 0,
  block_height: 30295,
  block_hash: 'C9HtmQh9F79WAv2XKnTCh3DzEEAvBZ1Citd2EsNw8wMp',
  formattedAmount: '999,999,899.999150889875'
}

$ near --version
2.1.1

@ghost
Copy link
Author

ghost commented Nov 1, 2021

This command does not work on Debian 11 - NEAR_ENV=local near state test.near

@volovyk-s I don't think it was ever working on Debian 11

Mac, Windows work fine.

#873 (comment) shows different error messages for the same scenario (not connecting to local node) - not expected

Debian 11 says ::1:3030
Mac says 127.0.0.1:3030

@volovyks
Copy link
Collaborator

volovyks commented Nov 1, 2021

I have tried it on Debian 11 and Arch, works fine, probably your machine setup is the reason.
My output:

serhii@debian11-uni:~/Projects/nearcore$ NEAR_ENV=local near state test.near
Loaded master account test.near key from /home/serhii/.near/validator_key.json with public key = ed25519:3rDbqMNQoaCcPLX86nhozk1EzjKYGydGbUEsjgmji9sw
Account test.near
{
  amount: '1000000000000000000000000000000000',
  locked: '50000970335441577554223744292238',
  code_hash: '11111111111111111111111111111111',
  storage_usage: 182,
  storage_paid_at: 0,
  block_height: 582,
  block_hash: 'CpUN6QPdFkrFUbTJi53SwNyGejWSX4DaV9LcFaZL3Enk',
  formattedAmount: '1,000,000,000'
}

Feel free to reopen if if you will be able to reproduce it on other machines.

@volovyks volovyks closed this as completed Nov 1, 2021
@ghost
Copy link
Author

ghost commented Nov 20, 2021

please reopen and demonstrate that it works via video

@ghost
Copy link
Author

ghost commented Nov 20, 2021

Clearly shows it not working

nw.mp4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants