Hi,
I cannot get superhighway84 to go thru the first run. This is what gets output:
2022/05/30 19:42:53 initializing logger ...
2022/05/30 19:42:53 initializing cache ...
2022/05/30 19:42:53 initializing TUI and loading database, please wait ...
2022/05/30 19:42:53 initializing database ...
2022/05/30 19:42:54 connecting database ...
2022/05/30 19:52:54 unable to open database: unable to fetch database manifest: failed to get block for bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4: context deadline exceeded
panic: unable to open database: unable to fetch database manifest: failed to get block for bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4: context deadline exceeded
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1292fe7]
goroutine 1 [running]:
github.com/mrusme/superhighway84/database.(*Database).Disconnect(0xc00218d2c0)
/home/runner/work/superhighway84/superhighway84/database/database.go:224 +0x27
panic({0x13e68e0, 0xc004195c40})
/opt/hostedtoolcache/go/1.18.1/x64/src/runtime/panic.go:838 +0x207
log.Panicln({0xc0055ebf48?, 0xc002030e70?, 0x1832397?})
/opt/hostedtoolcache/go/1.18.1/x64/src/log/log.go:399 +0x65
main.main()
/home/runner/work/superhighway84/superhighway84/superhighway84.go:124 +0x8dd
The log file says:
2022-05-30T20:32:19.632+0200 DEBUG database/database.go:148 getting config root path ...
2022-05-30T20:32:19.634+0200 DEBUG database/database.go:154 setting up plugins ...
2022-05-30T20:32:19.634+0200 DEBUG database/database.go:159 creating IPFS node ...
2022-05-30T20:32:20.287+0200 INFO database/database.go:171 connecting to peers ...
2022-05-30T20:32:20.635+0200 DEBUG database/database.go:124 connected! {"peerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"}
2022-05-30T20:32:20.635+0200 DEBUG database/database.go:124 connected! {"peerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"}
2022-05-30T20:32:20.635+0200 DEBUG database/database.go:124 connected! {"peerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"}
2022-05-30T20:32:20.635+0200 DEBUG database/database.go:124 connected! {"peerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"}
2022-05-30T20:32:20.635+0200 DEBUG database/database.go:124 connected! {"peerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"}
2022-05-30T20:32:20.635+0200 DEBUG database/database.go:177 connected to peer!
2022-05-30T20:32:20.635+0200 INFO database/database.go:182 initializing database connection ...
2022-05-30T20:32:20.635+0200 DEBUG database/database.go:51 initializing NewOrbitDB ...
2022-05-30T20:32:20.706+0200 DEBUG database/database.go:79 initializing OrbitDB.Docs ...
2022-05-30T20:32:20.706+0200 DEBUG baseorbitdb/orbitdb.go:531 open orbitdb store {"address": "/orbitdb/bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4/superhighway84"}
2022-05-30T20:32:20.707+0200 DEBUG baseorbitdb/orbitdb.go:553 Open database {"dbAddress": "/orbitdb/bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4/superhighway84"}
2022-05-30T20:32:20.707+0200 DEBUG baseorbitdb/orbitdb.go:560 Look from {"directory": "/home/milan/.cache/superhighway84/database"}
2022-05-30T20:32:20.707+0200 DEBUG baseorbitdb/orbitdb.go:575 address '/orbitdb/bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4/superhighway84' is valid
2022-05-30T20:32:20.707+0200 DEBUG cacheleveldown/leveldown.go:88 opening cache db {"path": "/home/milan/.cache/superhighway84/database/bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4/superhighway84"}
2022-05-30T20:52:20.636+0200 ERROR database/database.go:186 %s {"error": "unable to open database: unable to fetch database manifest: failed to get block for bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4: context deadline exceeded", "errorVerbose": "failed to get block for bafyreifdpagppa7ve45odxuvudz5snbzcybwyfer777huckl4li4zbc5k4: context deadline exceeded\nunable to fetch database manifest\nberty.tech/go-orbit-db/baseorbitdb.(*orbitDB).Open\n\t/home/milan/go/pkg/mod/berty.tech/[email protected]/baseorbitdb/orbitdb.go:597\nberty.tech/go-orbit-db.(*orbitDB).Docs\n\t/home/milan/go/pkg/mod/berty.tech/[email protected]/orbitdb.go:143\ngithub.com/mrusme/superhighway84/database.(*Database).init\n\t/home/milan/work/superhighway84-0.2.0/database/database.go:80\ngithub.com/mrusme/superhighway84/database.(*Database).Connect\n\t/home/milan/work/superhighway84-0.2.0/database/database.go:184\nmain.main\n\t/home/milan/work/superhighway84-0.2.0/superhighway84.go:108\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:255\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581\nunable to open database\nberty.tech/go-orbit-db.(*orbitDB).Docs\n\t/home/milan/go/pkg/mod/berty.tech/[email protected]/orbitdb.go:145\ngithub.com/mrusme/superhighway84/database.(*Database).init\n\t/home/milan/work/superhighway84-0.2.0/database/database.go:80\ngithub.com/mrusme/superhighway84/database.(*Database).Connect\n\t/home/milan/work/superhighway84-0.2.0/database/database.go:184\nmain.main\n\t/home/milan/work/superhighway84-0.2.0/superhighway84.go:108\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:255\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581"}
github.com/mrusme/superhighway84/database.(*Database).Connect
/home/milan/work/superhighway84-0.2.0/database/database.go:186
main.main
/home/milan/work/superhighway84-0.2.0/superhighway84.go:108
runtime.main
/usr/local/go/src/runtime/proc.go:255
The database LOG file in .cache says:
=============== May 30, 2022 (CEST) ===============
19:42:54.143405 [email protected] F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·Se
qNum T·TimeElapsed
19:42:54.161259 [email protected] opening
19:42:54.161488 [email protected] F·[] S·0B[] Sc·[]
19:42:54.168994 [email protected] F·2 G·0
19:42:54.169012 [email protected] done T·7.728795ms
This is version 0.2.0 and IPFS is 0.12.2 running on Ubuntu 20.04.4.
I ran ipfs init and accepted all the default values offered by superhighway84.
I've tried everything I could find without effect:
- Setting ulimit to 2048
- Setting net.core.rmem_max to 2500000
- Setting ipfs lowpower
- Also tried it on macOS
- Tried the previous version with older IPFS, also unsuccessful
- Tried compiled and prebuilt
- Tried increasing the timeouts in database.go from 600 to 1200
What else can I try? I would appreciate some hints.
Thnx.
bug