Socket
Socket
Sign inDemoInstall

couchdb-corrupted-document

Package Overview
Dependencies
216
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    couchdb-corrupted-document

Search and destroy corrupted documents.


Version published
Weekly downloads
11
increased by450%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

couchdb-corrupted-document

Search and destroy corrupted documents.

Corrupted documents break the indexing process, this tool helps you find and handle the document(s) which are causing a problem.

How it works

Request all documents from the CouchDB server, report failed retrievals.

Requirements

  • Views should not be indexed during this period

Usage

Step 1
Run cdbcd --detect -s <http(s)://server> -u <user> -p <password> -d <db> > failed.json

Step 2
Take first 5000 keys

Step 3a
Check whether all selected keys can be retrieved in batch

Step 3b
If the batch fails, test keys individually

Step 4
Remember failed keys.

Step 5
Take next 5000 keys, goto Step 2 if found.

Step 6
Output failed keys in JSON format to stdout.

Step 7
Run cdbcd --delete < failed.json

Transfer

Copy documents from one database to the other, skipping and reporting failed documents.

Step 1
Run cdbcd --transfer -s <http(s)://server> -u <user> -p <password> -d <db> --ts <http(s)://server> --tu <user> --tp <password> --td <db>

FAQs

Last updated on 20 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc