shutdown and startup timeouts too small (systemd) #7264
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Version information:
go-ipfs version: 0.6.0-dev
Repo version: 9
System version: amd64/linux
Golang version: go1.14.2
Revision 826826c
Description:
The shutdown via systemd didn't go as planned and after the default timeout systemd killed the service:
I suspect that something in the badgerdb is broken and ipfs will lock up for a long while...
This is an issue with the new "notify"-type systemd.service file, since systemd would give the daemon just one minute and 30 seconds to startup, not 5 minutes.
We either need to increase the timeout in the service file or get this stuff done faster after a crash - if this is possible.
Also, the shutdown timeout is probably too short. Not sure what a sensible timeout would be there.
I aborted ipfs once after 2 minutes to see where it's got stuck - stack trace attached.
ipfs_stack_trace_2020-05-01.txt
The text was updated successfully, but these errors were encountered: