• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

nodestart하면 에러가 나요 ㅜㅜ

18.07.24 14:32 작성 조회수 159

0

Fatal: Error starting protocol stack: listen tcp 127.0.0.1:8545: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

이렇게 떠서 진행이 안돼요 ㅜㅜ

답변 8

·

답변을 작성해보세요.

0

한상윤 Han님의 프로필

한상윤 Han

2019.03.12

가나슈가 실행중이면 해당 포트(8545)가 잡혀 있어서 에러가 나더라구요. 저는 가나슈를 중지하니 에러 없이 ./nodestart.cmd가 정상 실행되었습니다.

0

양태건님의 프로필

양태건

질문자

2018.07.26

이렇게 댓글이 많이 달릴지 몰랏네요,.,, 잘 해결하고 넘어갔습니다!!

감사합니다~~

0

좋은 답변 감사합니다 루이루이루님 ^^

0

루이루이루님의 프로필

루이루이루

2018.07.25

./nodestart.cmd 를 사용자 루트에서 실행시키셔서 그럽니다.

저도 같은 증상이어서 뭔가 했는데 nodestart.cmd랑 password.sec 파일을 루트에 만들어놓고 거기에서 실행을 하고 있더라고요 제가.... nodestart.cmd랑 password.sec 파일들 다 blockchain 폴더로 옮기시고 blockchain 폴더 들어가서 실행시켜보세요.

거기서 해도 안되시면 파워쉘 한번 껐다가 다시 켜보신 후에 해보세요!

전 그렇게 해서 해결했습니다!

0

  1. 에러메세지를 보니 ChainID가 1이네요. 이건 메인네트워크에요. puppeth통해서 제네시스 블록 생성했을 때 chainId 예약어 피해서 만드셨나요? MyNetwork.json열어보셔서 맨위에 chainId가 뭔지 확인해보세요.
  2. 만약 4386이면 강좌에있는 nodestart.cmd파일 다운받아서 기존에 있는거 지우고 실행해보세요. 또
  3. 계정생성한게 ~/Blockchain/keystore 폴더에 위치해 있나요?
  4. 만약 다 안되면 Blockchain 폴더지우고 처음부터 다시 해보세요. (노드 초기화)

0

홍정아님의 프로필

홍정아

2018.07.25

강의 자료에서 cmd파일 받으셔서 한 번 블록체인 폴더에 기존꺼 지우시고 넣어보세요!!

오탈자가 있으실 수도 있는 거 아닐까요

0

양태건님의 프로필

양태건

질문자

2018.07.24

PS C:UsersAdministrator> ./nodestart.cmd

C:UsersAdministrator>geth --networkid 4386 --mine --minerthreads 2 --datadir "./" --nodiscover --rpc --rpcport "8546" --rpccorsdomain "" --nat "any" --rpcapi eth,web3,personal,net --unlock 0 --password ./password.sec

INFO [07-24|20:13:06.057] Maximum peer count ETH=25 LES=0 total=25

INFO [07-24|20:13:06.123] Starting peer-to-peer node instance=Geth/v1.8.12-stable-37685930/windows-amd64/go1.10.3

INFO [07-24|20:13:06.129] Allocated cache and file handles database=C:\Users\Administrator\geth\chaindata cache=768 handles=1024

INFO [07-24|20:13:06.202] Writing default main-net genesis block

INFO [07-24|20:13:06.508] Persisted trie from memory database nodes=12356 size=1.88mB time=61.0227ms gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B

INFO [07-24|20:13:06.517] Initialised chain configuration config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: Engine: ethash}"

INFO [07-24|20:13:06.528] Disk storage enabled for ethash caches dir=C:\Users\Administrator\geth\ethash count=3

INFO [07-24|20:13:06.534] Disk storage enabled for ethash DAGs dir=C:\Users\Administrator\AppData\Ethash count=2

INFO [07-24|20:13:06.539] Initialising Ethereum protocol versions="[63 62]" network=4386

INFO [07-24|20:13:06.544] Loaded most recent local header number=0 hash=d4e567…cb8fa3 td=17179869184

INFO [07-24|20:13:06.549] Loaded most recent local full block number=0 hash=d4e567…cb8fa3 td=17179869184

INFO [07-24|20:13:06.555] Loaded most recent local fast block number=0 hash=d4e567…cb8fa3 td=17179869184

INFO [07-24|20:13:06.561] Regenerated local transaction journal transactions=0 accounts=0

INFO [07-24|20:13:06.565] Starting P2P networking

INFO [07-24|20:13:06.585] RLPx listener up self="enode://0328fae116a70c3f103f00f93e881cbab78427a16d45918a2a52e0283f0ddd2a6c549eb2dca66643e9d5fceb1dfaf13206889f8e78a4c58ca60b7b68feb1501d@[::]:30303?discport=0"

INFO [07-24|20:13:06.587] IPC endpoint opened url=\\.\pipe\geth.ipc

INFO [07-24|20:13:06.597] HTTP endpoint opened url=http://127.0.0.1:8546 cors= vhosts=localhost

WARN [07-24|20:13:06.602] -------------------------------------------------------------------

WARN [07-24|20:13:06.606] Referring to accounts by order in the keystore folder is dangerous!

WARN [07-24|20:13:06.610] This functionality is deprecated and will be removed in the future!

WARN [07-24|20:13:06.613] Please use explicit addresses! (can search via geth account list)

WARN [07-24|20:13:06.617] -------------------------------------------------------------------

Fatal: Could not list accounts: index 0 higher than number of accounts 0

PS C:UsersAdministrator>

포트를 바꾸고 다시실행했는데 이번엔 여기서 멈춰버렸어요,..

0

안녕하세요. 이미 8545포트가 사용중인 것 같네요. nodestart.cmd파일에서 --rpcport를 딴걸로 바꿔보시고 재실행해보세요. 예를들어 --rpcport "8546"