Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [support@ppoz-db-request-01 ~]$ mongo rrpdb save-extLinks-01.js
- MongoDB shell version v3.4.1
- connecting to: mongodb://127.0.0.1:27017/rrpdb
- MongoDB server version: 3.4.1
- 2017-03-31T17:32:31.548+0300 E QUERY [main] BulkWriteError: write error at item 0 in bulk operation :
- BulkWriteError({
- "writeErrors" : [
- {
- "index" : 0,
- "code" : 11000,
- "errmsg" : "E11000 duplicate key error collection: rrpdb.fileStorageMeta index: _id_ dup key: { : \"e10be822-b1d9-4607-aaf1-10f6b9602042/e20bc9e8-0a2d-4bad-bf26-154a81517933/EXT_FILE\" }",
- "op" : {
- "_id" : "e10be822-b1d9-4607-aaf1-10f6b9602042/e20bc9e8-0a2d-4bad-bf26-154a81517933/EXT_FILE",
- "containerCode" : "e10be822-b1d9-4607-aaf1-10f6b9602042",
- "code" : "e20bc9e8-0a2d-4bad-bf26-154a81517933",
- "fileType" : "EXT_FILE",
- "filePresence" : [
- {
- "node" : "http://01",
- "filePath" : "/01//Srv2/Хранилище_фотообразов/ГУ_ОКС/01_03/Отделение%20по%20Красногвардейскому%20району%20филиала%20ФГУП%20по%20Республике%20Адыгея/7486/7486486/216823_1.jpg",
- "status" : "uploaded",
- "createdAt" : ISODate("2017-03-31T14:32:31.525Z"),
- "uploadedAt" : ISODate("2017-03-31T14:32:31.525Z"),
- "fakeNode" : true
- }
- ],
- "fileSize" : -1,
- "originalFilename" : "216823_1.jpg",
- "userFileGuids" : [ ]
- }
- }
- ],
- "writeConcernErrors" : [ ],
- "nInserted" : 0,
- "nUpserted" : 0,
- "nMatched" : 0,
- "nModified" : 0,
- "nRemoved" : 0,
- "upserted" : [ ]
- })
- BulkWriteError@src/mongo/shell/bulk_api.js:372:48
- BulkWriteResult/this.toError@src/mongo/shell/bulk_api.js:336:24
- Bulk/this.execute@src/mongo/shell/bulk_api.js:1173:1
- DBCollection.prototype.insertMany@src/mongo/shell/crud_api.js:302:5
- saveBatch@save-extLinks-01.js:50:5
- @save-extLinks-01.js:68:13
- DBQuery.prototype.forEach@src/mongo/shell/query.js:501:1
- @save-extLinks-01.js:60:1
- failed to load: save-extLinks-01.js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement