Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-create.sh error #24

Open
1921Aaron opened this issue Apr 16, 2022 · 6 comments
Open

node-create.sh error #24

1921Aaron opened this issue Apr 16, 2022 · 6 comments

Comments

@1921Aaron
Copy link

--2022-04-16 10:32:47--  https://github.com/InjectiveLabs/injective-chain-releases/releases/download//v1.4.0-1642928125/linux-amd64.zip
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/338404768/2ada73c2-21b9-48e2-b5e7-731280963dfd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220416%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220416T023247Z&X-Amz-Expires=300&X-Amz-Signature=a8f96c3e50c5d0a33dd3caa8d609b5d27c7a07e4286c4e1a9db8879549372edf&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=338404768&response-content-disposition=attachment%3B%20filename%3Dlinux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2022-04-16 10:32:47--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/338404768/2ada73c2-21b9-48e2-b5e7-731280963dfd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220416%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220416T023247Z&X-Amz-Expires=300&X-Amz-Signature=a8f96c3e50c5d0a33dd3caa8d609b5d27c7a07e4286c4e1a9db8879549372edf&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=338404768&response-content-disposition=attachment%3B%20filename%3Dlinux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93869288 (90M) [application/octet-stream]
Saving to: ‘linux-amd64.zip’

linux-amd64.zip                      100%[=====================================================================>]  89.52M  5.89MB/s    in 17s     

2022-04-16 10:33:05 (5.13 MB/s) - ‘linux-amd64.zip’ saved [93869288/93869288]

Archive:  linux-amd64.zip
  inflating: injectived              
  inflating: peggo                   
  inflating: injective-exchange      
mv: target '/root/bin' is not a directory
./node-create.sh: 32: injectived: not found
Cloning into 'mainnet-config'...
remote: Enumerating objects: 218, done.
remote: Counting objects: 100% (218/218), done.
remote: Compressing objects: 100% (146/146), done.
remote: Total 218 (delta 119), reused 146 (delta 62), pack-reused 0
Receiving objects: 100% (218/218), 60.00 KiB | 12.00 MiB/s, done.
Resolving deltas: 100% (119/119), done.
cp: cannot create regular file '/root/.injectived/config/genesis.json': No such file or directory
cp: cannot create regular file '/root/.injectived/config/app.toml': No such file or directory
sed: can't read /root/.injectived/config/config.toml: No such file or directory
./node-create.sh: 92: injectived: not found

@achilleas-kal
Copy link
Contributor

@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
Copy link
Author

image

@achilleas-kal
Copy link
Contributor

@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

@1921Aaron
Copy link
Author

1921Aaron commented Apr 21, 2022

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 is the custom username of your node, it should be human-readable
hottest
--2022-04-21 14:52:30-- https://github.com/InjectiveLabs/injective-chain-releases/releases/download//v0.4.19-1642706097/linux-amd64.zip
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/338404768/da62005e-99f6-4cb0-9e7c-2ce444cba4dd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220421%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220421T065231Z&X-Amz-Expires=300&X-Amz-Signature=a15547309a72ead8377b66e719d501c7f7e9a0173d00892fff656951c828abdb&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=338404768&response-content-disposition=attachment%3B%20filename%3Dlinux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2022-04-21 14:52:31-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/338404768/da62005e-99f6-4cb0-9e7c-2ce444cba4dd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220421%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220421T065231Z&X-Amz-Expires=300&X-Amz-Signature=a15547309a72ead8377b66e719d501c7f7e9a0173d00892fff656951c828abdb&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=338404768&response-content-disposition=attachment%3B%20filename%3Dlinux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 97706826 (93M) [application/octet-stream]
Saving to: ‘linux-amd64.zip’

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 :) (default "info")
--trace print out full stack trace on errors

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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/proxy/app_conn.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/[email protected]/consensus/replay.go:319 +0xd98
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc00066bff0, {0x2caa3b8, 0xc00150e000})
/root/go/pkg/mod/github.com/tendermint/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0xc000e20f00)
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/root/go/pkg/mod/github.com/spf13/[email protected]/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
Copy link
Author

@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

@1921Aaron 1921Aaron reopened this Apr 21, 2022
@achilleas-kal
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants