Node wont start after update to v1.6.4 (runtime error: invalid memory address or nil pointer dereference)

After the Docker image update earlier one of my nodes is having issues and wont start.
It hangs after printing the wallet address and then 1 minute later comes a bunch of memory related errors.

2020-06-30T17:48:58.850858497Z INFO	Configuration loaded	{"Location": "/app/config/config.yaml"},
2020-06-30T17:48:58.866402420Z WARN	Operator email address isn't specified.,
2020-06-30T17:48:58.866491982Z INFO	Operator wallet	{"Address": "*********************************"},
2020-06-30T17:50:04.982062613Z panic: runtime error: invalid memory address or nil pointer dereference [recovered],
2020-06-30T17:50:04.982103119Z 	panic: runtime error: invalid memory address or nil pointer dereference,
2020-06-30T17:50:04.982114804Z [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xd42bfd],
2020-06-30T17:50:04.982124500Z ,
2020-06-30T17:50:04.982143172Z github.com/spacemonkeygo/monkit/v3.newSpan.func1(0xc0003e96a0),
2020-06-30T17:50:04.982133908Z goroutine 1 [running]:,
2020-06-30T17:50:04.982174526Z 	/go/pkg/mod/github.com/spacemonkeygo/monkit/v3@v3.0.7-0.20200515175308-072401d8c752/ctx.go:147 +0x3a8,
2020-06-30T17:50:04.982186179Z panic(0xf6ef80, 0x19a3180),
2020-06-30T17:50:04.982195621Z 	/usr/local/go/src/runtime/panic.go:679 +0x1b2,
2020-06-30T17:50:04.982205177Z storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabase(0xc00045a0f0, 0x10e6724, 0x6, 0x19a3760, 0x3),
2020-06-30T17:50:04.982261778Z 	/go/src/storj.io/storj/storagenode/storagenodedb/database.go:384 +0xae,
2020-06-30T17:50:04.982224342Z storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabases(0xc00045a0f0, 0x10e401f, 0x4),
2020-06-30T17:50:04.982214784Z 	/go/src/storj.io/storj/storagenode/storagenodedb/database.go:395 +0x7d,
2020-06-30T17:50:04.982283510Z 	/go/src/storj.io/storj/storagenode/storagenodedb/database.go:187 +0x98d,
2020-06-30T17:50:04.982273692Z storj.io/storj/storagenode/storagenodedb.(*DB).openDatabases(0xc00045a0f0, 0xc00045a0f0, 0x10e7d39),
2020-06-30T17:50:04.982318817Z 	/go/src/storj.io/storj/storagenode/storagenodedb/database.go:172 +0x859,
2020-06-30T17:50:04.982308487Z storj.io/storj/storagenode/storagenodedb.New(0xc0004861e0, 0xc0003e7080, 0xe, 0xc00041e200, 0x1c, 0xc00041e240, 0x16, 0x0, 0x0, 0xc0003e7080, ...),
2020-06-30T17:50:04.982327836Z main.cmdRun(0x19af480, 0xc0001abc30, 0x0, 0xb, 0x0, 0x0),
2020-06-30T17:50:04.982336598Z 	/go/src/storj.io/storj/cmd/storagenode/main.go:147 +0x5c6,
2020-06-30T17:50:04.982345386Z storj.io/private/process.cleanup.func1.4(0x1288fa0, 0xc0004590e0),
2020-06-30T17:50:04.982354027Z 	/go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:359 +0x13b,
2020-06-30T17:50:04.982390098Z storj.io/private/process.cleanup.func1(0x19af480, 0xc0001abc30, 0x0, 0xb, 0x0, 0x0),
2020-06-30T17:50:04.982401036Z 	/go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:377 +0x21c2,
2020-06-30T17:50:04.982419117Z 	/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:840 +0x460,
2020-06-30T17:50:04.982410186Z github.com/spf13/cobra.(*Command).execute(0x19af480, 0xc0001abb80, 0xb, 0xb, 0x19af480, 0xc0001abb80),
2020-06-30T17:50:04.982427976Z github.com/spf13/cobra.(*Command).ExecuteC(0x19af1e0, 0xc0000ae100, 0x1137e68, 0x1),
2020-06-30T17:50:04.982436852Z 	/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317,
2020-06-30T17:50:04.982445739Z github.com/spf13/cobra.(*Command).Execute(...),
2020-06-30T17:50:04.982454486Z 	/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885,
2020-06-30T17:50:04.982485959Z storj.io/private/process.ExecWithCustomConfig(0x19af1e0, 0x0, 0x1137e68),
2020-06-30T17:50:04.982507028Z storj.io/private/process.ExecCustomDebug(...),
2020-06-30T17:50:04.982497728Z 	/go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:88 +0x192,
2020-06-30T17:50:04.982515713Z 	/go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:70,
2020-06-30T17:50:04.982524678Z main.main(),
2020-06-30T17:50:04.982533254Z 	/go/src/storj.io/storj/cmd/storagenode/main.go:320 +0x3e,
2020-06-30T17:50:06.224537968Z INFO	Configuration loaded	{"Location": "/app/config/config.yaml"},
2020-06-30T17:50:06.239490674Z WARN	Operator email address isn't specified.,
2020-06-30T17:50:06.239517924Z INFO	Operator wallet	{"Address": "*********************************"}

This is the same node that had other issues a couple of days ago, it probably isn’t related but could be…

Any help is appreciated! :slight_smile:

The similar error in this topic

Could you please post your config file? You can replace any personal information ofc.

I had more or less the same error. I probably rebooted my server during DB migrations.

I have left it running for a while. Then restarted it and know it runs smoothley again

Thanks all, but you can forget about my issue.
After a reboot the disk no longer spins up …
RIP 1 year+ node

Thanks for bringing this to our attention. After investigating the stack trace I was able to diagnose the nil pointer dereference. Seems this is caused when the sqlDB can’t be opened for some reason. With the fix we would be able to see what exact error occurred :slight_smile:

Sorry to hear about your node though

Nice! Glad I helped!

A post was merged into an existing topic: Storj v3 Storage Node service not starting

Since the update to 1.6.4 I see the following error every now and then

The node crashes, sometimes it is able to restart itself, sometimes i need to restart the server
My node has been running perfectly for more than a year. Anyone knows what is wrong?

  github.com/spf13/cobra.(*Command).ExecuteC(0x19af1e0, 0xc0000ba100, 0x1137e68, 0x1)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
storj.io/private/process.ExecWithCustomConfig(0x19af1e0, 0x0, 0x1137e68)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:88 +0x192
storj.io/private/process.ExecCustomDebug(...)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:70
main.main()
        /go/src/storj.io/storj/cmd/storagenode/main.go:320 +0x3e
2020-07-20T16:50:11.666Z        INFO    Configuration loaded    {"Location": "/app/config/config.yaml"}
2020-07-20T16:50:11.678Z        INFO    Operator email  {"Address": "postema.ej@gmail.com"}
2020-07-20T16:50:11.678Z        INFO    Operator wallet {"Address": "0x688040253Ae127519B14a5fcB7FeaB56eF15EFd1"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xd42bfd]

goroutine 1 [running]:
github.com/spacemonkeygo/monkit/v3.newSpan.func1(0xc0003f7580)
        /go/pkg/mod/github.com/spacemonkeygo/monkit/v3@v3.0.7-0.20200515175308-072401d8c752/ctx.go:147 +0x3a8
panic(0xf6ef80, 0x19a3180)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabase(0xc00045c0f0, 0x10e7d39, 0x7, 0x19a3760, 0x3)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:395 +0x7d
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabases(0xc00045c0f0, 0x10e401f, 0x4)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:384 +0xae
storj.io/storj/storagenode/storagenodedb.(*DB).openDatabases(0xc00045c0f0, 0xc00045c0f0, 0x10e7d39)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:187 +0x98d
storj.io/storj/storagenode/storagenodedb.New(0xc0004422a0, 0xc0003f5060, 0xe, 0xc000434f80, 0x1c, 0xc000434fc0, 0x16, 0x0, 0x0, 0xc0003f5060, ...)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:172 +0x859
main.cmdRun(0x19af480, 0xc0001c5ce0, 0x0, 0xb, 0x0, 0x0)
        /go/src/storj.io/storj/cmd/storagenode/main.go:147 +0x5c6
storj.io/private/process.cleanup.func1.4(0x1288fa0, 0xc00045b0e0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:359 +0x13b
storj.io/private/process.cleanup.func1(0x19af480, 0xc0001c5ce0, 0x0, 0xb, 0x0, 0x0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:377 +0x21c2
github.com/spf13/cobra.(*Command).execute(0x19af480, 0xc0001c5c30, 0xb, 0xb, 0x19af480, 0xc0001c5c30)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:840 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0x19af1e0, 0xc000084100, 0x1137e68, 0x1)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
storj.io/private/process.ExecWithCustomConfig(0x19af1e0, 0x0, 0x1137e68)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:88 +0x192
storj.io/private/process.ExecCustomDebug(...)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:70
main.main()
        /go/src/storj.io/storj/cmd/storagenode/main.go:320 +0x3e
2020-07-20T16:51:12.377Z        INFO    Configuration loaded    {"Location": "/app/config/config.yaml"}
2020-07-20T16:51:12.391Z        INFO    Operator email  {"Address": "postema.ej@gmail.com"}
2020-07-20T16:51:12.391Z        INFO    Operator wallet {"Address": "0x688040253Ae127519B14a5fcB7FeaB56eF15EFd1"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xd42bfd]

goroutine 1 [running]:
github.com/spacemonkeygo/monkit/v3.newSpan.func1(0xc0003ef820)
        /go/pkg/mod/github.com/spacemonkeygo/monkit/v3@v3.0.7-0.20200515175308-072401d8c752/ctx.go:147 +0x3a8
panic(0xf6ef80, 0x19a3180)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabase(0xc0004540f0, 0x10eab1e, 0xa, 0x19a3760, 0x3)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:395 +0x7d
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabases(0xc0004540f0, 0x10e401f, 0x4)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:384 +0xae
storj.io/storj/storagenode/storagenodedb.(*DB).openDatabases(0xc0004540f0, 0xc0004540f0, 0x10e7d39)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:187 +0x98d
storj.io/storj/storagenode/storagenodedb.New(0xc0000c2d80, 0xc0003ed0a0, 0xe, 0xc00042efa0, 0x1c, 0xc00042efc0, 0x16, 0x0, 0x0, 0xc0003ed0a0, ...)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:172 +0x859
main.cmdRun(0x19af480, 0xc0001bfc30, 0x0, 0xb, 0x0, 0x0)
        /go/src/storj.io/storj/cmd/storagenode/main.go:147 +0x5c6
storj.io/private/process.cleanup.func1.4(0x1288fa0, 0xc0004530e0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:359 +0x13b
storj.io/private/process.cleanup.func1(0x19af480, 0xc0001bfc30, 0x0, 0xb, 0x0, 0x0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:377 +0x21c2
github.com/spf13/cobra.(*Command).execute(0x19af480, 0xc0001bfb80, 0xb, 0xb, 0x19af480, 0xc0001bfb80)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:840 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0x19af1e0, 0xc0000c2100, 0x1137e68, 0x1)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
storj.io/private/process.ExecWithCustomConfig(0x19af1e0, 0x0, 0x1137e68)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:88 +0x192
storj.io/private/process.ExecCustomDebug(...)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:70
main.main()
        /go/src/storj.io/storj/cmd/storagenode/main.go:320 +0x3e
2020-07-20T16:52:13.099Z        INFO    Configuration loaded    {"Location": "/app/config/config.yaml"}
2020-07-20T16:52:13.114Z        INFO    Operator email  {"Address": "postema.ej@gmail.com"}
2020-07-20T16:52:13.114Z        INFO    Operator wallet {"Address": "0x688040253Ae127519B14a5fcB7FeaB56eF15EFd1"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xd42bfd]

goroutine 1 [running]:
github.com/spacemonkeygo/monkit/v3.newSpan.func1(0xc0003d5540)
        /go/pkg/mod/github.com/spacemonkeygo/monkit/v3@v3.0.7-0.20200515175308-072401d8c752/ctx.go:147 +0x3a8
panic(0xf6ef80, 0x19a3180)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabase(0xc0004480f0, 0x10e401f, 0x4, 0x19a3760, 0x3)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:395 +0x7d
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabases(0xc0004480f0, 0x10e401f, 0x4)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:384 +0xae
storj.io/storj/storagenode/storagenodedb.(*DB).openDatabases(0xc0004480f0, 0xc0004480f0, 0x10e7d39)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:187 +0x98d
storj.io/storj/storagenode/storagenodedb.New(0xc00048d080, 0xc0003d3050, 0xe, 0xc000413360, 0x1c, 0xc000413380, 0x16, 0x0, 0x0, 0xc0003d3050, ...)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:172 +0x859
main.cmdRun(0x19af480, 0xc00019bc30, 0x0, 0xb, 0x0, 0x0)
        /go/src/storj.io/storj/cmd/storagenode/main.go:147 +0x5c6
storj.io/private/process.cleanup.func1.4(0x1288fa0, 0xc0004450e0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:359 +0x13b
storj.io/private/process.cleanup.func1(0x19af480, 0xc00019bc30, 0x0, 0xb, 0x0, 0x0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:377 +0x21c2
github.com/spf13/cobra.(*Command).execute(0x19af480, 0xc00019bb80, 0xb, 0xb, 0x19af480, 0xc00019bb80)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:840 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0x19af1e0, 0xc00007c100, 0x1137e68, 0x1)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
storj.io/private/process.ExecWithCustomConfig(0x19af1e0, 0x0, 0x1137e68)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:88 +0x192
storj.io/private/process.ExecCustomDebug(...)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:70
main.main()
        /go/src/storj.io/storj/cmd/storagenode/main.go:320 +0x3e
2020-07-20T16:53:13.866Z        INFO    Configuration loaded    {"Location": "/app/config/config.yaml"}
2020-07-20T16:53:13.880Z        INFO    Operator email  {"Address": "postema.ej@gmail.com"}
2020-07-20T16:53:13.880Z        INFO    Operator wallet {"Address": "0x688040253Ae127519B14a5fcB7FeaB56eF15EFd1"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xd42bfd]

goroutine 1 [running]:
github.com/spacemonkeygo/monkit/v3.newSpan.func1(0xc0003f77d0)
        /go/pkg/mod/github.com/spacemonkeygo/monkit/v3@v3.0.7-0.20200515175308-072401d8c752/ctx.go:147 +0x3a8
panic(0xf6ef80, 0x19a3180)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabase(0xc0004580f0, 0x10ed56c, 0xd, 0x19a3760, 0x3)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:395 +0x7d
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabases(0xc0004580f0, 0x10e401f, 0x4)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:384 +0xae
storj.io/storj/storagenode/storagenodedb.(*DB).openDatabases(0xc0004580f0, 0xc0004580f0, 0x10e7d39)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:187 +0x98d
storj.io/storj/storagenode/storagenodedb.New(0xc000114ba0, 0xc0003f50d0, 0xe, 0xc000432fa0, 0x1c, 0xc000432fe0, 0x16, 0x0, 0x0, 0xc0003f50d0, ...)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:172 +0x859
main.cmdRun(0x19af480, 0xc0001c1d90, 0x0, 0xb, 0x0, 0x0)
        /go/src/storj.io/storj/cmd/storagenode/main.go:147 +0x5c6
storj.io/private/process.cleanup.func1.4(0x1288fa0, 0xc0004570e0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:359 +0x13b
storj.io/private/process.cleanup.func1(0x19af480, 0xc0001c1d90, 0x0, 0xb, 0x0, 0x0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:377 +0x21c2
github.com/spf13/cobra.(*Command).execute(0x19af480, 0xc0001c1ce0, 0xb, 0xb, 0x19af480, 0xc0001c1ce0)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:840 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0x19af1e0, 0xc00007c100, 0x1137e68, 0x1)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
storj.io/private/process.ExecWithCustomConfig(0x19af1e0, 0x0, 0x1137e68)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:88 +0x192
storj.io/private/process.ExecCustomDebug(...)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:70
main.main()
        /go/src/storj.io/storj/cmd/storagenode/main.go:320 +0x3e
2020-07-20T16:54:14.559Z        INFO    Configuration loaded    {"Location": "/app/config/config.yaml"}
2020-07-20T16:54:14.572Z        INFO    Operator email  {"Address": "postema.ej@gmail.com"}
2020-07-20T16:54:14.572Z        INFO    Operator wallet {"Address": "0x688040253Ae127519B14a5fcB7FeaB56eF15EFd1"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xd42bfd]

goroutine 1 [running]:
github.com/spacemonkeygo/monkit/v3.newSpan.func1(0xc0003bb650)
        /go/pkg/mod/github.com/spacemonkeygo/monkit/v3@v3.0.7-0.20200515175308-072401d8c752/ctx.go:147 +0x3a8
panic(0xf6ef80, 0x19a3180)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabase(0xc00042e0f0, 0x10e401f, 0x4, 0x19a3760, 0x3)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:395 +0x7d
storj.io/storj/storagenode/storagenodedb.(*DB).closeDatabases(0xc00042e0f0, 0x10e401f, 0x4)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:384 +0xae
storj.io/storj/storagenode/storagenodedb.(*DB).openDatabases(0xc00042e0f0, 0xc00042e0f0, 0x10e7d39)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:187 +0x98d
storj.io/storj/storagenode/storagenodedb.New(0xc0003882a0, 0xc0003b90a0, 0xe, 0xc0003ef140, 0x1c, 0xc0003ef180, 0x16, 0x0, 0x0, 0xc0003b90a0, ...)
        /go/src/storj.io/storj/storagenode/storagenodedb/database.go:172 +0x859
main.cmdRun(0x19af480, 0xc000187c30, 0x0, 0xb, 0x0, 0x0)
        /go/src/storj.io/storj/cmd/storagenode/main.go:147 +0x5c6
storj.io/private/process.cleanup.func1.4(0x1288fa0, 0xc00042d040)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:359 +0x13b
storj.io/private/process.cleanup.func1(0x19af480, 0xc000187c30, 0x0, 0xb, 0x0, 0x0)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:377 +0x21c2
github.com/spf13/cobra.(*Command).execute(0x19af480, 0xc000187b80, 0xb, 0xb, 0x19af480, 0xc000187b80)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:840 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0x19af1e0, 0xc00007c100, 0x1137e68, 0x1)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
storj.io/private/process.ExecWithCustomConfig(0x19af1e0, 0x0, 0x1137e68)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:88 +0x192
storj.io/private/process.ExecCustomDebug(...)
        /go/pkg/mod/storj.io/private@v0.0.0-20200504130741-565a173f6d33/process/exec_conf.go:70
main.main()
        /go/src/storj.io/storj/cmd/storagenode/main.go:320 +0x3e

Please check this thread.

my problem is a bit different though. The node start, runs fine and then suddenly crashes with the error.

I run the docker image on ubuntu.

Did you check databases?
Is it still an issue in the 1.9.5?

Not happened so far. Will let you know