Closed CliffBooth closed 1 year ago
Что-то пошло не так)
smart@thinkpad$ docker compose up
[+] Running 6/0
✔ Container b4-node_three-1 Created 0.1s
✔ Container b4-node_one-1 Created 0.1s
✔ Container b4-node_two-1 Created 0.1s
! node_two Published ports are discarded when using host network mode 0.0s
! node_one Published ports are discarded when using host network mode 0.0s
! node_three Published ports are discarded when using host network mode 0.0s
Attaching to b4-node_one-1, b4-node_three-1, b4-node_two-1
b4-node_two-1 |
b4-node_two-1 | > blockchain@1.0.0 start
b4-node_two-1 | > node ./dist/main.js -a localhost:8081 -o localhost:8080 localhost:8082 -b 10
b4-node_two-1 |
b4-node_three-1 |
b4-node_three-1 | > blockchain@1.0.0 start
b4-node_three-1 | > node ./dist/main.js -a localhost:8082 -o localhost:8080 localhost:8081 -b 10 -g
b4-node_three-1 |
b4-node_one-1 |
b4-node_one-1 | > blockchain@1.0.0 start
b4-node_one-1 | > node ./dist/main.js -a localhost:8080 -o localhost:8081 localhost:8082 -b 10
b4-node_one-1 |
b4-node_one-1 | node:events:491
b4-node_one-1 | throw er; // Unhandled 'error' event
b4-node_one-1 | ^
b4-node_one-1 |
b4-node_one-1 | Error: listen EADDRINUSE: address already in use ::1:8080
b4-node_one-1 | at Server.setupListenHandle [as _listen2] (node:net:1774:16)
b4-node_one-1 | at listenInCluster (node:net:1822:12)
b4-node_one-1 | at GetAddrInfoReqWrap.doListen [as callback] (node:net:1971:7)
b4-node_one-1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8)
b4-node_one-1 | Emitted 'error' event on Server instance at:
b4-node_one-1 | at emitErrorNT (node:net:1801:8)
b4-node_one-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
b4-node_one-1 | code: 'EADDRINUSE',
b4-node_one-1 | errno: -98,
b4-node_one-1 | syscall: 'listen',
b4-node_one-1 | address: '::1',
b4-node_one-1 | port: 8080
b4-node_one-1 | }
b4-node_one-1 |
b4-node_one-1 | Node.js v19.9.0
b4-node_one-1 exited with code 1
b4-node_three-1 | generated genesis block
b4-node_two-1 | [localhost:8081] generated 1 / 10
b4-node_three-1 | [localhost:8082] generated 1 / 10
И не надо использовать network_mode: host
для этой задачи.
@SemenMartynov Исправил, надеюсь сейчас заработает
надеюсь
Надежда -- это такой себе план... Лучше всё дополнительно протестировать.
Лимит в 10 блоков стоило вынести в переменные окружения.
Student, group: Высоцкий Валерий гр. 3530901/90203 URL: https://github.com/CliffBooth/Blockchain Any comments: git-flow, typescript, node, tcp sockets