Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Nginx #804

Closed
avenbreaks opened this issue Oct 16, 2022 · 5 comments
Closed

Nginx #804

avenbreaks opened this issue Oct 16, 2022 · 5 comments
Labels
info needed More information needed

Comments

@avenbreaks
Copy link

After the Blockchain node is active, I want to replace the /ip4 bootnode with a custom domain and ssl, but the problem after I try to install nginx the node is not listening and the API can't be listened to, how do I consume the API? I tried with dns but there is a problem goroutine152

@laviniat1996
Copy link
Contributor

Hi @avenbreaks ,

Can you provide more info? What Edge version are you using? On cloud or locally? Your general setup. What error are you getting?

@laviniat1996 laviniat1996 added the info needed More information needed label Oct 16, 2022
@laviniat1996
Copy link
Contributor

@avenbreaks Can you provide the logs too, please?

@avenbreaks
Copy link
Author

Log Another VM Without Nginx :

2022-10-17T13:04:50.370Z [INFO]  polygon.ibft: block committed: number=138 hash=0x4423f742707ccffa17af4a462c15094b2572f9031614fdcf679e8b212a3c3781 validation_type=bls validators=4 committed=3
2022-10-17T13:04:50.370Z [DEBUG] polygon.ibft.consensus: exit: fin state
2022-10-17T13:04:50.370Z [INFO]  polygon.ibft.consensus: sequence done: height=138
2022-10-17T13:04:50.370Z [INFO]  polygon.ibft.consensus: sequence started: height=139
2022-10-17T13:04:50.371Z [INFO]  polygon.ibft.consensus: round started: round=0
2022-10-17T13:04:50.371Z [DEBUG] polygon.ibft.consensus: enter: new round state
2022-10-17T13:04:50.418Z [INFO]  polygon.blockchain: block already inserted: block=138 source=syncer
2022-10-17T13:04:51.394Z [DEBUG] polygon.network.discovery: Querying a peer for near peers: peer=16Uiu2HAmJbTZsFVZiAmSNf8o2Zb9DsZvdTLDgQbGwsdB2zMWFhQ4
2022-10-17T13:04:51.395Z [DEBUG] polygon.network.discovery: Found new near peers: peer=3
2022-10-17T13:04:56.393Z [DEBUG] polygon.network.discovery: Querying a peer for near peers: peer=16Uiu2HAm9T1nham13TDaNxC9eWQG92EFiDsaxwbHn8cz252mekr7
2022-10-17T13:04:56.395Z [DEBUG] polygon.network.discovery: Found new near peers: peer=3
2022-10-17T13:05:01.393Z [DEBUG] polygon.network.discovery: Querying a peer for near peers: peer=16Uiu2HAmM5ivKALv5ZSQW6Cjv5TCam1m3XVHZC56Uqo2zRfrwqJq
2022-10-17T13:05:01.396Z [DEBUG] polygon.network.discovery: Found new near peers: peer=3
2022-10-17T13:05:02.372Z [DEBUG] polygon.ibft: validator message received: type=PREPREPARE height=139 round=0 addr=0xfbE59b493cCb1153Cac003d1dFd7Ac54BF6395D2
2022-10-17T13:05:02.396Z [DEBUG] polygon.ibft.consensus: prepare message multicasted
2022-10-17T13:05:02.396Z [DEBUG] polygon.ibft.consensus: exit: new round state
2022-10-17T13:05:02.396Z [DEBUG] polygon.ibft.consensus: enter: prepare state
2022-10-17T13:05:02.397Z [DEBUG] polygon.ibft: validator message received: type=PREPARE height=139 round=0 addr=0xD9fA58cdcecFbeE9210cf09A5C63a440f7631D3d
2022-10-17T13:05:02.399Z [DEBUG] polygon.ibft: validator message received: type=PREPARE height=139 round=0 addr=0xb8DDF30d4785289622b98B3517AA198b8287aea9
2022-10-17T13:05:02.411Z [DEBUG] polygon.ibft.consensus: commit message multicasted
2022-10-17T13:05:02.411Z [DEBUG] polygon.ibft.consensus: exit: prepare state
2022-10-17T13:05:02.411Z [DEBUG] polygon.ibft.consensus: enter: commit state
2022-10-17T13:05:02.412Z [DEBUG] polygon.ibft: validator message received: type=COMMIT height=139 round=0 addr=0xb8DDF30d4785289622b98B3517AA198b8287aea9
2022-10-17T13:05:02.412Z [DEBUG] polygon.ibft: validator message received: type=COMMIT height=139 round=0 addr=0xD9fA58cdcecFbeE9210cf09A5C63a440f7631D3d
2022-10-17T13:05:02.419Z [DEBUG] polygon.ibft: validator message received: type=COMMIT height=139 round=0 addr=0xfbE59b493cCb1153Cac003d1dFd7Ac54BF6395D2
2022-10-17T13:05:02.437Z [DEBUG] polygon.ibft: validator message received: type=PREPARE height=139 round=0 addr=0xBaDCb8e5205812307B8d581C4b612Bc89eEA6265
2022-10-17T13:05:02.477Z [DEBUG] polygon.ibft.consensus: exit: commit state
2022-10-17T13:05:02.477Z [DEBUG] polygon.ibft.consensus: enter: fin state
2022-10-17T13:05:02.477Z [DEBUG] polygon.ibft: validator message received: type=COMMIT height=139 round=0 addr=0xBaDCb8e5205812307B8d581C4b612Bc89eEA62652022-10-17T13:05:02.493Z [INFO]  polygon.blockchain: new block: number=139 txs=0 hash=0x1023ee62239855ff21d164d688c464e995325c82bf72c9ef3764084857c89e3a parent=0x4423f742707ccffa17af4a462c15094b2572f9031614fdcf679e8b212a3c3781 generation_time_in_seconds=12
2022-10-17T13:05:02.494Z [INFO]  polygon.ibft: block committed: number=139 hash=0x1023ee62239855ff21d164d688c464e995325c82bf72c9ef3764084857c89e3a validation_type=bls validators=4 committed=3
2022-10-17T13:05:02.494Z [DEBUG] polygon.ibft.consensus: exit: fin state
2022-10-17T13:05:02.494Z [INFO]  polygon.ibft.consensus: sequence done: height=139
2022-10-17T13:05:02.494Z [INFO]  polygon.ibft.consensus: sequence started: height=140
2022-10-17T13:05:02.494Z [INFO]  polygon.ibft.consensus: round started: round=0
2022-10-17T13:05:02.495Z [INFO]  polygon.ibft.consensus: we are the proposer
2022-10-17T13:05:02.540Z [INFO]  polygon.blockchain: block already inserted: block=139 source=syncer
2022-10-17T13:05:06.393Z [DEBUG] polygon.network.discovery: Querying a peer for near peers: peer=16Uiu2HAmM5ivKALv5ZSQW6Cjv5TCam1m3XVHZC56Uqo2zRfrwqJq
2022-10-17T13:05:06.396Z [DEBUG] polygon.network.discovery: Found new near peers: peer=3
2022-10-17T13:05:11.394Z [DEBUG] polygon.network.discovery: Querying a peer for near peers: peer=16Uiu2HAmN4UvLHApAjChkZvYFKr8xkiFm1WYJTGjHBiXzMk81eBM
2022-10-17T13:05:11.625Z [DEBUG] polygon.network.discovery: Found new near peers: peer=3

@avenbreaks
Copy link
Author

and im trying loadbot getting error :

export LOADBOT_0x7DE269e8D163cB1a2dE6b649EE43e81A8D228acD:47ccb479856821341adc2345d2e3b8094f0160a8e72c193cfa3dcbdb8fca886d

polygon-edge loadbot --mode erc20 --jsonrpc http://0.0.0.0:10002 --grpc-address 0.0.0.0:10000 --sender 0x7DE269e8D163cB1a2dE6b649EE43e81A8D228acD --receiver 0xb8DDF30d4785289622b98B3517AA198b8287aea9 --count 50 --value 0x101 --tps 200

an error occurred while running the loadbot: failed to extract sender account: failed to extract ECDSA private key from bytes: invalid key length (0B), should be 32B

@laviniat1996
Copy link
Contributor

Hi @avenbreaks, you cannot change the way libp2p protocol works. It's impossible to set SSL on it, and it is encrypted by default. More info about libp2p here . Please follow the guide provided in our official docs on how to setup and run your nodes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info needed More information needed
Projects
None yet
Development

No branches or pull requests

2 participants