-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.4.11, 2.4.12
-
Component/s: Admin
-
Labels:None
Hi,
I'm planed to upgrade my v2.4 mongo cluster to v2.6, and db db.upgradeCheckAllDBs() met these errors. I wonder to know if it is safety to upgrade.
Document Error: key for index { "v" : 1, "name" : "installationId_1", "key" : { "installationId" : 1 }, "ns" : "4jyss38wh62ta9duc1by94n8otvdqb6wzmypnkigw5robxi6._Installation", "background" : true } too long for document: { "_id" : ObjectId("535452b4e4b0778466903dcf"), "timeZone" : "Asia/Shanghai", "installationId" : "{\"@type\":\"com.avos.avoscloud.AVInstallation\",\"className\":\"installations\",\"createdAt\":1397961335154,\"dataAvailable\":false,\"dataReady\":false,\"fetchWhenSave\":false,\"installationId\":\"7aad7bd2-84af-4051-905e-ab0d623bd660\",\"keyValues\":{\"@type\":\"java.util.HashMap\",\"channels\":{\"@type\":\"com.avos.avoscloud.AVKeyValues\",\"key\":\"channels\",\"op\":{\"@type\":\"com.avos.avoscloud.ops.NullOP\"},\"relationKey\":false,\"value\":[\"\",\"public\"]},\"deviceType\":{\"@type\":\"com.avos.avoscloud.AVKeyValues\",\"key\":\"deviceType\",\"op\":{\"$ref\":\"$.keyValues.channels.op\"},\"relationKey\":false,\"value\":\"android\"},\"installationId\":{\"@type\":\"com.avos.avoscloud.AVKeyValues\",\"key\":\"installationId\",\"op\":{\"$ref\":\"$.keyValues.channels.op\"},\"relationKey\":false,\"value\":\"7aad7bd2-84af-4051-905e-ab0d623bd660\"},\"timeZone\":{\"@type\":\"com.avos.avoscloud.AVKeyValues\",\"key\":\"timeZone\",\"op\":{\"$ref\":\"$.keyValues.channels.op\"},\"relationKey\":false,\"value\":\"Asia/Shanghai\"}},\"objectId\":\"53533277e4b0f2cf39ce8120\",\"pendingKeys\":Set[],\"updatedAt\":1397961337795,\"uuid\":\"30046394-fcb7-4044-b9f3-46cfb455ed2c\"}", "deviceType" : "android", "valid" : true, "ACL" : { "*" : { "write" : true, "read" : true } }, "createdAt" : ISODate("2014-04-20T23:05:24.327Z"), "updatedAt" : ISODate("2014-04-20T23:05:24.327Z") }Document Error: key for index { "v" : 1, "name" : "name_1", "key" : { "name" : NumberLong(1) }, "ns" : "uua467cyuhnm7ia0mn8520ount0i7jqyhplbz03wkcvnwq0i._File", "background" : true } too long for document: { "_id" : ObjectId("550f594ae4b06b3127144242"), "mime_type" : "application/octet-stream", "updatedAt" : ISODate("2015-03-23T00:07:38.175Z"), "key" : "gHrQvbCN3R76TJ99AwyzQeC", "ACL" : { "*" : { "write" : true, "read" : true } }, "name" : "[0]扬子异联_http://www.iphone03.com/yz_com.iphone03.CallApp_<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>该页无法显示</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=GB2312\">\r\n<STYLE type=\"text/css\">\r\n BODY { font: 9pt/12pt 宋体 }\r\n H1 { font: 12pt/15pt 宋体 }\r\n H2 { font: 9pt/12pt 宋体 }\r\n A:link { color: red }\r\n A:visited { color: maroon }\r\n</STYLE>\r\n</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>\r\n\r\n<h1>该页无法显示</h1>\r\n此时无法处理请求。通讯量超出网站的配置能力。\r\n<hr>\r\n<p>请尝试以下操作:</p>\r\n<ul>\r\n<li>单击<a href=\"javascript:location.reload()\">刷新</a>按钮,或稍后再试。</li>\r\n<li>如果仍旧有错误,请与 网站管理员联系以通知他们此 URL 地址仍存在该错误。</li>\r\n</ul>\r\n<h2>HTTP 错误 500.13 - 服务器错误:Web 服务器太忙。<br>Internet 信息服务 (IIS)</h2>\r\n<hr>\r\n<p>技术信息( 为技术支持人员提供)</p>\r\n<ul>\r\n<li>转到 <a href=\"http://go.microsoft.com/fwlink/?linkid=8180\">Microsoft 产品支持服务</a>并搜索包括“HTTP”和“500”的标题。</li>\r\n<li>打开“IIS 帮助”(可在 IIS 管理器 (inetmgr) 中访问),然后搜索标题为“监视和调整 Web 应用程序性能”、“性能监视和可伸缩性工具”和“关于自定义错误消息”的主题。</li>\r\n</ul>\r\n\r\n</TD></TR></TABLE></BODY></HTML>\r\n_(null)_15251881470", "createdAt" : ISODate("2015-03-23T00:07:38.175Z"), "__type" : "File", "url" : "http://ac-uua467cy.clouddn.com/gHrQvbCN3R76TJ99AwyzQeC", "metaData" : { "_checksum" : "3e2107db9039dd7936cf872a2408d8b7", "size" : NumberLong(3133) }, "bucket" : "uua467cy" } Document Error: document is no longer valid in 2.6 because DollarPrefixedFieldName: $$hashKey is not valid for storage.: { "ACL" : { "*" : { "write" : true, "read" : true } }, "_id" : ObjectId("52e8fae9e4b02909c8ac851c"), "address" : "test address", "cellphone" : "18601488642", "createdAt" : ISODate("2014-01-29T12:58:17.953Z"), "name" : "sat gi", "orderedDate" : NumberLong("1391000298465"), "products" : [ { "id" : "52dd476de4b06193c83d1f11", "name" : "宏香记牛肉豆脯", "price" : NumberLong(22), "image" : "http://ww3.sinaimg.cn/large/8066c6d6jw1ecy00nhtc5j208c08cwfg.jpg", "purchaseNumber" : NumberLong(1), "$$hashKey" : "00H" } ], "special" : "hello", "status" : NumberLong(3), "totalPr ice" : NumberLong(22), "updatedAt" : ISODate("2014-01-29T14:43:40.200Z"), "user" : DBRef("_User", ObjectId("52e377a5e4b03e93d30a2ac7")), "wechat" : "dickacheman" } 2015-03-25T22:16:16.444+0800 Error: Can't extract geo keys from object, malformed geometry?: { ACL: { *: { write: true, read: true } }, _id: ObjectId('541bbc1de4b0d41e99e1bb32'), createdAt: new Date(1411103773794), detailMessageBigImages: [ { $ref: "_File", $id: ObjectId('541bbc1ae4b0d41e99e1bb23') }, { $ref: "_File", $id: ObjectId('541bbc1ae4b0d41e99e1bb24') }, { $ref: "_File", $id: ObjectId('541bbc1ae4b0d41e99e1bb25') }, { $ref: "_File", $id: ObjectId('541bbc1ae4b0d41e99e1bb28') } ], detailMessageContent: "[知了The Know]艺术与生活概店是建立在知了艺术空间平台上的商品展示与销售空间。 Document Error: key for index { "v" : 1, "name" : "data_1", "key" : { "data" : NumberLong(1) }, "ns" : "fi68r9jrdpvgboosoduw367409zze6wx96at1la0p6tawvuq._Notification", "background" : true } too long for document: { "ACL" : { "*" : { "write" : true, "read" : true } }, "_id" : ObjectId("55113951e4b07860af4933d7"), "createdAt" : ISODate("2015-03-24T10:15:45.153Z"), "data" : { "data" : { "content_url" : "http://78reyt.com1.z0.glb.clouddn.com/ttllm.apk", "channel_id_type" : "1", "activity_prize_type" : "", "activity_prize_num" : "", "content" : "全民消消乐啦!都来挑战一下", "title" : "天天乐消萌", "channel_id" : "kywl01,kywl02,kywl03,jztx01,jztx02,jztx03,jztx04,jztx05,yunw,qc,zsy,zsy_kevi06,1_zhiyifu_,9_zhiyifu_,htc_jule,360yy,uucun-market,16_zhiyifu_5,88_zhiyifu_,16_zhiyifu_20,12_zhiyifu1,12_zhiyifu2,12_zhiyifu3,12_zhiyifu4,12_zhiyifu5,12_zhiyifu6,12_zhiyifu7,12_zhiyifu8,12_zhiyifu9,12_zhiyifu10,12_zhiyifu68,daiji_3009,wb_xyh_baidu,wb_caituo,daiji_1009,taobao,jianyou01,jianyou02,jianyou03,jianyou04,jianyou05,jianyou06,jianyou07,jianyou08,jianyou09,jianyou10,mm_1017,DOB_OC37_02,DOB_OC37_03,DOB_OC37_04,DOB_OC37_05,DOB_OC37_06,DOB_OC37_07,DOB_OC37_08,DOB_OC37_09,DOB_OC37_10,youmi,youmi01,youmi02,youmi03,youmi04,youmi05,youmi06,youmi07,youmi08,youmi09,youmi10,youmi11,youmi12,youmi13,youmi14,youmi15,youmi16,youmi17,youmi18,youmi19,youmi20,youmi21,youmi22,youmi23,youmi24,youmi25,youmi26,youmi27,youmi28,youmi29,youmi30,youmi31,youmi32,youmi33,youmi34,youmi35,youmi36,youmi37,youmi38,youmi39,youmi40,youmi41,youmi42,youmi43,youmi44,youmi45,youmi46,youmi47,youmi48,youmi49,youmi50,youmi51,youmi52,youmi53,youmi54,youmi55,youmi56,youmi57,youmi58,youmi59,youmi60,zsy_001,jule2,jule3,jule4,xyh_gg,xyh_gg02,zxly,ck01,ck02,ck03,ck04,ck05,ck06,jule5,jule6,jule7,jule8,jule9,wb_xyh,wb_xyh_confirm,zhidian01,zhidian02,sztp,uucun-market,cs01,daiji_kxby_101,daiji_kxby_102,daiji_kxby_103,daiji_kxby_104,daiji_kxby_105,daiji_kxby_106,daiji_kxby_107,daiji_kxby_109,daiji_kxby_110,zhys,zhys02,zhys03,16_zhiyifu_1", "pack_info" : "com.ddz.tt.standalone", "action" : "com.avos.UPDATE_STATUS", "no_login" : "1", "icon_url" : "http://poxiao-resource.u.qiniudn.com/ttlxm.png", "launch_info" : "com.wei.andy.futonddz.activitys.SplashActivity" } }, "expiration_interval" : NumberLong(86400), "invalidTokens" : NumberLong(0), "prod" : "prod", "status" : "done", "subscribers" : NumberLong(7220), "updatedAt" : ISODate("2015-03-24T10:15:47.188Z"), "where" : "{\"query\":{\"valid\":true},\"sort\":{\"createdAt\":1}}" } Document Error: document is no longer valid in 2.6 because DollarPrefixedFieldName: $each is not valid for storage.: { "ACL" : { "*" : { "write" : true, "read" : true } }, "_id" : ObjectId("550ae5b4e4b0c9383915e795"), "address" : "洪家庙", "area" : "null", "city" : "null", "createdAt" : ISODate("2015-03-19T15:05:24.890Z"), "id" : NumberLong(0), "ischoose" : NumberLong(1), "name" : "null", "navigation" : "null", "opponents" : [ { "$each" : null }, { "__type" : "Relation", "className" : "menu", "objectId" : "550ade11e4b0c9cd550e8515" }, { "__type" : "Relation", "className" : "menu", "objectId" : "550adc5ce4b0c938391570cd" } ], "phone" : "null", "updatedAt" : ISODate("2015-03-19T15:08:21.010Z") }Document Error: document is no longer valid in 2.6 because DollarPrefixedFieldName: $each is not valid for storage.: { "ACL" : { "*" : { "read" : true, "write" : true } }, "_id" : ObjectId("55079484e4b0c93838f6e365"), "createdAt" : ISODate("2015-03-17T02:42:12.840Z"), "name" : "Seller", "updatedAt" : ISODate("2015-03-20T01:19:51.872Z"), "users" : [ DBRef("_User", ObjectId("51dfb84ce4b0a918eba635d9")), DBRef("_User", ObjectId("54febd38e4b0ba3917c0691d")), DBRef("_User", ObjectId("54ffcd84e4b0a9c25ca97f8e")), { "$each" : null }, DBRef("_User", ObjectId("51dfb8bde4b0a918eba635da")), DBRef("_User", ObjectId("54ffd9e2e4b0a9c25caa0f88")), DBRef("_User", ObjectId("54fd5e37e4b0a9c25c9550f5")), DBRef("_User", ObjectId("5508062ae4b0c93838fb8a92")), DBRef("_User", ObjectId("550a3f16e4b0c938390e0d64")), DBRef("_User", ObjectId("5508058be4b0c93838fb7ff2")) ] }Document Error: document is no longer valid in 2.6 because DollarPrefixedFieldName: $$hashKey is not valid for storage.: { "ACL" : { "*" : { "write" : true, "read" : true } }, "_id" : ObjectId("54f65f28e4b063c495f47c45"), "authData" : null, "createdAt" : ISODate("2015-03-04T01:26:00.933Z"), "email" : "123452@qq.22", "emailVerified" : false, "innoPersonalCourses" : [ "javascript" ], "innoPersonalEducation" : [ { "school" : "innohub", "pro" : "前端", "time" : "2014年11月-2015年3月" } ], "innoPersonalExperience" : [ { "company" : "innohub", "duty" : "前端", "des" : "开发", "time" : "2015年到2018年" } ], "innoPersonalJoinedOrganization" : [ { "name" : "中国共青团", "$$hashKey" : "02L", "time" : "2000-1" } ], "innoPersonalLanguage" : [ "汉语", "英语" ], "innoPersonalParticipatedProject" : [ { "name" : "innohub", "$$hashKey" : "02L", "time" : "2015-1", "des" : "全球孵化器" } ], "innoPersonalPublication" : [ { "name" : "前端攻略", "$$hashKey" : "02H", "time" : "2015-7" } ], "innoPersonalReward" : [ { "name" : "物理竞赛一等奖", "$$hashKey" : "02L", "time" : "20000-9" } ], "innoPersonalSkills" : [ { "name" : "js", "$$hashKey" : "02F", "level" : "70%" } ], "innoPersonalWorkExperience" : [ { "company" : "innohub", "duty" : "前端", "des" : "开发" } ], "mobilePhoneVerified" : false, "nickname" : "不良", "password" : "llrq3C/bDelnrIxUZuhLZKpGCUG6vTeIPFDbZH0yItdU5bW9s6Y6ZPt+45I9Fccek3AHUqEG99SoOWcRoClSTQ==", "points" : NumberLong(50), "profilePic" : DBRef("_File", ObjectId("54f65f43e4b063c495f47cde")), "progress" : NumberLong(54), "role" : "guest", "salt" : "yzofhd8gtrd4rtgtd7jx7gr9i4b9wpwzmir4ump690h9aaxo", "sessionToken" : "kii7veb1qlkoymb8g7rp5bma0", "updatedAt" : ISODate("2015-03-12T02:20:38.658Z"), "username" : "12345", "works" : [ ] }
And my cluster running on 2.4.11 and 2.4.12, does it necessary to upgrade to 2.4.13 before upgrade?
Thank you