Open davidje opened 9 years ago
I have what seems to be the exact same error:
unexpected error
{ [RangeError: Invalid string length]
result:
{ ok: false,
start_time: Tue Nov 10 2015 23:30:08 GMT+0100 (CET),
docs_read: 3724,
docs_written: 3657,
doc_write_failures: 67,
errors: [ [Circular] ],
last_seq: 80116,
status: 'aborting',
end_time: Tue Nov 10 2015 23:31:29 GMT+0100 (CET) } }
RangeError: Invalid string length
at Object.stringify (native)
at DestroyableTransform._transform (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/pouchdb-replication-stream/node_modules/ldjson-stream/index.js:30:19)
at DestroyableTransform.Transform._read (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
at PouchDB.WritableStreamPouch.api._bulkDocs (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/pouchdb-replication-stream/lib/writable-stream.js:45:16)
at PouchDB.<anonymous> (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/pouchdb/lib/adapter.js:809:15)
at PouchDB.<anonymous> (/usr/local/lib/node_modules/pouchdb-dump-cli/node_modules/pouchdb/lib/deps/adapterFun.js:49:21)
2015-11-10_23-30-07_artendb_dump.txt
> Uploading "/home/alex/2015-11-10_23-30-07_artendb_dump.txt.tar.gz" to "/2015-11-10_23-30-07_artendb_dump.txt.tar.gz"... DONE
this is in the executed bash file:
FILENAME=$(date +"%Y-%m-%d_%H-%M-%S_artendb_dump.txt")
FILENAME_GZ=$FILENAME.tar.gz
pouchdb-dump http://localhost:5984/artendb > $FILENAME
couchdb 1.6.1 on Ubuntu 14.04.3 LTS
I welcome anybody to try to fix this 200-line project, but I currently don't have time to look into this; sorry.
Doing a dump of the NPM isaacs.iriscouch.com mirror dataset from my local couchdb replication
eventually around 6GB
Apache CouchDB 1.6.1