Skip to content

large repo + diskUsage calc timesout systemd unit #6741

@elitak

Description

@elitak

Version information:

go-ipfs version: 0.4.22-
Repo version: 7
System version: amd64/linux
Golang version: go1.12.9
Please check dist.ipfs.io for a newer version of go-ipfs and update if necessary. Report back if the problem persists.

Description:

I have a very large repo (10TB+ on XFS). Sometimes (I don't know the interval), ipfs-daemon decides it needs to refresh the blocks/diskUsage.cache file on startup, and takes so long computing the new usage, that systemd thinks the service has failed to start and kills the process. How can I disable the recalculation or make it run only after the daemon has started up, in a background thread?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)kind/enhancementA net-new feature or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions