Describe the bug
Failing to get the repo up and running.
yarn build:testnets fails
❯ yarn build:testnets
yarn build:testnets v0.19.1
$ cd tasks/build/testnets && ./localBuild.sh
Gaia missing; building first.
yarn build:gaia v0.19.1
$ cd tasks/build/Gaia && ./localBuild.sh
Already built 4c5038018163fbb51ad882c0505df4958dec2ea8 for darwin
✨ Done in 0.16s.
a0c687d280a1d983c1359a653ab3cacce9e7dfc9ff7701c340d6acd22da49c11
builder
Copying testnet configuration files...
/go/builds/build.sh: 11: /go/builds/build.sh: builds/Gaia/linux_amd64/gaiad: not found
sed: can't read /root/.gaiad/config/config.toml: No such file or directory
Cloning into 'builds/testnets'...
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
builder
✨ Done in 14.73s.
Made directories at / for /root/.gaiad/config/ but no luck. — not sure where /
yarn start fails
I think this is related to the failing testnet installation.
❯ yarn start
yarn start v0.19.1
$ concurrently -k "yarn frontend" "yarn backend"
yarn frontend v0.19.1
yarn backend v0.19.1
$ cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
$ concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
yarn connect v0.19.1
yarn nodes v0.19.1
$ node ./tasks/local-testnet/start.js 2 skip-rebuild
$ concurrently -k "yarn stargate" "yarn proxy"
[1] [1] Redirecting node 1 output to /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_1/process.log
[1] [1] Waiting for first block on node 1
[1] [1] Redirecting node 2 output to /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_2/process.log
[1] [1] Waiting for first block on node 2
[1] [1] ERROR: open /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_1/config/genesis.json: no such file or directory
[1] [1] (node:24845) UnhandledPromiseRejectionWarning: 1
[1] [1] (node:24845) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[1] [1] (node:24845) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[1] [1] ERROR: open /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_2/config/genesis.json: no such file or directory
[1] [1] (node:24845) UnhandledPromiseRejectionWarning: 1
[1] [1] (node:24845) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
yarn stargate v0.19.1
yarn proxy v0.19.1
error No command specified.
info Commands available from binary scripts: autoprefixer, chromedriver, concurrently, cross-env, css-beautify, eslint, hs, html-beautify, http-server, jest, js-beautify, nightwatch, publish-release, semver, stylelint, tape, webpack, webpack-bundle-analyzer, webpack-cli, webpack-dev-server
info Project commands
- backend
concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
- backend:fixed-https
concurrently -k "yarn nodes 2 skip-rebuild" "yarn stargate --ssl-certfile 'server_dev.crt' --ssl-keyfile 'server_dev.key'"
- backend:new
concurrently -k "yarn connect" "yarn nodes 2"
- build
node tasks/build/localBuild
- build:gaia
cd tasks/build/Gaia && ./localBuild.sh
- build:local
node tasks/build/local/build
- build:testnets
cd tasks/build/testnets && ./localBuild.sh
- build:ui
cross-env NODE_ENV=production webpack --colors --config webpack.renderer.config.js --mode=production --profile --json > app/dist/build.stats.json
- connect
$ ./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
concurrently -k "yarn stargate" "yarn proxy"
- frontend
cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
- frontend:fixed-https
yarn frontend --cert 'server_dev.crt' --key 'server_dev.key'
- lint
yarn lint:eslint && yarn lint:css
- lint:css
stylelint '**/*.{css,vue}'
- lint:eslint
eslint -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}"
- lint:fix
eslint --fix -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}" && stylelint "**/*.{css,vue}" --fix
- nodes
node ./tasks/local-testnet/start.js
- postcheckout
yarn
- precommit
yarn lint:fix
- prepush
bash ./tasks/pending-changed-check.sh && yarn lint
- proxy
caddy
- release
node ./tasks/releasePullRequest.js
- serve
http-server -p 8081 ./app/dist
- stargate
./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
- start
concurrently -k "yarn frontend" "yarn backend"
- start:new
concurrently -k "yarn frontend" "yarn backend:new"
- test
yarn run lint && yarn test:unit && yarn test:e2e
- test:coverage
http-server test/unit/coverage/lcov-report
- test:e2e
(kill $(lsof -t -i:9515) || true) && nightwatch --config ./test/e2e/nightwatch.json
- test:exe
node tasks/test-build.js
- test:unit
cross-env NODE_ENV=testing jest --maxWorkers=2
- watch
tasks/watch.sh
error No command specified.
Done in 0.19s.
[1] [0] [1] yarn proxy exited with code 0
[1] [0] --> Sending SIGTERM to other processes..
[1] [0] [0] yarn stargate exited with code SIGTERM
error Command failed with exit code 1.
[1] [0] yarn connect exited with code 1
[1] --> Sending SIGTERM to other processes..
[1] [1] yarn nodes 2 skip-rebuild exited with code SIGTERM
error Command failed with exit code 1.
[1] yarn backend exited with code 1
--> Sending SIGTERM to other processes..
[0] clean-webpack-plugin: /Users/tees/Development/voyager/app/dist has been removed.
[0] ℹ 「wds」: Project is running at https://localhost:9080/
[0] ℹ 「wds」: webpack output is served from /
[0] ℹ 「wds」: Content not from webpack is served from /Users/tees/Development/voyager/app/dist, /Users/tees/Development/voyager/app
[0] yarn frontend exited with code SIGTERM
[0] yarn frontend exited with code SIGTERM
error Command failed with exit code 1.
Desktop (please complete the following information):
Did you run yarn start:new before ?
Aye, here's the output of that:
yarn start:new
~/Development/voyager develop 15s
❯ yarn start:new
yarn start:new v0.19.1
$ concurrently -k "yarn frontend" "yarn backend:new"
yarn frontend v0.19.1
yarn backend:new v0.19.1
$ cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
$ concurrently -k "yarn connect" "yarn nodes 2"
yarn connect v0.19.1
yarn nodes v0.19.1
$ concurrently -k "yarn stargate" "yarn proxy"
$ node ./tasks/local-testnet/start.js 2
yarn stargate v0.19.1
yarn proxy v0.19.1
$ ./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
error No command specified.
info Commands available from binary scripts: autoprefixer, chromedriver, concurrently, cross-env, css-beautify, eslint, hs, html-beautify, http-server, jest, js-beautify, nightwatch, publish-release, semver, stylelint, tape, webpack, webpack-bundle-analyzer, webpack-cli, webpack-dev-server
info Project commands
- backend
concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
- backend:fixed-https
concurrently -k "yarn nodes 2 skip-rebuild" "yarn stargate --ssl-certfile 'server_dev.crt' --ssl-keyfile 'server_dev.key'"
- backend:new
concurrently -k "yarn connect" "yarn nodes 2"
- build
node tasks/build/localBuild
- build:gaia
cd tasks/build/Gaia && ./localBuild.sh
- build:local
node tasks/build/local/build
- build:testnets
cd tasks/build/testnets && ./localBuild.sh
- build:ui
cross-env NODE_ENV=production webpack --colors --config webpack.renderer.config.js --mode=production --profile --json > app/dist/build.stats.json
- connect
concurrently -k "yarn stargate" "yarn proxy"
- frontend
cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
- frontend:fixed-https
yarn frontend --cert 'server_dev.crt' --key 'server_dev.key'
- lint
yarn lint:eslint && yarn lint:css
- lint:css
stylelint '**/*.{css,vue}'
- lint:eslint
eslint -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}"
- lint:fix
eslint --fix -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}" && stylelint "**/*.{css,vue}" --fix
- nodes
node ./tasks/local-testnet/start.js
- postcheckout
yarn
- precommit
yarn lint:fix
- prepush
bash ./tasks/pending-changed-check.sh && yarn lint
- proxy
caddy
- release
node ./tasks/releasePullRequest.js
- serve
http-server -p 8081 ./app/dist
- stargate
./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
- start
concurrently -k "yarn frontend" "yarn backend"
- start:new
concurrently -k "yarn frontend" "yarn backend:new"
- test
yarn run lint && yarn test:unit && yarn test:e2e
- test:coverage
http-server test/unit/coverage/lcov-report
- test:e2e
(kill $(lsof -t -i:9515) || true) && nightwatch --config ./test/e2e/nightwatch.json
- test:exe
node tasks/test-build.js
- test:unit
cross-env NODE_ENV=testing jest --maxWorkers=2
- watch
tasks/watch.sh
error No command specified.
Done in 0.17s.
[1] [0] [1] yarn proxy exited with code 0
[1] [0] --> Sending SIGTERM to other processes..
[1] [0] [0] yarn stargate exited with code SIGTERM
error Command failed with exit code 1.
[1] [0] yarn connect exited with code 1
[1] --> Sending SIGTERM to other processes..
[1] [1] Imported Account
[1] [1] yarn nodes 2 exited with code SIGTERM
error Command failed with exit code 1.
[1] yarn backend:new exited with code 1
--> Sending SIGTERM to other processes..
[0] clean-webpack-plugin: /Users/tees/Development/voyager/app/dist has been removed.
[0] ℹ 「wds」: Project is running at https://localhost:9080/
[0] ℹ 「wds」: webpack output is served from /
[0] ℹ 「wds」: Content not from webpack is served from /Users/tees/Development/voyager/app/dist, /Users/tees/Development/voyager/app
[0] yarn frontend exited with code SIGTERM
error Command failed with exit code 1.
/Users/tees/Development/voyager/app/dist has been removed.
hmm maybe it has something to do with the renaming of the repo ? Could you try cloning again ?
Do you have ./builds/Gaia/darwin_amd64/gaiacli?
Did you install caddy?
That is just the command to start the e2e tests. All of them are listed as an error that some command is not available.
- test:e2e
(kill $(lsof -t -i:9515) || true) && nightwatch --config ./test/e2e/nightwatch.json
And apparently the command that doesn't get executed is yarn proxy which is the just caddy. But caddy is not a NPM module it is an external dependency which needs to be installed https://github.com/cosmos/lunie#caddy-proxy
Agree, I can't see caddy among the yarn available commands in the logs:
info Commands available from binary scripts: autoprefixer, chromedriver, concurrently, cross-env, css-beautify, eslint, hs, html-beautify, http-server, jest, js-beautify, nightwatch, publish-release, semver, stylelint, tape, webpack, webpack-bundle-analyzer, webpack-cli, webpack-dev-server
Yep, installed Caddy; errors from running yarn start are as follows now:
/Development/voyager develop
❯ yarn start
[0] yarn frontend exited with code SIGTERM
yarn start v0.19.1
$ concurrently -k "yarn frontend" "yarn backend"
yarn frontend v0.19.1
yarn backend v0.19.1
$ cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
$ concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
yarn connect v0.19.1
yarn nodes v0.19.1
$ node ./tasks/local-testnet/start.js 2 skip-rebuild
$ concurrently -k "yarn stargate" "yarn proxy"
[1] [1] Redirecting node 1 output to /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_1/process.log
[1] [1] Waiting for first block on node 1
[1] [1] Redirecting node 2 output to /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_2/process.log
[1] [1] Waiting for first block on node 2
[1] [1] ERROR: open /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_2/config/genesis.json: no such file or directory
[1] [1] (node:60141) UnhandledPromiseRejectionWarning: 1
[1] [1] (node:60141) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[1] [1] (node:60141) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[1] [1] panic: invariant broken: loose token invariance:
[1] [1] pool.NotBondedTokens: 0
[1] [1] sum of account tokens: 20000000000.000000000000000000
[1] [1]
[1] [1] goroutine 1 [running]:
[1] [1] github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).assertRuntimeInvariantsOnContext(0xc000b9cd80, 0x1e71960, 0xc0009ee240, 0xc00002f1c0, 0xc)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/invariants.go:34 +0x37e
[1] [1] github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).assertRuntimeInvariants(0xc000b9cd80)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/invariants.go:26 +0xf6
[1] [1] github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).initChainer(0xc000b9cd80, 0x1e71960, 0xc00038d920, 0xc00000f4c0, 0xd, 0x2fef5cc0, 0xed42dab13, 0x0, 0xc0004aab90, 0xd, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/app.go:321 +0x39e
[1] [1] github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).initChainer-fm(0x1e71960, 0xc00038d920, 0xc00000f4c0, 0xd, 0x2fef5cc0, 0xed42dab13, 0x0, 0xc0004aab90, 0xd, 0xc00000f3c0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/app.go:176 +0xb6
[1] [1] github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000b83d00, 0x2fef5cc0, 0xed42dab13, 0x0, 0xc0004aab90, 0xd, 0xc00000f3c0, 0x26cf018, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:341 +0x26d
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc00038b7a0, 0x2fef5cc0, 0xed42dab13, 0x0, 0xc0004aab90, 0xd, 0xc00000f3c0, 0x26cf018, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client/local_client.go:223 +0xe6
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0xc00038f770, 0x2fef5cc0, 0xed42dab13, 0x0, 0xc0004aab90, 0xd, 0xc00000f3c0, 0x26cf018, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy/app_conn.go:65 +0x6b
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(0xc000495500, 0xa, 0x0, 0xc0004aaef0, 0x6, 0xc0004aaf10, 0xd, 0x0, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/replay.go:305 +0x623
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc000495500, 0x1e7c6e0, 0xc000131500, 0x2, 0x1e724a0)
[1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/replay.go:264 +0x516
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/node.NewNode(0xc000b8ca00, 0x1e6fc20, 0xc000bb5c20, 0xc00038f3b0, 0x1e65ce0, 0xc0004bcf00, 0xc00038f5b0, 0x1d736b8, 0xc00038f5c0, 0x1e724a0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/node/node.go:265 +0xa65
[1] [1] github.com/cosmos/cosmos-sdk/server.startInProcess(0xc0003a0880, 0x1d73ef0, 0x1d, 0x0, 0x0)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/server/start.go:124 +0x45f
[1] [1] github.com/cosmos/cosmos-sdk/server.StartCmd.func1(0xc000babb80, 0xc0003a0ce0, 0x0, 0x2, 0x0, 0x0)
[1] /go/src/github.com/cosmos/cosmos-sdk/server/start.go:42 +0xab
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).execute(0xc000babb80, 0xc0003a0ca0, 0x2, 0x2, 0xc000babb80, 0xc0003a0ca0)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:762 +0x473
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0000d4f00, 0xc0003a0c00, 0xc0008d1e60, 0x163c1fd)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).Execute(0xc0000d4f00, 0x163baab, 0xc000375540)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:800 +0x2b
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xc0000d4f00, 0x1d742e0, 0x2, 0xc000037b60)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli/setup.go:89 +0x4e
[1] [1] main.main()
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/cmd/gaiad/main.go:53 +0x479
[1] [1] (node:60141) UnhandledPromiseRejectionWarning: 2
[1] [1] (node:60141) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
yarn stargate v0.19.1
yarn proxy v0.19.1
$ ./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
error No command specified.
info Commands available from binary scripts: autoprefixer, chromedriver, concurrently, cross-env, css-beautify, eslint, hs, html-beautify, http-server, jest, js-beautify, nightwatch, publish-release, semver, stylelint, tape, webpack, webpack-bundle-analyzer, webpack-cli, webpack-dev-server
info Project commands
- backend
concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
- backend:fixed-https
concurrently -k "yarn nodes 2 skip-rebuild" "yarn stargate --ssl-certfile 'server_dev.crt' --ssl-keyfile 'server_dev.key'"
- backend:new
concurrently -k "yarn connect" "yarn nodes 2"
- build
node tasks/build/localBuild
- build:gaia
cd tasks/build/Gaia && ./localBuild.sh
- build:local
node tasks/build/local/build
- build:testnets
cd tasks/build/testnets && ./localBuild.sh
- build:ui
cross-env NODE_ENV=production webpack --colors --config webpack.renderer.config.js --mode=production --profile --json > app/dist/build.stats.json
- connect
concurrently -k "yarn stargate" "yarn proxy"
- frontend
cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
- frontend:fixed-https
yarn frontend --cert 'server_dev.crt' --key 'server_dev.key'
- lint
yarn lint:eslint && yarn lint:css
- lint:css
stylelint '**/*.{css,vue}'
- lint:eslint
eslint -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}"
- lint:fix
eslint --fix -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}" && stylelint "**/*.{css,vue}" --fix
- nodes
node ./tasks/local-testnet/start.js
- postcheckout
yarn
- precommit
yarn lint:fix
- prepush
bash ./tasks/pending-changed-check.sh && yarn lint
- proxy
caddy
- release
node ./tasks/releasePullRequest.js
- serve
http-server -p 8081 ./app/dist
- stargate
./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
- start
concurrently -k "yarn frontend" "yarn backend"
- start:new
concurrently -k "yarn frontend" "yarn backend:new"
- test
yarn run lint && yarn test:unit && yarn test:e2e
- test:coverage
http-server test/unit/coverage/lcov-report
- test:e2e
(kill $(lsof -t -i:9515) || true) && nightwatch --config ./test/e2e/nightwatch.json
- test:exe
node tasks/test-build.js
- test:unit
cross-env NODE_ENV=testing jest --maxWorkers=2
- watch
tasks/watch.sh
error No command specified.
Done in 0.15s.
[1] [0] [1] yarn proxy exited with code 0
[1] [0] --> Sending SIGTERM to other processes..
[0] clean-webpack-plugin: /Users/tees/Development/voyager/app/dist has been removed.
[1] [0] [0] yarn stargate exited with code SIGTERM
error Command failed with exit code 1.
[1] [0] yarn connect exited with code 1
[1] --> Sending SIGTERM to other processes..
[1] [1] yarn nodes 2 skip-rebuild exited with code SIGTERM
error Command failed with exit code 1.
[1] yarn backend exited with code 1
--> Sending SIGTERM to other processes..
[0] ℹ 「wds」: Project is running at https://localhost:9080/
[0] ℹ 「wds」: webpack output is served from /
[0] ℹ 「wds」: Content not from webpack is served from /Users/tees/Development/voyager/app/dist, /Users/tees/Development/voyager/app
[0] yarn frontend exited with code SIGTERM
error Command failed with exit code 1.
Can you try yarn start:new again?
It says
open /Users/tees/Development/voyager/builds/testnets/local-testnet/node_home_2/config/genesis.json: no such file or directory
which indicates, that the node setup hasn't succeeded yet
Fresh cloned the repo. Here are the steps I followed exactly. (still failed)
yarn installyarn build:gaia❯ yarn build:gaia
yarn build:gaia v0.19.1
$ cd tasks/build/Gaia && ./localBuild.sh
Building new version: 4c5038018163fbb51ad882c0505df4958dec2ea8 for darwin
Cloning into 'cosmos-sdk'...
Note: checking out '4c5038018163fbb51ad882c0505df4958dec2ea8'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 4c503801... Merge PR #3750: Outstanding per-validator rewards; correctly handle same-BeginBlock redelegation-double-slash
Installing development tools.
cat: vendor-deps: No such file or directory
mkdir -p /go/src/github.com/golang && (test ! -d /go/src/github.com/golang/dep && cd /go/src/github.com/golang && git clone https://github.com/golang/dep) || true && cd /go/src/github.com/golang/dep && git fetch origin && git checkout -q 22125cfaa6ddc71e145b1535d4b7ee9744fefff2
Cloning into 'dep'...
cd /go/src/github.com/golang/dep/cmd/dep && /usr/local/go/bin/go install
mkdir -p /go/src/github.com/alecthomas && (test ! -d /go/src/github.com/alecthomas/gometalinter && cd /go/src/github.com/alecthomas && git clone https://github.com/alecthomas/gometalinter) || true && cd /go/src/github.com/alecthomas/gometalinter && git fetch origin && git checkout -q v3.0.0 && cd /go/src/github.com/alecthomas/gometalinter && /usr/local/go/bin/go install
Cloning into 'gometalinter'...
mkdir -p /go/src/github.com/rakyll && (test ! -d /go/src/github.com/rakyll/statik && cd /go/src/github.com/rakyll && git clone https://github.com/rakyll/statik) || true && cd /go/src/github.com/rakyll/statik && git fetch origin && git checkout -q v0.1.5 && cd /go/src/github.com/rakyll/statik && /usr/local/go/bin/go install
Cloning into 'statik'...
go get golang.org/x/tools/cmd/goimports
--> Downloading linters (this may take awhile)
/go/src/github.com/alecthomas/gometalinter/scripts/install.sh -b /go/bin
alecthomas/gometalinter info checking GitHub for latest tag
alecthomas/gometalinter info found version: 3.0.0 for v3.0.0/linux/amd64
alecthomas/gometalinter info installed /go/bin/gometalinter
alecthomas/gometalinter info installed /go/bin/gocyclo
alecthomas/gometalinter info installed /go/bin/nakedret
alecthomas/gometalinter info installed /go/bin/misspell
alecthomas/gometalinter info installed /go/bin/gosec
alecthomas/gometalinter info installed /go/bin/golint
alecthomas/gometalinter info installed /go/bin/ineffassign
alecthomas/gometalinter info installed /go/bin/goconst
alecthomas/gometalinter info installed /go/bin/errcheck
alecthomas/gometalinter info installed /go/bin/maligned
alecthomas/gometalinter info installed /go/bin/unconvert
alecthomas/gometalinter info installed /go/bin/dupl
alecthomas/gometalinter info installed /go/bin/structcheck
alecthomas/gometalinter info installed /go/bin/varcheck
alecthomas/gometalinter info installed /go/bin/safesql
alecthomas/gometalinter info installed /go/bin/deadcode
alecthomas/gometalinter info installed /go/bin/lll
alecthomas/gometalinter info installed /go/bin/goimports
alecthomas/gometalinter info installed /go/bin/gotype
alecthomas/gometalinter info installed /go/bin/staticcheck
alecthomas/gometalinter info installed /go/bin/interfacer
alecthomas/gometalinter info installed /go/bin/unparam
alecthomas/gometalinter info installed /go/bin/gochecknoinits
alecthomas/gometalinter info installed /go/bin/gochecknoglobals
go get github.com/tendermint/lint/golint
touch devtools-stamp
Building Cosmos SDK for darwin platform.
cat: vendor-deps: No such file or directory
make: Nothing to be done for 'get_vendor_deps'.
cat: vendor-deps: No such file or directory
--> Generating vendor directory via dep ensure
(1/58) Wrote github.com/go-stack/[email protected]
(2/58) Wrote github.com/cosmos/[email protected]
(3/58) Wrote github.com/matttproud/[email protected]
(4/58) Wrote github.com/golang/[email protected]
(5/58) Wrote github.com/rakyll/[email protected]
(6/58) Wrote github.com/davecgh/[email protected]
(7/58) Wrote github.com/bartekn/go-bip39@master
(8/58) Wrote github.com/beorn7/perks@master
(9/58) Wrote github.com/bgentry/[email protected]
(10/58) Wrote github.com/btcsuite/btcd@ed77733ec07dfc8a513741138419b8d9d3de9d2d
(11/58) Wrote github.com/btcsuite/btcutil@d4cc87b860166d00d6b5b9e0d3b3d71d6088d4d4
(12/58) Wrote github.com/mitchellh/[email protected]
(13/58) Wrote gopkg.in/[email protected]
(14/58) Wrote github.com/cosmos/go-bip39@52158e4697b87de16ed390e1bdaf813e581008fa
(15/58) Wrote github.com/otiai10/copy@7e9a647135a142c2669943d4a4d29be015ce9392
(16/58) Wrote github.com/pelletier/[email protected]
(17/58) Wrote github.com/pkg/[email protected]
(18/58) Wrote github.com/pmezard/[email protected]
(19/58) Wrote github.com/rcrowley/go-metrics@e2704e165165ec55d062f5919b4b29494e9fa790
(20/58) Wrote github.com/rs/[email protected]
(21/58) Wrote github.com/prometheus/[email protected]
(22/58) Wrote github.com/gogo/[email protected]
(23/58) Wrote github.com/spf13/[email protected]
(24/58) Wrote github.com/spf13/[email protected]
(25/58) Wrote github.com/spf13/[email protected]
(26/58) Wrote github.com/spf13/[email protected]
(27/58) Wrote github.com/spf13/[email protected]
(28/58) Wrote github.com/spf13/[email protected]
(29/58) Wrote github.com/stretchr/[email protected]
(30/58) Wrote github.com/syndtr/goleveldb@c4c61651e9e37fa117f53c5a906d3b63090d8445
(31/58) Wrote github.com/tendermint/[email protected]
(32/58) Wrote github.com/tendermint/[email protected]
(33/58) Wrote github.com/golang/[email protected]
(34/58) Wrote github.com/tendermint/[email protected]
(35/58) Wrote github.com/zondax/[email protected]
(36/58) Wrote github.com/zondax/[email protected]
(37/58) Wrote golang.org/x/crypto (from https://github.com/tendermint/crypto)@3764759f34a542a3aef74d6b02e35be7ab893bba
(38/58) Wrote github.com/prometheus/client_model@master
(39/58) Wrote golang.org/x/net@292b43bbf7cb8d35ddf40f8d5100ef3837cced3f
(40/58) Wrote github.com/prometheus/[email protected]
(41/58) Wrote github.com/prometheus/procfs@master
(42/58) Wrote github.com/jmhodges/[email protected]
(43/58) Wrote github.com/gorilla/[email protected]
(44/58) Wrote github.com/tendermint/[email protected]
(45/58) Wrote github.com/hashicorp/[email protected]
(46/58) Wrote github.com/inconshreveable/[email protected]
(47/58) Wrote github.com/magiconair/[email protected]
(48/58) Wrote github.com/kr/logfmt@master
(49/58) Wrote github.com/mattn/[email protected]
(50/58) Wrote golang.org/x/sys@4e1fef5609515ec7a2cee7b5de30ba6d9b438cbf
(51/58) Wrote github.com/fsnotify/[email protected]
(52/58) Wrote google.golang.org/genproto@383e8b2c3b9e36c4076b235b32537292176bae20
(53/58) Wrote google.golang.org/[email protected]
(54/58) Wrote github.com/go-logfmt/[email protected]
(55/58) Wrote github.com/gorilla/[email protected]
(56/58) Wrote github.com/go-kit/[email protected]
(57/58) Wrote golang.org/x/[email protected]
(58/58) Wrote github.com/ethereum/[email protected]
tar -c vendor/ | sha1sum | cut -d' ' -f1 > vendor-deps
go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Version=0.32.0-70-g4c503801 -X github.com/cosmos/cosmos-sdk/version.Commit=4c5038018163fbb51ad882c0505df4958dec2ea8 -X github.com/cosmos/cosmos-sdk/version.VendorDirHash= -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger"' ./cmd/gaia/cmd/gaiad
go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Version=0.32.0-70-g4c503801 -X github.com/cosmos/cosmos-sdk/version.Commit=4c5038018163fbb51ad882c0505df4958dec2ea8 -X github.com/cosmos/cosmos-sdk/version.VendorDirHash= -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger"' ./cmd/gaia/cmd/gaiacli
go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Version=0.32.0-70-g4c503801 -X github.com/cosmos/cosmos-sdk/version.Commit=4c5038018163fbb51ad882c0505df4958dec2ea8 -X github.com/cosmos/cosmos-sdk/version.VendorDirHash= -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger"' ./cmd/gaia/cmd/gaiareplay
go install -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Version=0.32.0-70-g4c503801 -X github.com/cosmos/cosmos-sdk/version.Commit=4c5038018163fbb51ad882c0505df4958dec2ea8 -X github.com/cosmos/cosmos-sdk/version.VendorDirHash= -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger"' ./cmd/gaia/cmd/gaiakeyutil
✨ Done in 139.53s.
yarn build:testnets❯ yarn build:testnets
yarn build:testnets v0.19.1
$ cd tasks/build/testnets && ./localBuild.sh
Gaia missing; building first.
yarn build:gaia v0.19.1
$ cd tasks/build/Gaia && ./localBuild.sh
Already built 4c5038018163fbb51ad882c0505df4958dec2ea8 for darwin
✨ Done in 0.17s.
e0f9f48a431edbadc3d54434bba633066d3eb3a69589c6df416c34d805e87afc
builder
Copying testnet configuration files...
/go/builds/build.sh: 11: /go/builds/build.sh: builds/Gaia/linux_amd64/gaiad: not found
sed: can't read /root/.gaiad/config/config.toml: No such file or directory
Cloning into 'builds/testnets'...
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
cp: cannot stat '/root/.gaiad/config/config.toml': No such file or directory
builder
✨ Done in 15.46s.
❯ curl https://getcaddy.com | bash -s personal http.cors
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7380 100 7380 0 0 10949 0 --:--:-- --:--:-- --:--:-- 10949
Downloading Caddy for darwin/amd64 (personal license)...
Download verification OK
Extracting...
Archive: /tmp/caddy_darwin_amd64_custom.zip
inflating: /tmp/caddy
Backing up /usr/local/bin/caddy to /usr/local/bin/caddy_old
(Password may be required.)
Password:
Putting caddy in /usr/local/bin (may require password)
Caddy 0.11.5 (non-commercial use only)
Successfully installed
yarn build:gaia which I already didyarn build:ui) since I'm not deploying...yarn start:new (fails):❯ yarn start:new
yarn start:new v0.19.1
$ concurrently -k "yarn frontend" "yarn backend:new"
yarn backend:new v0.19.1
yarn frontend v0.19.1
$ concurrently -k "yarn connect" "yarn nodes 2"
$ cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=
development
yarn nodes v0.19.1
yarn connect v0.19.1
$ concurrently -k "yarn stargate" "yarn proxy"
$ node ./tasks/local-testnet/start.js 2
yarn stargate v0.19.1
yarn proxy v0.19.1
$ ./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testn
et' --trust-node true
error No command specified.
info Commands available from binary scripts: autoprefixer, chromedriver, concurrently, cross-env, css-beautify, eslint, hs, html-beautify, http-server, jest, js-beautify, nightwatch, pu
blish-release, semver, stylelint, tape, webpack, webpack-bundle-analyzer, webpack-cli, webpack-dev-server
info Project commands
- backend
concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
- backend:fixed-https
concurrently -k "yarn nodes 2 skip-rebuild" "yarn stargate --ssl-certfile 'server_dev.crt' --ssl-keyfile 'server_dev.key'"
- backend:new
concurrently -k "yarn connect" "yarn nodes 2"
- build
node tasks/build/localBuild
- build:gaia
cd tasks/build/Gaia && ./localBuild.sh
- build:local
node tasks/build/local/build
- build:testnets
cd tasks/build/testnets && ./localBuild.sh
- build:ui
cross-env NODE_ENV=production webpack --colors --config webpack.renderer.config.js --mode=production --profile --json > app/dist/build.stats.json
- connect
concurrently -k "yarn stargate" "yarn proxy"
- frontend
cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
- frontend:fixed-https
yarn frontend --cert 'server_dev.crt' --key 'server_dev.key'
- lint
yarn lint:eslint && yarn lint:css
- lint:css
stylelint '**/*.{css,vue}'
- lint:eslint
eslint -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}"
- lint:fix
eslint --fix -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}" && stylelint "**/*.{css,vue}" --fix
- nodes
node ./tasks/local-testnet/start.js
- postcheckout
yarn
- precommit
yarn lint:fix
- prepush
bash ./tasks/pending-changed-check.sh && yarn lint
- proxy
caddy
- release
node ./tasks/releasePullRequest.js
- serve
http-server -p 8081 ./app/dist
- stargate
./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
- start
concurrently -k "yarn frontend" "yarn backend"
- start:new
concurrently -k "yarn frontend" "yarn backend:new"
- test
yarn run lint && yarn test:unit && yarn test:e2e
- test:coverage
http-server test/unit/coverage/lcov-report
- test:e2e
(kill $(lsof -t -i:9515) || true) && nightwatch --config ./test/e2e/nightwatch.json
- test:exe
node tasks/test-build.js
- test:unit
cross-env NODE_ENV=testing jest --maxWorkers=2
- watch
tasks/watch.sh
error No command specified.
Done in 0.17s.
[1] [0] [1] yarn proxy exited with code 0
[1] [0] --> Sending SIGTERM to other processes..
[1] [0] [0] yarn stargate exited with code SIGTERM
error Command failed with exit code 1.
[1] [0] yarn connect exited with code 1
[1] --> Sending SIGTERM to other processes..
[1] [1] Imported Account
[1] [1] yarn nodes 2 exited with code SIGTERM
error Command failed with exit code 1.
[1] yarn backend:new exited with code 1
--> Sending SIGTERM to other processes..
[0] clean-webpack-plugin: /Users/tees/Development/lunie/app/dist has been removed.
[0] ℹ 「wds」: Generating SSL Certificate
[0] ℹ 「wds」: Project is running at https://localhost:9080/
[0] ℹ 「wds」: webpack output is served from /
[0] ℹ 「wds」: Content not from webpack is served from /Users/tees/Development/lunie/app/dist, /Users/tees/Development/lunie/app
[0] yarn frontend exited with code SIGTERM
error Command failed with exit code 1.
yarn start (fails)❯ yarn start
yarn start v0.19.1
$ concurrently -k "yarn frontend" "yarn backend"
yarn frontend v0.19.1
yarn backend v0.19.1
$ cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=
development
$ concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
yarn connect v0.19.1
yarn nodes v0.19.1
$ concurrently -k "yarn stargate" "yarn proxy"
$ node ./tasks/local-testnet/start.js 2 skip-rebuild
[1] [1] Redirecting node 1 output to /Users/tees/Development/lunie/builds/testnets/local-testnet/node_home_1/process.log
[1] [1] Waiting for first block on node 1
[1] [1] Redirecting node 2 output to /Users/tees/Development/lunie/builds/testnets/local-testnet/node_home_2/process.log
[1] [1] Waiting for first block on node 2
[1] [1] ERROR: open /Users/tees/Development/lunie/builds/testnets/local-testnet/node_home_2/config/genesis.json: no such file or directory
[1] [1] (node:20085) UnhandledPromiseRejectionWarning: 1
[1] [1] (node:20085) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[1] [1] (node:20085) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[1] [1] panic: invariant broken: loose token invariance:
[1] [1] pool.NotBondedTokens: 0
[1] [1] sum of account tokens: 20000000000.000000000000000000
[1] [1]
[1] [1] goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).assertRuntimeInvariantsOnContext(0xc0000c9b00, 0x1e71960, 0xc0009d4990, 0xc00002f6c0, 0xc)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/invariants.go:34 +0x37e
[1] [1] github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).assertRuntimeInvariants(0xc0000c9b00)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/invariants.go:26 +0xf6
[1] [1] github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).initChainer(0xc0000c9b00, 0x1e71960, 0xc0008f5200, 0xc0000ecd40, 0xd, 0x11bf8888, 0xed42f48b5, 0x0, 0xc0004a6bf0, 0xd, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/app.go:321 +0x39e
[1] [1] github.com/cosmos/cosmos-sdk/cmd/gaia/app.(*GaiaApp).initChainer-fm(0x1e71960, 0xc0008f5200, 0xc0000ecd40, 0xd, 0x11bf8888, 0xed42f48b5, 0x0, 0xc0004a6bf0, 0xd, 0xc0000ecc40, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/app/app.go:176 +0xb6
[1] [1] github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc0000c7b00, 0x11bf8888, 0xed42f48b5, 0x0, 0xc0004a6bf0, 0xd, 0xc0000ecc40, 0x26cf018, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:341 +0x26d
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc0000eeae0, 0x11bf8888, 0xed42f48b5, 0x0, 0xc0004a6bf0, 0xd, 0xc0000ecc40, 0x26cf018, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client/local_client.go:223 +0xe6
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0xc0008ad2c0, 0x11bf8888, 0xed42f48b5, 0x0, 0xc0004a6bf0, 0xd, 0xc0000ecc40, 0x26cf018, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy/app_conn.go:65 +0x6b
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(0xc000967380, 0xa, 0x0, 0x1bffad2, 0x6, 0xc0004a6bf0, 0xd, 0x0, 0x0, 0x0, ...)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/replay.go:305 +0x623
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc000967380, 0x1e7c6e0, 0xc000191c00, 0x2, 0x1e724a0)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/consensus/replay.go:264 +0x516
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/node.NewNode(0xc00038d540, 0x1e6fc20, 0xc0008d5900, 0xc0008ad130, 0x1e65ce0, 0xc000c142c0, 0xc0008ad330, 0x1d736b8, 0xc0008ad340, 0x1e724a0, ...)
/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/node/node.go:265 +0xa65
[1] [1] github.com/cosmos/cosmos-sdk/server.startInProcess(0xc0004daaa0, 0x1d73ef0, 0x1d, 0x0, 0x0)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/server/start.go:124 +0x45f
[1] [1] github.com/cosmos/cosmos-sdk/server.StartCmd.func1(0xc000c09b80, 0xc0004daf00, 0x0, 0x2, 0x0, 0x0)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/server/start.go:42 +0xab
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).execute(0xc000c09b80, 0xc0004daec0, 0x2, 0x2, 0xc000c09b80, 0xc0004daec0)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:762 +0x473
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0000d6f00, 0xc0004dae20, 0xc0008d9e60, 0x163c1fd)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).Execute(0xc0000d6f00, 0x163baab, 0xc00001bc00)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:800 +0x2b
[1] [1] github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xc0000d6f00, 0x1d742e0, 0x2, 0xc000b1e040)
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli/setup.go:89 +0x4e
[1] [1] main.main()
[1] [1] /go/src/github.com/cosmos/cosmos-sdk/cmd/gaia/cmd/gaiad/main.go:53 +0x479
[1] [1] (node:20085) UnhandledPromiseRejectionWarning: 2
[1] [1] (node:20085) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
yarn stargate v0.19.1
yarn proxy v0.19.1
$ ./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
error No command specified.
info Commands available from binary scripts: autoprefixer, chromedriver, concurrently, cross-env, css-beautify, eslint, hs, html-beautify, http-server, jest, js-beautify, nightwatch, publish-release, semver, stylelint, tape, webpack, webpack-bundle-analyzer, webpack-cli, webpack-dev-server
info Project commands
- backend
concurrently -k "yarn connect" "yarn nodes 2 skip-rebuild"
- backend:fixed-https
concurrently -k "yarn nodes 2 skip-rebuild" "yarn stargate --ssl-certfile 'server_dev.crt' --ssl-keyfile 'server_dev.key'"
- backend:new
concurrently -k "yarn connect" "yarn nodes 2"
- build
node tasks/build/localBuild
- build:gaia
cd tasks/build/Gaia && ./localBuild.sh
- build:local
node tasks/build/local/build
- build:testnets
cd tasks/build/testnets && ./localBuild.sh
- build:ui
cross-env NODE_ENV=production webpack --colors --config webpack.renderer.config.js --mode=production --profile --json > app/dist/build.stats.json
- connect
concurrently -k "yarn stargate" "yarn proxy"
- frontend
cross-env NODE_ENV=development FAUCET='http://localhost:8080' webpack-dev-server --hot --colors --config webpack.renderer.config.js --port 9080 --content-base app/dist --https --mode=development
- frontend:fixed-https
yarn frontend --cert 'server_dev.crt' --key 'server_dev.key'
- lint
yarn lint:eslint && yarn lint:css
- lint:css
stylelint '**/*.{css,vue}'
- lint:eslint
eslint -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}"
- lint:fix
eslint --fix -f ./node_modules/eslint-friendly-formatter "{,**/}*.{js,vue}" && stylelint "**/*.{css,vue}" --fix
- nodes
node ./tasks/local-testnet/start.js
- postcheckout
yarn
- precommit
yarn lint:fix
- prepush
bash ./tasks/pending-changed-check.sh && yarn lint
- proxy
caddy
- release
node ./tasks/releasePullRequest.js
- serve
http-server -p 8081 ./app/dist
- stargate
./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testnet' --trust-node true
- start
concurrently -k "yarn frontend" "yarn backend"
- start:new
concurrently -k "yarn frontend" "yarn backend:new"
- test
yarn run lint && yarn test:unit && yarn test:e2e
- test:coverage
http-server test/unit/coverage/lcov-report
- test:e2e
(kill $(lsof -t -i:9515) || true) && nightwatch --config ./test/e2e/nightwatch.json
- test:exe
node tasks/test-build.js
- test:unit
cross-env NODE_ENV=testing jest --maxWorkers=2
- watch
tasks/watch.sh
error No command specified.
Done in 0.19s.
[1] [0] [1] yarn proxy exited with code 0
[1] [0] --> Sending SIGTERM to other processes..
[1] [0] [0] yarn stargate exited with code SIGTERM
error Command failed with exit code 1.
[1] [0] yarn connect exited with code 1
[1] --> Sending SIGTERM to other processes..
[1] [1] yarn nodes 2 skip-rebuild exited with code SIGTERM
error Command failed with exit code 1.
[1] yarn backend exited with code 1
--> Sending SIGTERM to other processes..
[0] clean-webpack-plugin: /Users/tees/Development/lunie/app/dist has been removed.
[0] ℹ 「wds」: Project is running at https://localhost:9080/
[0] ℹ 「wds」: webpack output is served from /
[0] ℹ 「wds」: Content not from webpack is served from /Users/tees/Development/lunie/app/dist, /Users/tees/Development/lunie/app
[0] yarn frontend exited with code SIGTERM
error Command failed with exit code 1.
I just tried again using following commands:
git clone https://github.com/cosmos/lunie
cd lunie
yarn
yarn build:gaia
yarn start:new
Lunie is running
Maybe your command ./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testn
et' --trust-node true is failing
Do you have the file ./builds/Gaia/darwin_amd64/gaiacli?

got the file ☝️ I think
and
./builds/Gaia/darwin_amd64/gaiacli rest-server --laddr 'tcp://localhost:9070' --home './builds/testnets/local-testnet/cli_home' --node 'http://localhost:26657' --chain-id 'local-testn et' --trust-node true
works
Does yarn proxy work?
No, no luck.
Puuuuuhhhhh... we triangulated the issue 🕺
So the caddy command is still not available. Can you run caddy from the console? My guess would be that the installation didn't work out as expected. Maybe try copying the caddy binary to the root of the lunie repo.
err, caddy runs from /usr/local/bin and I also copied it to the repo and ran it, both got the same results:
❯ ./caddy
Activating privacy features... done.
Serving HTTP on port 8080
http://localhost:8080
yarn start:new is still failing with the same errors.
caddy runs from /usr/local/bin
Just running:
$ caddy
works?
Fallback solution while you try out more stuff:
You can just run the frontend:
$ yarn frontend
And then add the following url parameters: https://localhost:9080/?rpc=https://test.voyager.ninja:26657/&stargate=https://sntajlxzsg.execute-api.eu-central-1.amazonaws.com/dev. This links the frontend to the testnet backend.
To receive coins from the faucet you need to do a small edit:
Turn this line https://github.com/cosmos/lunie/blob/develop/app/src/config.js#L12 into "const faucet = process.env.FAUCET !== undefined ? process.env.FAUCET : https://faucet.voyager.ninja" so the frontend calls the faucet in development.
Yep, running caddy shows this in the terminal:
~/Development/lunie develop
❯ caddy
Activating privacy features... done.
Serving HTTP on port 8080
http://localhost:8080
It looks like your shim above works. I'll periodically try and reboot the repo entirely.
The boot process is now more streamlined using a node proxy and having the testnet start in a docker. If you are interested, feel free to check it out.
Most helpful comment
Do you have
./builds/Gaia/darwin_amd64/gaiacli?Did you install
caddy?