Clean Corrupt Public Shares
Table of Contents
Detect and optionally delete storage grants that have no corresponding share-manager entry.
Command Set Overview
The described command is part of the ocis shares command set:
ocis shares -h
NAME:
ocis shares - CLI tools to manage entries in the share manager.
USAGE:
ocis shares [command options]
CATEGORY:
maintenance
COMMANDS:
cleanup Clean up stale entries in the share manager.
clean-orphaned-grants Detect and clean orphaned share-manager grants.
move-stuck-upload-blobs Move stuck upload blobs to the jsoncs3 share-manager metadata
clean-corrupt-public-shares Remove corrupt public-share entries (nil resource_id) that crash ListPublicShares.
help, h Shows a list of commands or help for one command
OPTIONS:
--help, -h show help
Command Details
If there is a single public-share entry with a corrupt resource_id, the public-share manager will be unable to read this public-share or any others from memory.
The following command fixes the problem of corrupt public shares.
Usage:
ocis shares -h clean-corrupt-public-shares
NAME:
ocis shares clean-corrupt-public-shares - Remove corrupt public-share entries (nil resource_id) that crash ListPublicShares.
USAGE:
ocis shares clean-corrupt-public-shares [command options]
OPTIONS:
--dry-run Only report corrupt entries, do not modify anything (default: true)
--verbose, -v Verbose logging enabled (default: false)
--help, -h show help
Notes:
-
--dry-rundefaults totrue(no deletions). Set tofalseto remove corrupt public shares.