ot-node
ot-node copied to clipboard
Migration fail on new hardware
I try to migrate my node on new hardware and something wrong happens.
I set up a new node on better hardware to test more operator wallet. I install Ubuntu 22 on the new node, running installer_V8.sh, then i copy all the folder /root/ot-node from the existing to the new one including the config file : /root/ot-node/.origintrail_noderc.
I launch the new node and it seems to working fine, but in the scoreboard my score wont go up.
I open the sourcefile of the scoreboard and discover there was 2 "sogmko" but only one is showed. And score now is totaly stuck.
I try to roll back on the original node, but now all publish failed:
sogmko@ubunode2: publish_dkg$ python3 go.py {'version': '8.0.3+beta.19'} Traceback (most recent call last): File "/home/sogmko/publish_dkg/go.py", line 44, in
create_asset_result = dkg.asset.create( File "/home/sogmko/.local/lib/python3.10/site-packages/dkg/asset.py", line 346, in create operation_result = self.get_operation_result(operation_id, "publish") File "/home/sogmko/.local/lib/python3.10/site-packages/dkg/utils/decorators.py", line 40, in wrapper raise NodeRequestError( dkg.exceptions.NodeRequestError: Failed executing get_operation_result after 5 retries. sogmko@ubunode2:/publish_dkg$ sogmko@ubunode2:/publish_dkg$ python3 go.py {'version': '8.0.3+beta.19'} Traceback (most recent call last): File "/home/sogmko/publish_dkg/go.py", line 44, in create_asset_result = dkg.asset.create( File "/home/sogmko/.local/lib/python3.10/site-packages/dkg/asset.py", line 346, in create operation_result = self.get_operation_result(operation_id, "publish") File "/home/sogmko/.local/lib/python3.10/site-packages/dkg/utils/decorators.py", line 40, in wrapper raise NodeRequestError( dkg.exceptions.NodeRequestError: Failed executing get_operation_result after 5 retries.
Here's the python script i use to publish (thx to someone from discord to send me this): (working fine before)
from dkg import DKG
from dkg.providers import BlockchainProvider, NodeHTTPProvider
from dotenv import load_dotenv
import os
load_dotenv(override=True)
p_key = os.getenv("PRIVATE_KEY1")
host_node = os.getenv("HOST_NODE")
node_provider = NodeHTTPProvider(host_node)
blockchain_provider = BlockchainProvider(
"testnet",
"base:84532",
private_key=p_key
)
dkg = DKG(node_provider, blockchain_provider)
print(dkg.node.info)
public_assertion = {
"@context": "https://schema.org",
"@id": "https://tesla.modelX/2321",
"@type": "Car",
"name": "Tesla Model X",
"brand": {"@type": "Brand", "name": "Tesla"},
"model": "Model X",
"manufacturer": {"@type": "Organization", "name": "Tesla, Inc."},
"fuelType": "Electric",
"numberOfDoors": 5,
"vehicleEngine": {
"@type": "EngineSpecification",
"engineType": "Electric motor",
"enginePower": {
"@type": "QuantitativeValue",
"value": "416",
"unitCode": "BHP",
},
},
"driveWheelConfiguration": "AWD",
"speed": {"@type": "QuantitativeValue", "value": "250", "unitCode": "KMH"},
}
create_asset_result = dkg.asset.create(
{
"public": public_assertion,
},
epochs_number=1,
)
print(create_asset_result)
Here is my config file:
{
"logLevel": "trace",
"auth": {
"ipWhitelist": [
"::1",
"192.168.1.137",
"127.0.0.1"
]
},
"modules": {
"blockchain": {
"implementation": {
"base:84532": {
"enabled": true,
"config": {
"operationalWallets": [
{
"address": "0xF9772FDfEDE17b31bC19D2207D0190ECD5B9A566",
"privateKey": "x"
},
{
"address": "0xAB83f856575837983F5AD2D934058a5C9fa556fD",
"privateKey": "x"
}
],
"evmManagementWalletPublicKey": "0x788d027E6c60585A6f0c0081949aD14E29B80274",
"sharesTokenName": "sogmko",
"sharesTokenSymbol": "sogmko",
"operatorFee": 0,
"rpcEndpoints": [
"https://sepolia.base.org"
]
}
}
}
},