Skip to content

Instantly share code, notes, and snippets.

@e00dan
Created July 13, 2021 15:53
Show Gist options
  • Save e00dan/9c8a47bcd48d129960ca7a23af699501 to your computer and use it in GitHub Desktop.
Save e00dan/9c8a47bcd48d129960ca7a23af699501 to your computer and use it in GitHub Desktop.
➜ docker git:(prepare-mainnet-rc) ✗ docker-compose logs -f polyjuice
Attaching to docker_polyjuice_1
polyjuice_1 | + PROJECT_DIR=/code
polyjuice_1 | + GODWOKEN_RPC_URL=http://godwoken:8119
polyjuice_1 | + source /code/gw_util.sh
polyjuice_1 | ++ LEGACY_PREBUILD_IMAGE_VERSION=0.2.4
polyjuice_1 | + '[' true = true ']'
polyjuice_1 | + echo 'manual mode..'
polyjuice_1 | + cd /code/godwoken-polyman
polyjuice_1 | manual mode..
polyjuice_1 | + yarn init_placeholder_config
polyjuice_1 | yarn run v1.22.5
polyjuice_1 | $ . scripts/tool.sh && copy_configs_if_not_exist
polyjuice_1 | done.
polyjuice_1 | done.
polyjuice_1 | done.
polyjuice_1 | done.
polyjuice_1 | Done in 0.05s.
polyjuice_1 | + yarn workspace @godwoken-polyman/runner clean
polyjuice_1 | yarn workspace v1.22.5
polyjuice_1 | yarn run v1.22.5
polyjuice_1 | $ rm -rf ./db
polyjuice_1 | Done in 0.11s.
polyjuice_1 | Done in 0.34s.
polyjuice_1 | + true
polyjuice_1 | + yarn workspace @godwoken-polyman/runner start-call-polyman
polyjuice_1 | + sleep 5
polyjuice_1 | yarn workspace v1.22.5
polyjuice_1 | yarn run v1.22.5
polyjuice_1 | $ LUMOS_CONFIG_FILE=./configs/lumos-config.json MODE=docker-compose ts-node ./src/callPolyman.ts
polyjuice_1 | preparetion server started at http://localhost:6102
polyjuice_1 | + isGodwokenRpcRunning http://godwoken:8119
polyjuice_1 | + echo http://godwoken:8119
polyjuice_1 | + [[ -n http://godwoken:8119 ]]
polyjuice_1 | + local rpc_url=http://godwoken:8119
polyjuice_1 | http://godwoken:8119
polyjuice_1 | ++ echo '{
polyjuice_1 | "id": 2,
polyjuice_1 | "jsonrpc": "2.0",
polyjuice_1 | "method": "ping",
polyjuice_1 | "params": []
polyjuice_1 | }'
polyjuice_1 | ++ tr -d '\n'
polyjuice_1 | ++ curl --ipv4 --retry 3 --retry-connrefused -H 'content-type: application/json' -d @- http://godwoken:8119
polyjuice_1 | % Total % Received % Xferd Average Speed Time Time Time Current
polyjuice_1 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: connection refused Will retry in 1 seconds. 3
polyjuice_1 | Warning: retries left.
polyjuice_1 | start prepare money..
polyjuice_1 | waiting for sync ...
polyjuice_1 | sudt scripts not found in lumos config, please deploy first.
polyjuice_1 | /code/godwoken-polyman/packages/runner/configs/bin/simple_udt
polyjuice_1 | capacity needed: 182200000000n
polyjuice_1 | Error: Not enough capacity in from infos!
polyjuice_1 | at Object.injectCapacity (/code/godwoken-polyman/node_modules/@ckb-lumos/common-scripts/src/common.ts:389:11)
polyjuice_1 | at processTicksAndRejections (internal/process/task_queues.js:95:5)
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1260:20)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | at /code/godwoken-polyman/packages/runner/src/prepare.ts:106:3
polyjuice_1 | Error: Error: Not enough capacity in from infos!
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1267:13)
polyjuice_1 | at processTicksAndRejections (internal/process/task_queues.js:95:5)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | at /code/godwoken-polyman/packages/runner/src/prepare.ts:106:3
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: connection refused Will retry in 2 seconds. 2
polyjuice_1 | Warning: retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: connection refused Will retry in 4 seconds. 1
polyjuice_1 | Warning: retries left.
polyjuice_1 | retry...1th times
polyjuice_1 | /code/godwoken-polyman/packages/runner/configs/bin/simple_udt
polyjuice_1 | sudt scripts not found in lumos config, please deploy first.
polyjuice_1 | capacity needed: 182200000000n
polyjuice_1 | Error: Not enough capacity in from infos!
polyjuice_1 | at Object.injectCapacity (/code/godwoken-polyman/node_modules/@ckb-lumos/common-scripts/src/common.ts:389:11)
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1260:20)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | Error: Error: Not enough capacity in from infos!
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1267:13)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to godwoken port 8119: Connection refused
polyjuice_1 | + result=
polyjuice_1 | + [[ '' =~ pong ]]
polyjuice_1 | + echo 'godwoken rpc server is down.'
polyjuice_1 | + return 1
polyjuice_1 | godwoken rpc server is down.
polyjuice_1 | keep waitting...
polyjuice_1 | + echo 'keep waitting...'
polyjuice_1 | + true
polyjuice_1 | + sleep 5
polyjuice_1 | retry...2th times
polyjuice_1 | /code/godwoken-polyman/packages/runner/configs/bin/simple_udt
polyjuice_1 | sudt scripts not found in lumos config, please deploy first.
polyjuice_1 | capacity needed: 182200000000n
polyjuice_1 | Error: Not enough capacity in from infos!
polyjuice_1 | at Object.injectCapacity (/code/godwoken-polyman/node_modules/@ckb-lumos/common-scripts/src/common.ts:389:11)
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1260:20)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | Error: Error: Not enough capacity in from infos!
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1267:13)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | + isGodwokenRpcRunning http://godwoken:8119
polyjuice_1 | http://godwoken:8119
polyjuice_1 | + echo http://godwoken:8119
polyjuice_1 | + [[ -n http://godwoken:8119 ]]
polyjuice_1 | + local rpc_url=http://godwoken:8119
polyjuice_1 | ++ echo '{
polyjuice_1 | "id": 2,
polyjuice_1 | "jsonrpc": "2.0",
polyjuice_1 | "method": "ping",
polyjuice_1 | "params": []
polyjuice_1 | }'
polyjuice_1 | ++ tr -d '\n'
polyjuice_1 | ++ curl --ipv4 --retry 3 --retry-connrefused -H 'content-type: application/json' -d @- http://godwoken:8119
polyjuice_1 | % Total % Received % Xferd Average Speed Time Time Time Current
polyjuice_1 | Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: connection refused Will retry in 1 seconds. 3
polyjuice_1 | Warning: retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: connection refused Will retry in 2 seconds. 2
polyjuice_1 | Warning: retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: connection refused Will retry in 4 seconds. 1
polyjuice_1 | Warning: retries left.
polyjuice_1 | sudt scripts not found in lumos config, please deploy first.
polyjuice_1 | retry...3th times
polyjuice_1 | /code/godwoken-polyman/packages/runner/configs/bin/simple_udt
polyjuice_1 | capacity needed: 182200000000n
polyjuice_1 | Error: Not enough capacity in from infos!
polyjuice_1 | at Object.injectCapacity (/code/godwoken-polyman/node_modules/@ckb-lumos/common-scripts/src/common.ts:389:11)
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1260:20)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | Error: Error: Not enough capacity in from infos!
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1267:13)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to godwoken port 8119: Connection refused
polyjuice_1 | + result=
polyjuice_1 | + [[ '' =~ pong ]]
polyjuice_1 | + echo 'godwoken rpc server is down.'
polyjuice_1 | + return 1
polyjuice_1 | + echo 'keep waitting...'
polyjuice_1 | + true
polyjuice_1 | godwoken rpc server is down.
polyjuice_1 | keep waitting...
polyjuice_1 | + sleep 5
polyjuice_1 | retry...4th times
polyjuice_1 | /code/godwoken-polyman/packages/runner/configs/bin/simple_udt
polyjuice_1 | sudt scripts not found in lumos config, please deploy first.
polyjuice_1 | capacity needed: 182200000000n
polyjuice_1 | Error: Not enough capacity in from infos!
polyjuice_1 | at Object.injectCapacity (/code/godwoken-polyman/node_modules/@ckb-lumos/common-scripts/src/common.ts:389:11)
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1260:20)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | Error: Error: Not enough capacity in from infos!
polyjuice_1 | at Api.deployLayer1ContractWithTypeId (/code/godwoken-polyman/packages/runner/src/api.ts:1267:13)
polyjuice_1 | at Api.deployLayer1Sudt (/code/godwoken-polyman/packages/runner/src/api.ts:1219:5)
polyjuice_1 | at run_prepare_sudt_scripts (/code/godwoken-polyman/packages/runner/src/prepare.ts:87:9)
polyjuice_1 | + isGodwokenRpcRunning http://godwoken:8119
polyjuice_1 | http://godwoken:8119
polyjuice_1 | + echo http://godwoken:8119
polyjuice_1 | + [[ -n http://godwoken:8119 ]]
polyjuice_1 | + local rpc_url=http://godwoken:8119
polyjuice_1 | ++ echo '{
polyjuice_1 | "id": 2,
polyjuice_1 | "jsonrpc": "2.0",
polyjuice_1 | "method": "ping",
polyjuice_1 | "params": []
polyjuice_1 | }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment