Archive node sync is broken #1535

Closed
opened 2025-12-28 17:16:46 +00:00 by sami · 1 comment
Owner

Originally created by @AnnaShaleva on GitHub (Jul 14, 2025).

Current Behavior

Clear node doesn't start sync (and doesn't even try to connect to peers) with both NeoFSBlockFetcher enabled/disabled:

anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ ./bin/neo-go node -d
2025-07-14T15:03:52.418+0300	INFO	initial gas supply is not set or wrong, setting default value	{"InitialGASSupply": "52000000"}
2025-07-14T15:03:52.418+0300	INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2025-07-14T15:03:52.418+0300	INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee": 900000000000}
2025-07-14T15:03:52.418+0300	INFO	Genesis MaxTraceableBlocks is not set or wrong, using default value	{"Genesis MaxTraceableBlocks": 200000}
2025-07-14T15:03:52.418+0300	INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2025-07-14T15:03:52.418+0300	INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2025-07-14T15:03:52.418+0300	INFO	Genesis MaxValidUntilBlockIncrement is not set or wrong, using default value	{"Genesis MaxValidUntilBlockIncrement": 5760}
2025-07-14T15:03:52.418+0300	INFO	Hardforks are not set, enabling all stable ones	{"latest": "Echidna"}
2025-07-14T15:03:52.421+0300	INFO	restoring blockchain	{"version": "0.2.12"}
2025-07-14T15:03:52.422+0300	DEBUG	initializing caches	{"blockHeight": 0}
2025-07-14T15:03:52.423+0300	INFO	starting service	{"service": "Prometheus", "endpoint": ":2112"}
2025-07-14T15:03:52.424+0300	INFO	service hasn't started since it's disabled	{"service": "Pprof"}
2025-07-14T15:03:52.424+0300	INFO	ExtensiblePoolSize is not set or wrong, using default value	{"ExtensiblePoolSize": 20}
2025-07-14T15:03:52.424+0300	INFO	BroadcastTxsBatchDelay is not set or wrong, using default value	{"BroadcastTxsBatchDelay": "50ms"}
2025-07-14T15:03:52.424+0300	INFO	SessionPoolSize is not set or wrong, setting default value	{"SessionPoolSize": 20}
2025-07-14T15:03:52.424+0300	INFO	MaxIteratorResultItems is not set or wrong, setting default value	{"MaxIteratorResultItems": 100}
2025-07-14T15:03:52.424+0300	INFO	MaxFindResultItems is not set or wrong, setting default value	{"MaxFindResultItems": 100}
2025-07-14T15:03:52.424+0300	INFO	MaxFindStorageResultItems is not set or wrong, setting default value	{"MaxFindStorageResultItems": 50}
2025-07-14T15:03:52.424+0300	INFO	MaxNEP11Tokens is not set or wrong, setting default value	{"MaxNEP11Tokens": 100}
2025-07-14T15:03:52.424+0300	INFO	MaxRequestBodyBytes is not set or wong, setting default value	{"MaxRequestBodyBytes": 5242880}
2025-07-14T15:03:52.424+0300	INFO	MaxRequestHeaderBytes is not set or wong, setting default value	{"MaxRequestHeaderBytes": 1048576}
2025-07-14T15:03:52.424+0300	INFO	MaxWebSocketClients is not set or wrong, setting default value	{"MaxWebSocketClients": 64}
2025-07-14T15:03:52.424+0300	INFO	MaxWebSocketFeeds is not set or wrong, setting default value	{"MaxWebSocketFeeds": 16}
2025-07-14T15:03:52.424+0300	INFO	node started	{"blockHeight": 0, "headerHeight": 0}

    _   ____________        __________
   / | / / ____/ __ \      / ____/ __ \
  /  |/ / __/ / / / /_____/ / __/ / / /
 / /|  / /___/ /_/ /_____/ /_/ / /_/ /
/_/ |_/_____/\____/      \____/\____/

/NEO-GO:0.110.1-pre-45-g4f05526f/

2025-07-14T15:03:52.424+0300	INFO	starting rpc-server	{"endpoint": ":20331"}

Expected Behavior

Connect to peers, start P2P synchronization (in NeoFSBlockFetcher-disabled mode). Or fetch blocks from NeoFS.

Steps to Reproduce

Disable NeoFSBlockFetcher, use P2P sync:

anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ git diff
diff --git a/config/protocol.mainnet.yml b/config/protocol.mainnet.yml
index 3d3ba9d3c..1c421e307 100644
--- a/config/protocol.mainnet.yml
+++ b/config/protocol.mainnet.yml
@@ -102,13 +102,13 @@ ApplicationConfiguration:
     Addresses:
       - ":2113"
   NeoFSBlockFetcher:
-    Enabled: true
+    Enabled: false
     Addresses:
       - st1.storage.fs.neo.org:8080
       - st2.storage.fs.neo.org:8080
       - st3.storage.fs.neo.org:8080
       - st4.storage.fs.neo.org:8080

Start the node:

./bin/neo-go node -d
Originally created by @AnnaShaleva on GitHub (Jul 14, 2025). ## Current Behavior Clear node doesn't start sync (and doesn't even try to connect to peers) with both NeoFSBlockFetcher enabled/disabled: ``` anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ ./bin/neo-go node -d 2025-07-14T15:03:52.418+0300 INFO initial gas supply is not set or wrong, setting default value {"InitialGASSupply": "52000000"} 2025-07-14T15:03:52.418+0300 INFO MaxBlockSize is not set or wrong, setting default value {"MaxBlockSize": 262144} 2025-07-14T15:03:52.418+0300 INFO MaxBlockSystemFee is not set or wrong, setting default value {"MaxBlockSystemFee": 900000000000} 2025-07-14T15:03:52.418+0300 INFO Genesis MaxTraceableBlocks is not set or wrong, using default value {"Genesis MaxTraceableBlocks": 200000} 2025-07-14T15:03:52.418+0300 INFO MaxTransactionsPerBlock is not set or wrong, using default value {"MaxTransactionsPerBlock": 512} 2025-07-14T15:03:52.418+0300 INFO MaxValidUntilBlockIncrement is not set or wrong, using default value {"MaxValidUntilBlockIncrement": 5760} 2025-07-14T15:03:52.418+0300 INFO Genesis MaxValidUntilBlockIncrement is not set or wrong, using default value {"Genesis MaxValidUntilBlockIncrement": 5760} 2025-07-14T15:03:52.418+0300 INFO Hardforks are not set, enabling all stable ones {"latest": "Echidna"} 2025-07-14T15:03:52.421+0300 INFO restoring blockchain {"version": "0.2.12"} 2025-07-14T15:03:52.422+0300 DEBUG initializing caches {"blockHeight": 0} 2025-07-14T15:03:52.423+0300 INFO starting service {"service": "Prometheus", "endpoint": ":2112"} 2025-07-14T15:03:52.424+0300 INFO service hasn't started since it's disabled {"service": "Pprof"} 2025-07-14T15:03:52.424+0300 INFO ExtensiblePoolSize is not set or wrong, using default value {"ExtensiblePoolSize": 20} 2025-07-14T15:03:52.424+0300 INFO BroadcastTxsBatchDelay is not set or wrong, using default value {"BroadcastTxsBatchDelay": "50ms"} 2025-07-14T15:03:52.424+0300 INFO SessionPoolSize is not set or wrong, setting default value {"SessionPoolSize": 20} 2025-07-14T15:03:52.424+0300 INFO MaxIteratorResultItems is not set or wrong, setting default value {"MaxIteratorResultItems": 100} 2025-07-14T15:03:52.424+0300 INFO MaxFindResultItems is not set or wrong, setting default value {"MaxFindResultItems": 100} 2025-07-14T15:03:52.424+0300 INFO MaxFindStorageResultItems is not set or wrong, setting default value {"MaxFindStorageResultItems": 50} 2025-07-14T15:03:52.424+0300 INFO MaxNEP11Tokens is not set or wrong, setting default value {"MaxNEP11Tokens": 100} 2025-07-14T15:03:52.424+0300 INFO MaxRequestBodyBytes is not set or wong, setting default value {"MaxRequestBodyBytes": 5242880} 2025-07-14T15:03:52.424+0300 INFO MaxRequestHeaderBytes is not set or wong, setting default value {"MaxRequestHeaderBytes": 1048576} 2025-07-14T15:03:52.424+0300 INFO MaxWebSocketClients is not set or wrong, setting default value {"MaxWebSocketClients": 64} 2025-07-14T15:03:52.424+0300 INFO MaxWebSocketFeeds is not set or wrong, setting default value {"MaxWebSocketFeeds": 16} 2025-07-14T15:03:52.424+0300 INFO node started {"blockHeight": 0, "headerHeight": 0} _ ____________ __________ / | / / ____/ __ \ / ____/ __ \ / |/ / __/ / / / /_____/ / __/ / / / / /| / /___/ /_/ /_____/ /_/ / /_/ / /_/ |_/_____/\____/ \____/\____/ /NEO-GO:0.110.1-pre-45-g4f05526f/ 2025-07-14T15:03:52.424+0300 INFO starting rpc-server {"endpoint": ":20331"} ``` ## Expected Behavior Connect to peers, start P2P synchronization (in NeoFSBlockFetcher-disabled mode). Or fetch blocks from NeoFS. ## Steps to Reproduce Disable NeoFSBlockFetcher, use P2P sync: ``` anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ git diff diff --git a/config/protocol.mainnet.yml b/config/protocol.mainnet.yml index 3d3ba9d3c..1c421e307 100644 --- a/config/protocol.mainnet.yml +++ b/config/protocol.mainnet.yml @@ -102,13 +102,13 @@ ApplicationConfiguration: Addresses: - ":2113" NeoFSBlockFetcher: - Enabled: true + Enabled: false Addresses: - st1.storage.fs.neo.org:8080 - st2.storage.fs.neo.org:8080 - st3.storage.fs.neo.org:8080 - st4.storage.fs.neo.org:8080 ``` Start the node: ``` ./bin/neo-go node -d ```
sami 2025-12-28 17:16:46 +00:00
  • closed this issue
  • added the
    bug
    S4
    I4
    U0
    labels
Author
Owner

@AnnaShaleva commented on GitHub (Jul 16, 2025):

Not a bug. The command was used without network specified: ./bin/neo-go node, and default network is privnet:
nspcc-dev/neo-go@d5a5706b4f/cli/options/options.go (L175)

So the node is trying to connect to privnet (which was down), not mainnet.

@AnnaShaleva commented on GitHub (Jul 16, 2025): Not a bug. The command was used without network specified: `./bin/neo-go node`, and default network is privnet: https://github.com/nspcc-dev/neo-go/blob/d5a5706b4f8cee5582abd692e140d7a3b6c9f880/cli/options/options.go#L175 So the node is trying to connect to privnet (which was down), not mainnet.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#1535
No description provided.