0

Generic bug Open

symbol-server
Run public TEST_NET https://github.com/nemtech/symbol-bootstrap

Run public TEST_NET https://github.com/nemtech/symbol-bootstrap

Run public TEST_NET https://github.com/nemtech/symbol-bootstrap
Not diff for bootstrap and light.
Expected:

  • -p bootstrap: Default preset. It's a full network with 1 mongo database, 2 peers, 1 api and 1 rest gateway. Nemesis block is generated.
  • -p light: A light network. It's a version of bootstrap with 1 mongo database, 1 dual peer and 1 rest gateway. Great for faster light e2e automatic testing. Nemesis block is generated.

 

Log of terminal:

vbondarenko@clearlinux~/work/nem/symbol-testnet $ symbol-bootstrap start -p bootstrap -d
                            _               _           _                       _           _                          
  ___   _   _   _ __ ___   | |__     ___   | |         | |__     ___     ___   | |_   ___  | |_   _ __    __ _   _ __  
 / __| | | | | | '_ ` _ \  | '_ \   / _ \  | |  _____  | '_ \   / _ \   / _ \  | __| / __| | __| | '__|  / _` | | '_ \
 \__ \ | |_| | | | | | | | | |_) | | (_) | | | |_____| | |_) | | (_) | | (_) | | |_  \__ \ | |_  | |    | (_| | | |_) |
 |___/  \__, | |_| |_| |_| |_.__/   \___/  |_|         |_.__/   \___/   \___/   \__| |___/  \__| |_|     \__,_| | .__/
        |___/                                                                                                   |_|    
2020-10-08T12:57:17.900Z info [SYSTEM_LOG]     The preset.yml file in config folder 'target/config' exist, ignoring configuration. (run -r to reset)
2020-10-08T12:57:17.907Z info [SYSTEM_LOG]     /home/vbondarenko/work/nem/symbol-testnet/target/docker/docker-compose.yml already exist. Reusing. (run -r to reset)
2020-10-08T12:57:17.914Z info [SYSTEM_LOG]     running: docker-compose -f target/docker/docker-compose.yml up --remove-orphans --detach
2020-10-08T12:57:17.919Z info [SYSTEM_LOG]     Testing http://localhost:3000/node/health
2020-10-08T12:57:17.924Z warn [SYSTEM_LOG]     Network is NOT up and running YET: request to http://localhost:3000/node/health failed, reason: connect ECONNREFUSED 127.0.0.1:3000
Creating network "docker_default" with the default driver
Creating docker_api-node-broker-0_1 ... done
Creating docker_db_1                ...
Creating docker_peer-node-0_1       ...
Creating docker_peer-node-1_1       ...
Creating docker_db_1                ... done

 

Creating docker_db-init_1           ... done

Creating docker_rest-gateway_1      ...
Creating docker_rest-gateway_1      ... done


child process exited with code 0 and signal null
child process exited with code 0
2020-10-08T12:57:27.926Z info [SYSTEM_LOG]     Testing http://localhost:3000/node/health
2020-10-08T12:57:27.939Z warn [SYSTEM_LOG]     Network is NOT up and running YET: {"statusCode":503,"statusMessage":"Service Unavailable","body":"{\"status\":{\"apiNode\":\"down\",\"db\":\"up\"}}"}
2020-10-08T12:57:37.950Z info [SYSTEM_LOG]     Testing http://localhost:3000/node/health
2020-10-08T12:57:37.956Z info [SYSTEM_LOG]     Network IS up and running...
vbondarenko@clearlinux~/work/nem/symbol-testnet $ docker ps
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS              PORTS                      NAMES
38f4b154730b        symbolplatform/symbol-rest:2.1.0            "docker-entrypoint.s…"   23 seconds ago      Up 22 seconds       0.0.0.0:3000->3000/tcp     docker_rest-gateway_1
8a60a0094c5a        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   23 seconds ago      Up 22 seconds       0.0.0.0:7900->7900/tcp     docker_api-node-0_1
b0014b0a99a2        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   24 seconds ago      Up 23 seconds                                  docker_peer-node-1_1
98787b3f67e3        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   24 seconds ago      Up 23 seconds                                  docker_peer-node-0_1
e25173e995e9        mongo:4.2.6-bionic                          "docker-entrypoint.s…"   24 seconds ago      Up 23 seconds       0.0.0.0:27017->27017/tcp   docker_db_1
75bcac94f22a        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   24 seconds ago      Up 23 seconds       0.0.0.0:7902->7902/tcp     docker_api-node-broker-0_1


CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS              PORTS                      NAMES
c68cc6f9c6c7        symbolplatform/symbol-rest:2.1.0            "docker-entrypoint.s…"   58 seconds ago      Up 57 seconds       0.0.0.0:3000->3000/tcp     docker_rest-gateway_1
d92024cf4013        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   58 seconds ago      Up 57 seconds       0.0.0.0:7900->7900/tcp     docker_api-node-0_1
7682b88887ea        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   59 seconds ago      Up 58 seconds                                  docker_peer-node-1_1
105eed9692d4        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   59 seconds ago      Up 58 seconds       0.0.0.0:7902->7902/tcp     docker_api-node-broker-0_1
3a324a0daebb        mongo:4.2.6-bionic                          "docker-entrypoint.s…"   59 seconds ago      Up 58 seconds       0.0.0.0:27017->27017/tcp   docker_db_1
4bfa7ae5e1a8        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   59 seconds ago      Up 58 seconds                                  docker_peer-node-0_1

 


vbondarenko@clearlinux~/work/nem/symbol-testnet $ symbol-bootstrap start -p light -d
                            _               _           _                       _           _                          
  ___   _   _   _ __ ___   | |__     ___   | |         | |__     ___     ___   | |_   ___  | |_   _ __    __ _   _ __  
 / __| | | | | | '_ ` _ \  | '_ \   / _ \  | |  _____  | '_ \   / _ \   / _ \  | __| / __| | __| | '__|  / _` | | '_ \
 \__ \ | |_| | | | | | | | | |_) | | (_) | | | |_____| | |_) | | (_) | | (_) | | |_  \__ \ | |_  | |    | (_| | | |_) |
 |___/  \__, | |_| |_| |_| |_.__/   \___/  |_|         |_.__/   \___/   \___/   \__| |___/  \__| |_|     \__,_| | .__/
        |___/                                                                                                   |_|    
2020-10-08T13:02:15.562Z info [SYSTEM_LOG]     The preset.yml file in config folder 'target/config' exist, ignoring configuration. (run -r to reset)
2020-10-08T13:02:15.570Z info [SYSTEM_LOG]     /home/vbondarenko/work/nem/symbol-testnet/target/docker/docker-compose.yml already exist. Reusing. (run -r to reset)
2020-10-08T13:02:15.577Z info [SYSTEM_LOG]     running: docker-compose -f target/docker/docker-compose.yml up --remove-orphans --detach
2020-10-08T13:02:15.582Z info [SYSTEM_LOG]     Testing http://localhost:3000/node/health
2020-10-08T13:02:15.586Z warn [SYSTEM_LOG]     Network is NOT up and running YET: request to http://localhost:3000/node/health failed, reason: connect ECONNREFUSED 127.0.0.1:3000
Starting docker_peer-node-1_1       ... done
Starting docker_api-node-broker-0_1 ...
Starting docker_db_1                ...
Starting docker_db_1                ... done
Starting docker_api-node-broker-0_1 ... done
Starting docker_peer-node-0_1       ... done
Starting docker_db-init_1           ...

Starting docker_db-init_1           ... done

Starting docker_rest-gateway_1      ... done
Starting docker_api-node-0_1        ...
Starting docker_api-node-0_1        ... done

child process exited with code 0 and signal null
child process exited with code 0
2020-10-08T13:02:25.588Z info [SYSTEM_LOG]     Testing http://localhost:3000/node/health
2020-10-08T13:02:25.601Z warn [SYSTEM_LOG]     Network is NOT up and running YET: {"statusCode":503,"statusMessage":"Service Unavailable","body":"{\"status\":{\"apiNode\":\"down\",\"db\":\"up\"}}"}
2020-10-08T13:02:35.612Z info [SYSTEM_LOG]     Testing http://localhost:3000/node/health
2020-10-08T13:02:35.618Z info [SYSTEM_LOG]     Network IS up and running...
vbondarenko@clearlinux~/work/nem/symbol-testnet $ docker ps
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS              PORTS                      NAMES
c68cc6f9c6c7        symbolplatform/symbol-rest:2.1.0            "docker-entrypoint.s…"   3 minutes ago       Up 27 seconds       0.0.0.0:3000->3000/tcp     docker_rest-gateway_1
d92024cf4013        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   3 minutes ago       Up 27 seconds       0.0.0.0:7900->7900/tcp     docker_api-node-0_1
7682b88887ea        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   3 minutes ago       Up 28 seconds                                  docker_peer-node-1_1
105eed9692d4        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   3 minutes ago       Up 28 seconds       0.0.0.0:7902->7902/tcp     docker_api-node-broker-0_1
3a324a0daebb        mongo:4.2.6-bionic                          "docker-entrypoint.s…"   3 minutes ago       Up 28 seconds       0.0.0.0:27017->27017/tcp   docker_db_1
4bfa7ae5e1a8        symbolplatform/symbol-server:gcc-0.10.0.3   "bash -c '/bin/bash …"   3 minutes ago       Up 28 seconds                                  docker_peer-node-0_1

 

docker stats for bootstrap

CONTAINER ID        NAME                         CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
3c4c43bb3f3c        docker_rest-gateway_1        0.05%               62.88MiB / 15.42GiB   0.40%               7.49kB / 5.45kB     0B / 4.1kB          22
79e60b5dd415        docker_api-node-0_1          0.40%               53.89MiB / 15.42GiB   0.34%               16.4kB / 15.7kB     0B / 266kB          65
fa182904f153        docker_api-node-broker-0_1   0.07%               11.67MiB / 15.42GiB   0.07%               3.99kB / 2.22kB     0B / 0B             23
713ccd2e0317        docker_peer-node-0_1         0.35%               39.78MiB / 15.42GiB   0.25%               23.4kB / 20.8kB     0B / 266kB          45
a880037815a7        docker_peer-node-1_1         0.47%               37.8MiB / 15.42GiB    0.24%               22.3kB / 20.8kB     0B / 266kB          45
8250403299db        docker_db_1                  0.32%               78.55MiB / 15.42GiB   0.50%               40.3kB / 83.3kB     0B / 90.1kB         35

 

docker stats for light

CONTAINER ID        NAME                         CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
da967620a43b        docker_api-node-0_1          1.16%               55.67MiB / 15.42GiB   0.35%               37kB / 21.2kB       41kB / 307kB        65
9069dd3032c4        docker_rest-gateway_1        0.00%               64.48MiB / 15.42GiB   0.41%               8.42kB / 6.08kB     0B / 4.1kB          22
649c33cbbe25        docker_db_1                  0.17%               78.23MiB / 15.42GiB   0.50%               43.3kB / 83.9kB     0B / 106kB          35
1f5a96278432        docker_peer-node-0_1         1.39%               37.12MiB / 15.42GiB   0.24%               35.1kB / 60.2kB     0B / 307kB          45
3f6b506a5d69        docker_peer-node-1_1         1.37%               42.08MiB / 15.42GiB   0.27%               46.1kB / 31.8kB     28.7kB / 307kB      45
096f3e45340b        docker_api-node-broker-0_1   0.05%               9.719MiB / 15.42GiB   0.06%               4.4kB / 2.41kB      0B / 0B             23

 

Author: vlad
Published on: 09/10/2020 00:07 (edited on: 14/10/2020 21:31)
Upvotes

15

Downvotes

0

vlad (0.282)
Developer
0.790 Reputation
1146 Points
2 Activities