Open 1921Aaron opened 2 years ago
@1921Aaron I think it's an issue with your GO path.
Can you share the environment variables you've set?
Should be something like:
export GOROOT=/snap/go/9415
export GOPATH=/root/go
export PATH=$PATH:$GOPATH/bin
(Here GO is installed using snap so might be a bit different for you).
@1921Aaron
Try modifying the script here: https://github.com/InjectiveLabs/injective-chain-releases/blob/master/scripts/node-create.sh#L26 to your GOPATH either explicitly or with $GOPATH/bin (you just need peggo & injectived no need to copy injective-exchange) and let me know if it works.
Also try to run injectived version
Please specific a Injective Chain Network you want to join
Enter T for testnet OR M for mainnet (T/M)?t
Please enter moniker. # The argument
linux-amd64.zip 100%[================================================================================================>] 93.18M 11.6MB/s in 7.1s
2022-04-21 14:52:39 (13.2 MB/s) - ‘linux-amd64.zip’ saved [97706826/97706826]
Archive: linux-amd64.zip
inflating: injectived
inflating: peggo
inflating: injective-exchange
inflating: libwasmvm.so
mv: target '/root/go/bin' is not a directory
Error: genesis.json file already exists: /root/.injectived/config/genesis.json
Usage:
injectived init [moniker] [flags]
Flags: --chain-id string genesis file chain-id, if left blank will be randomly created -h, --help help for init -o, --overwrite overwrite the genesis.json file --recover provide seed phrase to recover existing key instead of creating
Global Flags:
--home string directory for config and data (default "/root/.injectived")
--log-level string Sets the level of the logger (error, warn, info, debug | or
Cloning into 'testnet-config'... remote: Enumerating objects: 539, done. remote: Counting objects: 100% (539/539), done. remote: Compressing objects: 100% (370/370), done. remote: Total 539 (delta 332), reused 342 (delta 151), pack-reused 0 Receiving objects: 100% (539/539), 44.80 MiB | 10.38 MiB/s, done. Resolving deltas: 100% (332/332), done. cp: cannot stat 'testnet-config//genesis.json': No such file or directory cp: cannot stat 'testnet-config//app.toml': No such file or directory cat: testnet-config//seeds.txt: No such file or directory INFO[0000] starting ABCI with Tendermint module=main INFO[0000] Starting multiAppConn service impl=multiAppConn module=proxy INFO[0000] Starting localClient service connection=query impl=localClient module=abci-client INFO[0000] Starting localClient service connection=snapshot impl=localClient module=abci-client INFO[0000] Starting localClient service connection=mempool impl=localClient module=abci-client INFO[0000] Starting localClient service connection=consensus impl=localClient module=abci-client INFO[0000] Starting EventBus service impl=EventBus module=events INFO[0000] Starting PubSub service impl=PubSub module=pubsub INFO[0000] Starting IndexerService service impl=IndexerService module=txindex INFO[0000] ABCI Handshake App Info hash="[]" height=0 module=consensus protocol-version=0 software-version= INFO[0000] ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x19fdf46]
goroutine 1 [running]: math/big.(Int).Sign(...) /snap/go/9028/src/math/big/int.go:39 github.com/cosmos/cosmos-sdk/types.Int.IsZero(...) /root/go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.44.5-inj/types/int.go:184 github.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types.validateInjRewardStakedRequirementThreshold({0x24b8fe0, 0x0}) /root/actions-runner/_work/injective-core/injective-core/injective-core/injective-chain/modules/exchange/types/params.go:413 +0x46 github.com/cosmos/cosmos-sdk/x/params/types.Subspace.SetParamSet({{0x2ca28b0, 0xc000ee6f90}, 0xc00058eee8, {0x2c26270, 0xc00063d590}, {0x2c262c0, 0xc00063d680}, {0xc00005bc20, 0x8, 0x2e}, ...}, ...) /root/go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.44.5-inj/x/params/types/subspace.go:236 +0x185 github.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/keeper.(Keeper).SetParams(_, {{0x2c6d268, 0xc0000560a0}, {0x2ca8bc0, 0xc000dc5140}, {{0x0, 0x0}, {0xc0015860f0, 0xd}, 0xa39c2a, ...}, ...}, ...) /root/actions-runner/_work/injective-core/injective-core/injective-core/injective-chain/modules/exchange/keeper/params.go:166 +0x1e7 github.com/InjectiveLabs/injective-core/injective-chain/modules/exchange.InitGenesis({{0x2c6d268, 0xc0000560a0}, {0x2ca8bc0, 0xc000dc5140}, {{0x0, 0x0}, {0xc0015860f0, 0xd}, 0xa39c2a, {0x30700e10, ...}, ...}, ...}, ...) /root/actions-runner/_work/injective-core/injective-core/injective-core/injective-chain/modules/exchange/genesis.go:15 +0x85 github.com/InjectiveLabs/injective-core/injective-chain/modules/exchange.AppModule.InitGenesis({{}, 0xc00137db30, {{0x2c26270, 0xc00063d610}, {0x2c262c0, 0xc00063d690}, {0x2ca28b0, 0xc000ee6f90}, {{0x2ca28b0, 0xc000ee6f90}, ...}, ...}, ...}, ...) /root/actions-runner/work/injective-core/injective-core/injective-core/injective-chain/modules/exchange/module.go:160 +0x158 github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(, {{0x2c6d268, 0xc0000560a0}, {0x2ca8bc0, 0xc000dc5140}, {{0x0, 0x0}, {0xc0015860f0, 0xd}, 0xa39c2a, ...}, ...}, ...) /root/go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.44.5-inj/types/module/module.go:307 +0x29d github.com/InjectiveLabs/injective-core/injective-chain/app.(InjectiveApp).InitChainer(_, {{0x2c6d268, 0xc0000560a0}, {0x2ca8bc0, 0xc000dc5140}, {{0x0, 0x0}, {0xc0015860f0, 0xd}, 0xa39c2a, ...}, ...}, ...) /root/actions-runner/_work/injective-core/injective-core/injective-core/injective-chain/app/app.go:801 +0x1d2 github.com/cosmos/cosmos-sdk/baseapp.(BaseApp).InitChain(0xc000f96000, {{0x30700e10, 0xed7e513c6, 0x0}, {0xc0015860f0, 0xd}, 0xc000408800, {0xc000652820, 0x3, 0x3}, ...}) /root/go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.44.5-inj/baseapp/abci.go:62 +0x475 github.com/tendermint/tendermint/abci/client.(localClient).InitChainSync(0xc000e00a80, {{0x30700e10, 0xed7e513c6, 0x0}, {0xc0015860f0, 0xd}, 0xc000408800, {0xc000652820, 0x3, 0x3}, ...}) /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.15/abci/client/local_client.go:272 +0x118 github.com/tendermint/tendermint/proxy.(appConnConsensus).InitChainSync(0x47c71e, {{0x30700e10, 0xed7e513c6, 0x0}, {0xc0015860f0, 0xd}, 0xc000408800, {0xc000652820, 0x3, 0x3}, ...}) /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.15/proxy/appconn.go:77 +0x55 github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(, {{{0xb, 0x0}, {0x24fdf02, 0x7}}, {0xc0015860f0, 0xd}, 0xa39c2a, 0x0, {{0x0, ...}, ...}, ...}, ...) /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.15/consensus/replay.go:319 +0xd98 github.com/tendermint/tendermint/consensus.(Handshaker).Handshake(0xc00066bff0, {0x2caa3b8, 0xc00150e000}) /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.15/consensus/replay.go:268 +0x3c8 github.com/tendermint/tendermint/node.doHandshake({, }, {{{0xb, 0x0}, {0x24fdf02, 0x7}}, {0xc0015860f0, 0xd}, 0xa39c2a, 0x0, ...}, ...) /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.15/node/node.go:325 +0x1b8 github.com/tendermint/tendermint/node.NewNode(0xc000cb7680, {0x2c3d3a8, 0xc0003b39a0}, 0xc000027fb0, {0x2c169a0, 0xc000616f90}, 0x2, 0x2118580, 0xc000d6a190, {0x2c6d460, ...}, ...) /root/go/pkg/mod/github.com/tendermint/tendermint@v0.34.15/node/node.go:733 +0x578 main.startInProcess(_, {{0x0, 0x0, 0x0}, {0x2cbf0d8, 0xc000fb21e0}, {0x0, 0x0}, {0x2c78a78, 0xc000ee6f90}, ...}, ...) /root/actions-runner/_work/injective-core/injective-core/injective-core/cmd/injectived/start.go:214 +0x65f main.StartCmd.func2(0xc000cdf900, {0x425d530, 0x0, 0x0}) /root/actions-runner/_work/injective-core/injective-core/injective-core/cmd/injectived/start.go:127 +0x108 github.com/spf13/cobra.(Command).execute(0xc000cdf900, {0x425d530, 0x0, 0x0}) /root/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:856 +0x60e github.com/spf13/cobra.(Command).ExecuteC(0xc000e20f00) /root/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974 +0x3bc github.com/spf13/cobra.(Command).Execute(...) /root/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902 github.com/spf13/cobra.(*Command).ExecuteContext(...) /root/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:895 main.Execute(0xc0000001a0) /root/actions-runner/_work/injective-core/injective-core/injective-core/cmd/injectived/root.go:117 +0x16b main.main() /root/actions-runner/_work/injective-core/injective-core/injective-core/cmd/injectived/main.go:9 +0x1e
@1921Aaron
Try modifying the script here: https://github.com/InjectiveLabs/injective-chain-releases/blob/master/scripts/node-create.sh#L26 to your GOPATH either explicitly or with $GOPATH/bin (you just need peggo & injectived no need to copy injective-exchange) and let me know if it works.
Also try to run
injectived version
mv: target '/root/go/bin' is not a directory That's odd given that your env variable indicates that this is your GO path.
Error: genesis.json file already exists: /root/.injectived/config/genesis.json On this I think you can run
injectived unsafe-reset-all
to clear genesis/along with the settings it might be the case that genesis was already there since you tried to run the script multiple times.
cc @nmarcetic to verify and provide some more context.