Closed ribasushi closed 3 years ago
Commenting out this line: https://github.com/filecoin-project/lotus/blob/v1.6.0/node/builder.go#L704
Gets us to:
...
2021/04/06 13:42:21 [Fx] PROVIDE fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
2021/04/06 13:42:21 [Fx] PROVIDE fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
2021/04/06 13:42:21 [Fx] INVOKE github.com/filecoin-project/lotus/node/modules.MemoryWatchdog()
2021/04/06 13:42:21 [Fx] Error during "github.com/filecoin-project/lotus/node/modules.MemoryWatchdog()" invoke: cycle detected in dependency graph: dtypes.ChainBlockstore provided by "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_arm64.s:12)
depends on dtypes.ChainBlockstore provided by "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_arm64.s:12)
ERROR: initializing node: starting node: cycle detected in dependency graph: dtypes.ChainBlockstore provided by "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_arm64.s:12)
depends on dtypes.ChainBlockstore provided by "reflect".makeFuncStub (/usr/local/go/src/reflect/asm_arm64.s:12)
I assume something splitstore-related?
@vyzo @raulk thoughts on ^ ?
DI seems to fall into a loop; @magik6k might be the only person who really understands how the DI contraptions work.
@ribasushi does this node have the splitstore enabled?
@raulk No, stock config.
same error
DI seems to fall into a loop; @magik6k might be the only person who really understands how the DI contraptions work.
@magik6k gentle ping^
Describe the bug Running
LOTUS_ENABLE_CHAINSTORE_FALLBACK=1 lotus daemon
crashes on startupVersion (run
lotus version
): Stock v1.6.0Logs
Complete log from startup to crash
``` 2021-04-06T13:36:45.537Z INFO main lotus/daemon.go:214 lotus repo: /srv/lotus/.lotus 2021-04-06T13:36:45.537Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-8-2-b62098629d07946e9028127e70295ed996fe3ed25b0f9f88eb610a0ab4385a3c.vk is ok 2021-04-06T13:36:45.537Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-5294475db5237a2e83c3e52fd6c2b03859a1831d45ed08c4f35dbf9a803165a9.vk is ok 2021-04-06T13:36:45.537Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-0170db1f394b35d995252228ee359194b13199d259380541dc529fb0099096b0.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-0-0-sha256_hasher-ecd683648512ab1765faa2a5f14bab48f676e633467f0aa8aad4b55dcb0652bb.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-3ea05428c9d11689f23529cde32fd30aabd50f7d2c93657c1d3650bca3e8ea9e.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-8-0-sha256_hasher-82a357d2f2ca81dc61bb45f4a762807aedee1b0a53fd6c4e77b46a01bfef7820.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-0-0-sha256_hasher-6babf46ce344ae495d558e7770a585b2382d54f225af8ed0397b8be7c3fcd472.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-0-0-sha256_hasher-032d3138d22506ec0082ed72b2dcba18df18477904e35bafee82b3793b06832f.vk is ok 2021-04-06T13:36:45.537Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-8-0-559e581f022bb4e4ec6e719e563bf0e026ad6de42e56c18714a2c692b1b88d7e.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-7d739b8cf60f1b0709eeebee7730e297683552e4b69cab6984ec0285663c5781.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-0cfb4f178bbb71cf2ecfcd42accce558b27199ab4fb59cb78f2483fe21ef36d9.vk is ok 2021-04-06T13:36:45.538Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-8-2-sha256_hasher-96f1b4a04c5c51e4759bbf224bbc2ef5a42c7100f16ec0637123f16a845ddfb2.vk is ok 2021-04-06T13:36:45.537Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-50c7368dea9593ed0989e70974d28024efa9d156d585b7eea1be22b2e753f331.vk is ok 2021-04-06T13:36:45.545Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-8-0-0377ded656c6f524f1618760bffe4e0a1c51d5a70c4509eedae8a27555733edc.vk is ok 2021-04-06T13:36:45.545Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:138 Parameter file /srv/lotus/fil_caches/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-8-2-2627e4006b67f99cef990c0a47d5426cb7ab0a0ad58fc1061547bf2d28b09def.vk is ok 2021-04-06T13:36:45.545Z INFO build go-paramfetch@v0.0.2-0.20200701152213-3e0f0afdc261/paramfetch.go:162 parameter and key-fetching complete 2021-04-06T13:36:45.550Z INFO modules modules/core.go:64 memory limits initialized {"max_mem_heap": 0, "total_system_mem": 267082211328, "effective_mem_limit": 267082211328} 2021-04-06T13:36:45.551Z WARN modules modules/core.go:124 failed to initialize cgroup-driven watchdog; err: failed to load memory cgroup stats: open /sys/fs/cgroup/memory/user.slice/user-1001.slice/session-5.scope/memory.memsw.usage_in_bytes: no such file or directory 2021-04-06T13:36:45.551Z WARN modules modules/core.go:125 trying a system-driven watchdog 2021-04-06T13:36:45.551Z INFO watchdog go-watchdog@v1.0.1/watermarks.go:16 initialized watermark watchdog policy; watermarks: []; thresholds: [133541105664 160249326796 186957547929 227019879628 240373990195 247051045478 253728100761] 2021-04-06T13:36:45.551Z INFO watchdog go-watchdog@v1.0.1/watchdog.go:457 initialized heap profile capture; threshold: 0.900000; max captures: 10; dir: /srv/lotus/.lotus/heapprof 2021-04-06T13:36:45.551Z INFO modules modules/core.go:130 initialized system-driven watchdog 2021-04-06T13:36:45.559Z INFO badger v2@v2.2007.2/levels.go:183 All 0 tables opened in 0s 2021-04-06T13:36:45.559Z INFO badger v2@v2.2007.2/value.go:1158 Replaying file id: 0 at offset: 0 2021-04-06T13:36:45.559Z INFO badger v2@v2.2007.2/value.go:1178 Replay took: 2.314µs 2021-04-06T13:36:45.561Z INFO badger v2@v2.2007.2/levels.go:183 All 1 tables opened in 0s 2021-04-06T13:36:45.561Z INFO badger v2@v2.2007.2/value.go:1158 Replaying file id: 0 at offset: 49876 2021-04-06T13:36:45.561Z INFO badger v2@v2.2007.2/value.go:1178 Replay took: 18.757µs 2021-04-06T13:36:45.561Z INFO backupds backupds/log.go:123 opening log {"file": "/srv/lotus/.lotus/kvlog/metadata/1617462230.log.cbor"} 2021-04-06T13:36:45.976Z INFO backupds backupds/log.go:174 log opened {"file": "/srv/lotus/.lotus/kvlog/metadata/1617462230.log.cbor", "openCount": 2, "logValues": 85043} 2021-04-06T13:36:45.977Z INFO backupds backupds/log.go:199 new log head {"loghead": "1617462230.log.cbor;f1ccf2fe-ce23-4a0f-955b-c4f6882a2db0;1617716205"} runtime: goroutine stack exceeds 1000000000-byte limit runtime: sp=0x402e9e0420 stack=[0x402e9e0000, 0x404e9e0000] fatal error: stack overflow runtime stack: runtime.throw(0x2a2243d, 0xe) /usr/local/go/src/runtime/panic.go:1116 +0x54 runtime.newstack() /usr/local/go/src/runtime/stack.go:1067 +0x600 runtime.morestack() /usr/local/go/src/runtime/asm_arm64.s:308 +0x70 goroutine 1 [running]: go.uber.org/dig.shallowCheckDependencies.func1(0x2e75020, 0x4001207440, 0xbdcb3fd31f4609b7) /srv/lotus/go/pkg/mod/go.uber.org/dig@v1.10.0/dig.go:743 +0x43c fp=0x402e9e0420 sp=0x402e9e0420 pc=0x11a8b3c go.uber.org/dig.paramVisitorFunc.Visit(0x400e429830, 0x2e75020, 0x4001207440, 0x0, 0x0) /srv/lotus/go/pkg/mod/go.uber.org/dig@v1.10.0/param.go:102 +0x38 fp=0x402e9e0450 sp=0x402e9e0420 pc=0x11a1f78 go.uber.org/dig.walkParam(0x2e75020, 0x4001207440, 0x2e434e0, 0x400e429830) /srv/lotus/go/pkg/mod/go.uber.org/dig@v1.10.0/param.go:117 +0x48 fp=0x402e9e0570 sp=0x402e9e0450 pc=0x11a2008 go.uber.org/dig.walkParam(0x2e74fa0, 0x400e429800, 0x2e434e0, 0x400e429830) /srv/lotus/go/pkg/mod/go.uber.org/dig@v1.10.0/param.go:131 +0x110 fp=0x402e9e0690 sp=0x402e9e0570 pc=0x11a20d0 go.uber.org/dig.shallowCheckDependencies(0x2e97ec0, 0x40005da3c0, 0x2e74fa0, 0x400e429800, 0x0, 0x40005da301) /srv/lotus/go/pkg/mod/go.uber.org/dig@v1.10.0/dig.go:743 +0xc0 fp=0x402e9e06d0 sp=0x402e9e0690 pc=0x119dfc0 go.uber.org/dig.(*node).Call(0x40000f1360, 0x2e97ec0, 0x40005da3c0, 0x2ead000, 0x27d1820) /srv/lotus/go/pkg/mod/go.uber.org/dig@v1.10.0/dig.go:694 +0x60 fp=0x402e9e0850 sp=0x402e9e06d0 pc=0x119d7a0 go.uber.org/dig.paramSingle.Build(0x0, 0x0, 0x0, 0x2ead000, 0x27d1820, 0x2e97ec0, 0x40005da3c0, 0x25f8160, 0x4001065890, 0x1, ...) /srv/lotus/go/pkg/mod/go.uber.org/dig@v1.10.0/param.go:245 +0x210 fp=0x402e9e0980 sp=0x402e9e0850 pc=0x11a2c20 go.uber.org/dig.(*paramSingle).Build(0x4001207440, 0x2e97ec0, 0x40005da3c0, 0x4012a13780, 0x1, 0x400e4297d0, 0x402e9e0a98, 0x119d7a0)