Add support for building and running libbitcoin server in qa docker #422

Closed
opened 2022-08-30 11:50:29 +00:00 by hirunda · 6 comments
hirunda commented 2022-08-30 11:50:29 +00:00 (Migrated from gitlab.com)
  1. Change the script for downloading and building libbitcoin server within qa docker
  2. Add all config files for running libbitcoin server in test mode by connecting on bitcoind
  3. Implement and verify libbitcoin server which should run with docker-compose up ... and connect to bitcoind
1) Change the script for downloading and building libbitcoin server within qa docker 2) Add all config files for running libbitcoin server in test mode by connecting on bitcoind 3) Implement and verify libbitcoin server which should run with docker-compose up ... and connect to bitcoind
hirunda commented 2022-08-30 11:50:30 +00:00 (Migrated from gitlab.com)

assigned to @hirunda

assigned to @hirunda
serkixenos commented 2022-09-12 23:09:46 +00:00 (Migrated from gitlab.com)
https://gitlab.com/PBSA/tools-libs/peerplays-utils/-/merge_requests/15
hirunda commented 2022-09-19 11:58:46 +00:00 (Migrated from gitlab.com)

Steps for testing:

  1. Pull the newest master for qa
  2. docker-compose build
  3. Run docker-compose up bitcoin-for-peerplays
  4. Run ./initnetwork.sh for bitcoin
  5. Run docker-compose up docker-compose up libbitcoinserver-for-peerplays
  6. Observe after 5) in console of libbitcoin server that connection is established with bitcoind from 3)
    and blocks are received
  7. In bitcoid generate > 500 blocks and observe in libbitcoinserver that blocks receive

Please let me know if you need exact commands ...

Thanks,
Davor

Steps for testing: 1) Pull the newest master for qa 2) docker-compose build 3) Run docker-compose up bitcoin-for-peerplays 4) Run ./initnetwork.sh for bitcoin 5) Run docker-compose up docker-compose up libbitcoinserver-for-peerplays 6) Observe after 5) in console of libbitcoin server that connection is established with bitcoind from 3) and blocks are received 7) In bitcoid generate > 500 blocks and observe in libbitcoinserver that blocks receive Please let me know if you need exact commands ... Thanks, Davor
hirunda commented 2022-09-22 21:04:03 +00:00 (Migrated from gitlab.com)

assigned to @prandnum

assigned to @prandnum
prandnum commented 2022-09-23 16:35:29 +00:00 (Migrated from gitlab.com)

seeing the following warning in the logs

libbitcoinserver-for-peerplays_1  | 16:32:59.019742 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020003 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020088 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020180 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020207 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020237 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020283 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020302 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020325 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020357 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:33:04.020379 WARNING [network] Failure fetching new address: object does not exist

also able to see the following messages when blocks are generated on the regtest

libbitcoinserver-for-peerplays_1  | 16:30:20.606020 INFO [blockchain] Block [1000]    1 txs    1 ins    0 wms    0 vms   36 vµs    7 rµs    7 cµs    3 pµs   17 aµs    1 sµs   37 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:20.741490 INFO [blockchain] Block [1100]    1 txs    1 ins    0 wms    0 vms   29 vµs    6 rµs    6 cµs    3 pµs   11 aµs    1 sµs   35 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:20.891074 INFO [blockchain] Block [1200]    1 txs    1 ins    0 wms    0 vms   33 vµs    8 rµs    6 cµs    3 pµs   14 aµs    1 sµs   25 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:21.066236 INFO [blockchain] Block [1300]    1 txs    1 ins    0 wms    0 vms   30 vµs    7 rµs    7 cµs    2 pµs   12 aµs    1 sµs   36 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:21.238194 INFO [blockchain] Block [1400]    1 txs    1 ins    0 wms    0 vms   37 vµs   11 rµs    9 cµs    3 pµs   11 aµs    1 sµs   33 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:24.003251 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003328 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003428 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003440 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003479 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003485 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003519 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003530 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003557 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:24.003573 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.003850 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.003950 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004014 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004065 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004098 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004135 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004153 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004180 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004193 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:29.004237 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004438 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004425 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004502 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004506 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004525 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004533 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004537 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004548 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004552 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:34.004569 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.004766 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.004844 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.004940 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.004967 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.004993 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.005014 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.005035 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.005059 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.005077 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:39.005140 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005391 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005364 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005522 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005541 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005585 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005608 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005641 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005664 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005687 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:44.005720 WARNING [network] Failure fetching new address: object does not exist
libbitcoinserver-for-peerplays_1  | 16:30:46.174631 INFO [blockchain] Block [1500]    1 txs    1 ins    0 wms    0 vms   34 vµs    7 rµs    6 cµs    3 pµs   15 aµs    1 sµs   36 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:46.349601 INFO [blockchain] Block [1600]    1 txs    1 ins    0 wms    0 vms   31 vµs    8 rµs    6 cµs    3 pµs   11 aµs    1 sµs   34 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:46.546746 INFO [blockchain] Block [1700]    1 txs    1 ins    0 wms    0 vms   32 vµs    8 rµs    6 cµs    3 pµs   11 aµs    1 sµs   31 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:46.771709 INFO [blockchain] Block [1800]    1 txs    1 ins    0 wms    0 vms   88 vµs   31 rµs    6 cµs   17 pµs   32 aµs    1 sµs   50 dµs 0.000000
libbitcoinserver-for-peerplays_1  | 16:30:46.975337 INFO [blockchain] Block [1900]    1 txs    1 ins    0 wms    0 vms   46 vµs   10 rµs    9 cµs    4 pµs   20 aµs    1 sµs   39 dµs 0.000000

@hirunda Please let me know whether the warnings are expected.

seeing the following warning in the logs ``` libbitcoinserver-for-peerplays_1 | 16:32:59.019742 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020003 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020088 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020180 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020207 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020237 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020283 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020302 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020325 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020357 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:33:04.020379 WARNING [network] Failure fetching new address: object does not exist ``` also able to see the following messages when blocks are generated on the regtest ``` libbitcoinserver-for-peerplays_1 | 16:30:20.606020 INFO [blockchain] Block [1000] 1 txs 1 ins 0 wms 0 vms 36 vµs 7 rµs 7 cµs 3 pµs 17 aµs 1 sµs 37 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:20.741490 INFO [blockchain] Block [1100] 1 txs 1 ins 0 wms 0 vms 29 vµs 6 rµs 6 cµs 3 pµs 11 aµs 1 sµs 35 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:20.891074 INFO [blockchain] Block [1200] 1 txs 1 ins 0 wms 0 vms 33 vµs 8 rµs 6 cµs 3 pµs 14 aµs 1 sµs 25 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:21.066236 INFO [blockchain] Block [1300] 1 txs 1 ins 0 wms 0 vms 30 vµs 7 rµs 7 cµs 2 pµs 12 aµs 1 sµs 36 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:21.238194 INFO [blockchain] Block [1400] 1 txs 1 ins 0 wms 0 vms 37 vµs 11 rµs 9 cµs 3 pµs 11 aµs 1 sµs 33 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:24.003251 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003328 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003428 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003440 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003479 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003485 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003519 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003530 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003557 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:24.003573 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.003850 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.003950 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004014 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004065 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004098 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004135 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004153 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004180 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004193 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:29.004237 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004438 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004425 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004502 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004506 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004525 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004533 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004537 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004548 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004552 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:34.004569 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.004766 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.004844 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.004940 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.004967 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.004993 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.005014 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.005035 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.005059 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.005077 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:39.005140 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005391 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005364 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005522 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005541 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005585 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005608 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005641 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005664 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005687 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:44.005720 WARNING [network] Failure fetching new address: object does not exist libbitcoinserver-for-peerplays_1 | 16:30:46.174631 INFO [blockchain] Block [1500] 1 txs 1 ins 0 wms 0 vms 34 vµs 7 rµs 6 cµs 3 pµs 15 aµs 1 sµs 36 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:46.349601 INFO [blockchain] Block [1600] 1 txs 1 ins 0 wms 0 vms 31 vµs 8 rµs 6 cµs 3 pµs 11 aµs 1 sµs 34 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:46.546746 INFO [blockchain] Block [1700] 1 txs 1 ins 0 wms 0 vms 32 vµs 8 rµs 6 cµs 3 pµs 11 aµs 1 sµs 31 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:46.771709 INFO [blockchain] Block [1800] 1 txs 1 ins 0 wms 0 vms 88 vµs 31 rµs 6 cµs 17 pµs 32 aµs 1 sµs 50 dµs 0.000000 libbitcoinserver-for-peerplays_1 | 16:30:46.975337 INFO [blockchain] Block [1900] 1 txs 1 ins 0 wms 0 vms 46 vµs 10 rµs 9 cµs 4 pµs 20 aµs 1 sµs 39 dµs 0.000000 ``` @hirunda Please let me know whether the warnings are expected.
prandnum commented 2022-09-23 16:46:12 +00:00 (Migrated from gitlab.com)

as discussed, closing the ticket.

as discussed, closing the ticket.
prandnum (Migrated from gitlab.com) closed this issue 2022-09-23 16:46:13 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#422
No description provided.