tronprotocol / java-tron

Java implementation of the Tron whitepaper
GNU Lesser General Public License v3.0
3.75k stars 1.41k forks source link

Full node is not syncing,even tho i have setup the SR and it produces blocks successfully . #5468

Closed SukiratWarring closed 1 year ago

SukiratWarring commented 1 year ago
  1. What did you do? (TESTNET) I try to deploy SR and a full node on my local machine using the Tron private node docs 2.What was i able to achieve i was able to deploy the SR node following the config file configuration from Tron network but i was not able to deploy the fullnode 3.What was the error? My full node is not syncing with the SR node. 4.What did i try ? i followed issue 3666, and added the seed node ip in active node, but no luck ! 5.My full node config
    
    type = mainnet
    # type = testnet
    }

storage {

Directory for storing persistent data

db.version = 2, db.engine = "LEVELDB", db.directory = "database", index.directory = "index",

You can custom these 14 databases' configs:

account, account-index, asset-issue, block, block-index,

block_KDB, peers, properties, recent-block, trans,

utxo, votes, witness, witness_schedule.

Otherwise, db configs will remain defualt and data will be stored in

the path of "output-directory" or which is set by "-d" ("--output-directory").

Attention: name is a required field that must be set !!!

properties = [ // { // name = "account", // path = "storage_directory_test", // createIfMissing = true, // paranoidChecks = true, // verifyChecksums = true, // compressionType = 1, // compressed with snappy // blockSize = 4096, // 4 KB = 4 1024 B // writeBufferSize = 10485760, // 10 MB = 10 1024 1024 B // cacheSize = 10485760, // 10 MB = 10 1024 1024 B // maxOpenFiles = 100 // }, // { // name = "account-index", // path = "storage_directory_test", // createIfMissing = true, // paranoidChecks = true, // verifyChecksums = true, // compressionType = 1, // compressed with snappy // blockSize = 4096, // 4 KB = 4 1024 B // writeBufferSize = 10485760, // 10 MB = 10 1024 1024 B // cacheSize = 10485760, // 10 MB = 10 1024 1024 B // maxOpenFiles = 100 // }, ]

}

this part of config is used to node discovery.

node.discovery = { enable = true # you should set this entry value with true if you want your node can be discovered by other node. persist = true # this entry is used to determined to whether storing the peers in the database or not. bind.ip = "" external.ip = 127.0.0.1 }

this part of config is used to set backup node for witness service.

node.backup { port = 10001 priority = 8 members = [ ] }

node {

trust node for solidity node

trustNode = "ip:port"

trustNode = "127.0.0.1:50051"

expose extension api to public or not

walletExtensionApi = true

listen.port = 16666

connection.timeout = 2

tcpNettyWorkThreadNum = 0

udpNettyWorkThreadNum = 1

Number of validate sign thread, default availableProcessors / 2

validateSignThreadNum = 16

maxActiveNodes = 30

maxActiveNodesWithSameIp = 2

minParticipationRate = 0

check the peer data transfer ,disconnect factor

disconnectNumberFactor = 0.4 maxConnectNumberFactor = 0.8 receiveTcpMinDataLength = 2048 isOpenFullTcpDisconnect = true

p2p { version = 1 # 11111: mainnet; 20180622: testnet; you can set other number when you deploy one private net, but the node must have the same number in some private net. }

active = [

Active establish connection in any case

# Sample entries:
# "ip:port",
"192.168.11.130:16666"

]

passive = [

Passive accept connection in any case

# Sample entries:
# "ip:port",
# "ip:port"

]

http { fullNodePort = 16667 solidityPort = 16668 }

rpc { port = 16669

# Number of gRPC thread, default availableProcessors / 2
# thread = 16

# The maximum number of concurrent calls permitted for each incoming connection
# maxConcurrentCallsPerConnection =

# The HTTP/2 flow control window, default 1MB
# flowControlWindow =

# Connection being idle for longer than which will be gracefully terminated
maxConnectionIdleInMillis = 60000

# Connection lasting longer than which will be gracefully terminated
# maxConnectionAgeInMillis =

# The maximum message size allowed to be received on the server, default 4MB
# maxMessageSize =

# The maximum size of header list allowed to be received, default 8192
# maxHeaderListSize =

# Transactions can only be broadcast if the number of effective connections is reached.
minEffectiveConnection = 0

}

Whether to enable the node detection function, default false

nodeDetectEnable = false

use your ipv6 address for node discovery and tcp connection, default false

enableIpv6 = false

if your node's highest block num is below than all your pees', try to acquire new connection. default false

effectiveCheckEnable = false

Dynamic loading configuration function, disabled by default

dynamicConfig = {

# enable = false
# Configuration file change check interval, default is 600 seconds
# checkInterval = 600

}

dns {

dns urls to get nodes, url format tree://{pubkey}@{domain}, default empty

treeUrls = [
  #"tree://APFGGTFOBVE2ZNAB3CSMNNX6RRK3ODIRLP2AA5U4YFAA6MSYZUYTQ@nodes1.example.org",
]

} }

seed.node = {

List of the seed nodes. This is used to enable the node can connect when join one net at first.

If you deploy one private net, you must add some "ip:port" here for other node connecting.

Seed nodes are stable full nodes, and the first SuperNode must be inclued in.

example:

ip.list = [

"ip:port",

"ip:port"

]

ip.list = [ "192.168.11.130:16666" ] }

genesis.block = {

Reserve balance

assets = [ { accountName = "Zion" accountType = "AssetIssue" address = "TPL66VK2gCXNCD7EJg9pgJRfqcRazjhUZY" balance = "95000000000000000" }, { accountName = "Sun" accountType = "AssetIssue" address = "TWsm8HtU2A5eEzoT8ev8yaoFjHsXLLrckb" balance = "5000000000000000" }, { accountName = "Blackhole" accountType = "AssetIssue" address = "TSJD5rdu6wZXP7F2m3a3tn8Co3JcMjtBip" balance = "-9223372036854775808" }, { accountName = "TestA" accountType = "AssetIssue" address = "TVdyt1s88BdiCjKt6K2YuoSmpWScZYK1QF" balance = "1000000000000000" }, { accountName = "TestB" accountType = "AssetIssue" address = "TCNVmGtkfknHpKSZXepZDXRowHF7kosxcv" balance = "1000000000000000" }, { accountName = "TestC" accountType = "AssetIssue" address = "TAbzgkG8p3yF5aywKVgq9AaAu6hvF2JrVC" balance = "1000000000000000" }, { accountName = "TestD" accountType = "AssetIssue" address = "TMmmvwvkBPBv3Gkw9cGKbZ8PLznYkTu3ep" balance = "1000000000000000" }, { accountName = "TestE" accountType = "AssetIssue" address = "TBJHZu4Sm86aWHtt6VF6KQSzot8vKTuTKx" balance = "1000000000000000" } ]

witnesses = [ { address: TPL66VK2gCXNCD7EJg9pgJRfqcRazjhUZY, url = "http://tronstudio.com", voteCount = 10000 } ]

timestamp = "0" #2017-8-26 12:00:00

parentHash = "957dc2d350daecc7bb6a38f3938ebde0a0c1cedafe15f0edae4256a2907449f6" }

localwitness = []

da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0 # you must enable this value and the witness address are match.

localwitnesskeystore = [

"src/main/resources/localwitnesskeystore.json" # if you do not set the localwitness above, you must set this value.Otherwise,your SuperNode can not produce the block.

]

block = { needSyncCheck = true # first node : false, other : true maintenanceTimeInterval = 21600000 // 1 day: 86400000(ms), 6 hours: 21600000(ms) }

vm = { supportConstant = true minTimeRatio = 0.0 maxTimeRatio = 5.0 }

committee = { allowCreationOfContracts = 1 //mainnet:0 (reset by committee),test:1 }

event.subscribe = { native = { useNativeQueue = true // if true, use native message queue, else use event plugin. bindport = 5555 // bind port sendqueuelength = 1000 //max length of send queue }

path = "" // absolute path of plugin server = "" // target server address to receive event triggers dbconfig = "" // dbname|username|password contractParse = true, topics = [ { triggerName = "block" // block trigger, the value can't be modified enable = false topic = "block" // plugin topic, the value could be modified }, { triggerName = "transaction" enable = false topic = "transaction" }, { triggerName = "contractevent" enable = false topic = "contractevent" }, { triggerName = "contractlog" enable = false topic = "contractlog" }, { triggerName = "solidity" // solidity block event trigger, the value can't be modified enable = true // the default value is true topic = "solidity" } ]

filter = { fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range contractAddress = [ "" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address. ]

contractTopic = [
  "" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic.
]

} }```

6.Error log


16:48:30.520 WARN  [main] [app](LocalWitnesses.java:104) PrivateKey is null.
16:48:30.850 INFO  [main] [app](Args.java:1534) Bind address wasn't set, Punching to identify it...
16:48:30.928 INFO  [main] [app](Args.java:1537) UDP local bound to: 192.168.11.130
16:48:30.934 INFO  [main] [app](Args.java:1649) 

16:48:30.934 INFO  [main] [app](Args.java:1650) ************************ Net config ************************
16:48:30.934 INFO  [main] [app](Args.java:1651) P2P version: 1
16:48:30.934 INFO  [main] [app](Args.java:1652) Bind IP: 192.168.11.130
16:48:30.934 INFO  [main] [app](Args.java:1653) External IP: 127.0.0.1
16:48:30.934 INFO  [main] [app](Args.java:1654) Listen port: 16666
16:48:30.934 INFO  [main] [app](Args.java:1655) Node ipv6 enable: false
16:48:30.934 INFO  [main] [app](Args.java:1656) Discover enable: true
16:48:30.934 INFO  [main] [app](Args.java:1657) Active node size: 0
16:48:30.934 INFO  [main] [app](Args.java:1658) Passive node size: 0
16:48:30.935 INFO  [main] [app](Args.java:1659) FastForward node size: 0
16:48:30.935 INFO  [main] [app](Args.java:1660) FastForward node number: 3
16:48:30.935 INFO  [main] [app](Args.java:1661) Seed node size: 1
16:48:30.935 INFO  [main] [app](Args.java:1662) Max connection: 30
16:48:30.935 INFO  [main] [app](Args.java:1663) Min connection: 8
16:48:30.935 INFO  [main] [app](Args.java:1664) Min active connection: 3
16:48:30.935 INFO  [main] [app](Args.java:1665) Max connection with same IP: 2
16:48:30.935 INFO  [main] [app](Args.java:1666) Solidity threads: 8
16:48:30.935 INFO  [main] [app](Args.java:1667) Trx reference block: solid
16:48:30.935 INFO  [main] [app](Args.java:1668) Open full tcp disconnect: true
16:48:30.935 INFO  [main] [app](Args.java:1669) Node detect enable: false
16:48:30.935 INFO  [main] [app](Args.java:1670) Node effective check enable: false
16:48:30.935 INFO  [main] [app](Args.java:1671) Rate limiter global qps: 50000
16:48:30.936 INFO  [main] [app](Args.java:1672) Rate limiter global ip qps: 10000
16:48:30.936 INFO  [main] [app](Args.java:1673) ************************ Backup config ************************
16:48:30.936 INFO  [main] [app](Args.java:1674) Backup priority: 8
16:48:30.936 INFO  [main] [app](Args.java:1675) Backup listen port: 10001
16:48:30.936 INFO  [main] [app](Args.java:1676) Backup listen keepAliveInterval: 3000
16:48:30.936 INFO  [main] [app](Args.java:1677) Backup member size: 0
16:48:30.936 INFO  [main] [app](Args.java:1678) ************************ Code version *************************
16:48:30.936 INFO  [main] [app](Args.java:1679) Code version : 4.7.2
16:48:30.937 INFO  [main] [app](Args.java:1680) Version code: 18031
16:48:30.937 INFO  [main] [app](Args.java:1681) ************************ DB config *************************
16:48:30.937 INFO  [main] [app](Args.java:1682) DB engine : LEVELDB
16:48:30.937 INFO  [main] [app](Args.java:1683) Snapshot max flush count: 1
16:48:30.937 INFO  [main] [app](Args.java:1684) ***************************************************************
16:48:30.937 INFO  [main] [app](Args.java:1685) ************************ shutDown config *************************
16:48:30.937 INFO  [main] [app](Args.java:1686) ShutDown blockTime  : null
16:48:30.937 INFO  [main] [app](Args.java:1687) ShutDown blockHeight : -1
16:48:30.938 INFO  [main] [app](Args.java:1688) ShutDown blockCount : -1
16:48:30.938 INFO  [main] [app](Args.java:1689) ***************************************************************
16:48:30.938 INFO  [main] [app](Args.java:1690) 

16:48:30.938 INFO  [main] [app](FullNode.java:71) not in debug mode, it will check energy time
16:48:33.668 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB account open success with writeBufferSize 64 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.705 INFO  [main] [app](DefaultConfig.java:51) key-value data source created.
16:48:33.712 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB tmp open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.734 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB accountTrie open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.754 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB balance-trace open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.764 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB account-trace open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.783 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB properties open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.881 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB account-asset open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.887 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB block open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.895 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB witness open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.904 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB asset-issue open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.912 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB asset-issue-v2 open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.920 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB block-index open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.929 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB accountid-index open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.936 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB account-index open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.945 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB witness_schedule open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.952 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB votes open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.961 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB proposal open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.970 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB exchange open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.978 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB exchange-v2 open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.985 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB market_account open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:33.992 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB market_order open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.001 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB market_pair_price_to_order open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.009 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB market_pair_to_price open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.016 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB abi open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.024 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB code open success with writeBufferSize 64 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.031 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB contract open success with writeBufferSize 64 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.038 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB contract-state open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.045 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB DelegatedResource open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.052 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB DelegatedResourceAccountIndex open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.059 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB storage-row open success with writeBufferSize 64 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.067 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB nullifier open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.073 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB zkProof open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.079 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB IncrementalMerkleTree open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.086 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB delegation open success with writeBufferSize 64 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.093 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB block_KDB open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.102 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB common open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.109 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB trans open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.117 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB transactionRetStore open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.124 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB recent-block open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.131 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB recent-transaction open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.138 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB transactionHistoryStore open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.144 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB common-database open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.150 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB pbft-sign-data open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.157 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB tree-block-index open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.164 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB section-bloom open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.212 INFO  [main] [DB](LevelDbDataSourceImpl.java:147) DB trans-cache open success with writeBufferSize 16 M, cacheSize 32 M, maxOpenFiles 100.
16:48:34.235 INFO  [main] [DB](SnapshotManager.java:512) checkpoint v1 recover success
16:48:34.238 INFO  [main] [DB](TxCacheDB.java:106) Load cache from persistentStore, db: 0, filter: 0, filter-fpp: 0.0, cost: 1 ms.
16:48:34.239 INFO  [main] [DB](TxCacheDB.java:129) Load cache from recentTransactionStore, filter: 0, filter-fpp: 0.0, cost: 1 ms.
16:48:34.318 INFO  [main] [DB](Manager.java:2384) Load trans for lite node.
16:48:34.318 INFO  [main] [DB](Manager.java:2407) Load trans complete, trans: 0, from = 9223372036854775807, to = -9223372036854775808.
16:48:34.318 INFO  [main] [DB](Manager.java:518) Current headNum is: 0.
16:48:34.318 INFO  [main] [DB](Manager.java:520) Node type is: full.
16:48:34.619 INFO  [main] [o.r.Reflections](Reflections.java:232) Reflections took 290 ms to scan 1 urls, producing 489 keys and 2813 values 
16:48:34.724 INFO  [main] [o.s.b.f.a.AutowiredAnnotationBeanPostProcessor](AutowiredAnnotationBeanPostProcessor.java:478) Autowired annotation is not supported on static fields: private static final java.util.concurrent.ConcurrentHashMap org.tron.core.config.args.Args.solidityContractLogTriggerMap
16:48:34.724 INFO  [main] [o.s.b.f.a.AutowiredAnnotationBeanPostProcessor](AutowiredAnnotationBeanPostProcessor.java:478) Autowired annotation is not supported on static fields: private static final java.util.concurrent.ConcurrentHashMap org.tron.core.config.args.Args.solidityContractEventTriggerMap
16:48:35.187 INFO  [main] [app](FullNode.java:143) ********register application shutdown hook********
16:48:35.188 INFO  [main] [API](FullNodeHttpApiService.java:322) init zk param begin
16:48:35.494 INFO  [main] [API](FullNodeHttpApiService.java:343) init zk param done
16:48:35.660 INFO  [main] [API](RpcApiService.java:266) RpcApiService has started, listening on 16669
16:48:35.664 INFO  [main] [o.e.j.u.log](Log.java:170) Logging initialized @5725ms to org.eclipse.jetty.util.log.Slf4jLog
16:48:35.723 INFO  [main] [o.e.j.s.Server](Server.java:375) jetty-9.4.49.v20220914; built: 2022-09-14T01:07:36.601Z; git: 4231a3b2e4cb8548a412a789936d640a97b1aa0a; jvm 1.8.0_382-8u382-ga-1~22.04.1-b05
16:48:35.741 INFO  [main] [o.e.j.s.session](DefaultSessionIdManager.java:334) DefaultSessionIdManager workerName=node0
16:48:35.741 INFO  [main] [o.e.j.s.session](DefaultSessionIdManager.java:339) No SessionScavenger set, using defaults
16:48:35.742 INFO  [main] [o.e.j.s.session](HouseKeeper.java:132) node0 Scavenging every 600000ms
16:48:35.753 INFO  [main] [o.e.j.s.h.ContextHandler](ContextHandler.java:921) Started o.e.j.s.ServletContextHandler@630e5010{/,null,AVAILABLE}
16:48:35.761 INFO  [main] [API](RpcApiServiceOnSolidity.java:139) RpcApiServiceOnSolidity started, listening on 50061
16:48:35.762 INFO  [main] [o.e.j.s.Server](Server.java:375) jetty-9.4.49.v20220914; built: 2022-09-14T01:07:36.601Z; git: 4231a3b2e4cb8548a412a789936d640a97b1aa0a; jvm 1.8.0_382-8u382-ga-1~22.04.1-b05
16:48:35.764 INFO  [main] [o.e.j.s.session](DefaultSessionIdManager.java:334) DefaultSessionIdManager workerName=node0
16:48:35.764 INFO  [main] [o.e.j.s.session](DefaultSessionIdManager.java:339) No SessionScavenger set, using defaults
16:48:35.764 INFO  [main] [o.e.j.s.session](HouseKeeper.java:132) node0 Scavenging every 660000ms
16:48:35.766 INFO  [main] [o.e.j.s.h.ContextHandler](ContextHandler.java:921) Started o.e.j.s.ServletContextHandler@34c07ecc{/,null,AVAILABLE}
16:48:35.771 INFO  [main] [API](RpcApiServiceOnPBFT.java:139) RpcApiServiceOnPBFT started, listening on 50071
16:48:35.772 WARN  [main] [o.e.j.s.h.ContextHandler](ContextHandler.java:1667) o.e.j.s.ServletContextHandler@5f2ad3d5{/,null,STOPPED} contextPath ends with /
16:48:35.773 INFO  [main] [o.e.j.s.Server](Server.java:375) jetty-9.4.49.v20220914; built: 2022-09-14T01:07:36.601Z; git: 4231a3b2e4cb8548a412a789936d640a97b1aa0a; jvm 1.8.0_382-8u382-ga-1~22.04.1-b05
16:48:35.774 INFO  [main] [o.e.j.s.session](DefaultSessionIdManager.java:334) DefaultSessionIdManager workerName=node0
16:48:35.774 INFO  [main] [o.e.j.s.session](DefaultSessionIdManager.java:339) No SessionScavenger set, using defaults
16:48:35.774 INFO  [main] [o.e.j.s.session](HouseKeeper.java:132) node0 Scavenging every 660000ms
16:48:35.776 INFO  [main] [o.e.j.s.h.ContextHandler](ContextHandler.java:921) Started o.e.j.s.ServletContextHandler@5f2ad3d5{/walletpbft,null,AVAILABLE}
16:48:36.287 WARN  [main] [net](NetUtil.java:100) Fail to get ipv6 by https://v6.ident.me, cause:Network is unreachable (connect failed)
16:48:36.504 INFO  [main] [net](NodePersistService.java:63) Read node from store: 0 nodes
16:48:36.505 INFO  [main] [net](TronNetService.java:192) Local ipv4: 122.176.76.141
16:48:36.506 INFO  [main] [net](TronNetService.java:193) Local ipv6: null
16:48:36.559 INFO  [PeerServer] [net](PeerServer.java:56) TCP listener started, bind port 16666
16:48:36.561 INFO  [main] [net](PublishService.java:106) Dns publish service is disable
16:48:36.562 INFO  [main] [net](P2pService.java:31) P2p service started
16:48:36.575 INFO  [main] [net](RelayService.java:76) Fast forward config, isWitness: false, keySize: 0, fastForwardNodes: 0
16:48:36.575 INFO  [main] [net](EffectiveCheckService.java:59) EffectiveCheckService is disabled
16:48:36.575 INFO  [main] [net](TronNetService.java:98) Net service start successfully
16:48:36.575 WARN  [main] [app](LocalWitnesses.java:104) PrivateKey is null.
16:48:36.575 WARN  [main] [consensus](ConsensusService.java:73) Witness 41dcc703c0e500b653ca82273b7bfad8045d85a470 is not in witnessStore.
16:48:36.577 ERROR [PeerServer] [net](PeerServer.java:68) Start TCP server failed
java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:461)
    at sun.nio.ch.Net.bind(Net.java:453)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:222)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
    at io.netty.handler.logging.LoggingHandler.bind(LoggingHandler.java:191)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:464)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Thread.java:750)
16:48:36.584 ERROR [DiscoverServer] [net](DiscoverServer.java:85) Start discovery server with port 16666 failed
java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:461)
    at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:698)
    at io.netty.util.internal.SocketUtils$6.run(SocketUtils.java:123)
    at io.netty.util.internal.SocketUtils$6.run(SocketUtils.java:120)
    at java.security.AccessController.doPrivileged(Native Method)
    at io.netty.util.internal.SocketUtils.bind(SocketUtils.java:120)
    at io.netty.channel.socket.nio.NioDatagramChannel.doBind0(NioDatagramChannel.java:198)
    at io.netty.channel.socket.nio.NioDatagramChannel.doBind(NioDatagramChannel.java:193)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
    at io.netty.channel.ChannelDuplexHandler.bind(ChannelDuplexHandler.java:38)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
    at io.netty.channel.ChannelOutboundHandlerAdapter.bind(ChannelOutboundHandlerAdapter.java:35)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:464)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Thread.java:750)
16:48:36.587 INFO  [main] [consensus](ConsensusService.java:84) consensus service start success
16:49:06.582 INFO  [pool-66-thread-1] [net](PeerManager.java:147) 

============ Peer stats: all 0, active 0, passive 0

16:49:16.583 INFO  [pool-66-thread-1] [net](PeerManager.java:147) 

============ Peer stats: all 0, active 0, passive 0

16:49:26.583 INFO  [pool-66-thread-1] [net](PeerManager.java:147) 

============ Peer stats: all 0, active 0, passive 0

16:49:36.572 INFO  [NodePersistTaskTimer] [net](NodePersistService.java:88) Write nodes to store: 0/0 nodes
16:49:36.583 INFO  [pool-66-thread-1] [net](PeerManager.java:147) 

============ Peer stats: all 0, active 0, passive 0

16:49:46.584 INFO  [pool-66-thread-1] [net](PeerManager.java:147) 

============ Peer stats: all 0, active 0, passive 0

16:49:56.584 INFO  [pool-66-thread-1] [net](PeerManager.java:147) ```
xxo1shine commented 1 year ago

@SukiratWarring The network startup failed, Address already in use, it may be that the process has not completely exited and started the node.

SukiratWarring commented 1 year ago

@ss3344520 i checked and found out that the processes are running while i run the SR node,and in the modification section Tron private chain it says nothing to change it in the full node config file. These are my config files fullnode_config.txt supernode_config.txt

xxo1shine commented 1 year ago

@SukiratWarring The port numbers in your configuration files are the same. If you deploy multiple nodes on the same machine, you need to modify the port number.

SukiratWarring commented 1 year ago

@ss3344520 yea changed the listen.port and it works great,thanks!