Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

错误: create config data error[DCacheOptImp::createDBAccessConf] error, main key miss! #75

Closed
CyrusZhou-CN opened this issue Feb 3, 2022 · 3 comments

Comments

@CyrusZhou-CN
Copy link

image
mysql:5.6
--lower_case_table_names=1

@CyrusZhou-CN
Copy link
Author

2022-02-03 18:43:26|140668408153856|DEBUG|installDBAccess:655|{"cacheType":1,"replace":true,"conf":{"vDBInfo":[{"charset":"utf8mb4","port":"3306","user":"root","pwd":"123456","ip":"7.1.0.2"}],"tableEngine":"InnoDB","tablePrefix":"t_testtest_","tableCharset":"utf8mb4","tableNum":1,"DBPrefix":"db_testtest_","DBNum":1,"isDigital":false},"vtModuleRecord":[],"isSerializated":false,"serverTemplate":"DCache.Cache","serverIp":["7.1.0.3"],"serverName":"DCache.testtestDbAccessServer","appName":"test"}
2022-02-03 18:43:26|140668408153856|ERROR|[DCacheOptImp::createDBAccessConf] error, main key miss!
2022-02-03 18:43:26|140668408153856|ERROR|[DCacheOptImp::installDBAccess] create config data error!
2022-02-03 18:43:48|140668399761152|DEBUG|installKVCacheModule:736|app name: test|module name: testtest
2022-02-03 18:43:48|140668399761152|DEBUG|insertAppModTable:3639|app name:test|module name:testtest|cache type:KVCACHE
2022-02-03 18:43:48|140668399761152|DEBUG|insertConfigFilesTable:3676|server name:test|host:
2022-02-03 18:43:50|140668399761152|DEBUG|insertConfigFilesTable:3676|server name:DCache.testtestKVCacheServer1-1|host:7.1.0.3
2022-02-03 18:43:50|140668399761152|DEBUG|insertCache2RouterDb:4077|insert module name and cache server info to router db table|module name:testtest
2022-02-03 18:43:50|140668399761152|DEBUG|insertCache2RouterDb:4102|module name:testtest already exist, update router version, do SQL:update t_router_module set version = version+1 where module_name='testtest';
2022-02-03 18:43:50|140668399761152|DEBUG|reloadRouterByModule:3021|app:DCache|module name:testtest|router server name:DCache.testRouterServer
2022-02-03 18:43:50|140668399761152|DEBUG|checkRouterLoadModule:2880|app:DCache|module name:testtest|router server name:DCache.testRouterServer
2022-02-03 18:43:50|140668399761152|DEBUG|insertCacheRouter:4981|cache server name:testtestKVCacheServer1-1|router server name:DCache.testRouterServer.RouterObj
2022-02-03 18:43:50|140668399761152|DEBUG|installKVCacheModule:832|finish

@CyrusZhou-CN
Copy link
Author

是否和 PropertyServer 错误有关,刚刚启动就出现的错误。
image
PropertyServer 日志

2022-02-16 14:55:54\|140356123338496\|INFO\|read hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
--
  | 1{value8\|{Avg\|0}}
  | 2022-02-16 14:55:54\|140356123338496\|INFO\|reset hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0},value8\|{Avg\|0}}
  | 2022-02-16 14:55:58\|140356156909312\|DEBUG\|PropertyReapThread::getPropertyMsg sCloneFile:/usr/local/app/tars/tarsnode/data/DCache.PropertyServer/data/clone/202202161455.txt\|begin ...
  | 2022-02-16 14:55:58\|140356156909312\|DEBUG\|PropertyReapThread::getPropertyMsg tHashMap:[Version = 0.3]
  | [ReadOnly = 0]
  | [AutoErase = 1]
  | [MemSize = 10485760]
  | [Capacity = 10212216]
  | [SingleBlockCount = 14343 ]
  | [AllBlockChunk = 43029]
  | [UsedChunk = 1]
  | [FreeChunk = 43028]
  | [MinDataSize = 100]
  | [MaxDataSize = 200]
  | [HashCount = 22697]
  | [HashRadio = 2]
  | [ElementCount = 1]
  | [SetHead = 273018]
  | [SetTail = 273018]
  | [GetHead = 273018]
  | [GetTail = 273018]
  | [DirtyTail = 273018]
  | [SyncTail = 0]
  | [SyncTime = 600]
  | [BackupTail = 0]
  | [DirtyCount = 1]
  | [GetCount = 10]
  | [HitCount = 9]
  | [ModifyStatus = 0]
  | [ModifyIndex = 0]
  | [OnlyKeyCount = 0]
  | [MaxHash = 1]
  | [MinHash = 0]
  | [AvgHash = 1]
  | *************************************************************************
  | [DiffBlockCount = 3]
  | [BlockSize = 175][BlockCount = 14343][BlockAvailable = 14342]
  | [BlockSize = 262][BlockCount = 14343][BlockAvailable = 14343]
  | [BlockSize = 275][BlockCount = 14343][BlockAvailable = 14343]
  |  
  | 2022-02-16 14:55:58\|140356156909312\|DEBUG\|PropertyReapThread::getPropertyMsg get total size:1
  | 2022-02-16 14:55:58\|140356156909312\|DEBUG\|PropertyDbManager::insert2Db begin ...
  | 2022-02-16 14:55:58\|140356156909312\|INFO\|PropertyDbManager::hasTableExist\|show tables like '%t_property_realtime%\|affected:1
  | 2022-02-16 14:55:58\|140356156909312\|ERROR\|PropertyDbManager::createDBValue no module info for server:DCache.PropertyServer
  | 2022-02-16 14:55:58\|140356156909312\|DEBUG\|PropertyDbManager::creatDBValue ('20220216','1455',NULL,NULL,NULL,NULL,NULL,'DCache.PropertyServer','7.1.0.4','','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,'0')
  | 2022-02-16 14:55:59\|140356156909312\|DEBUG\|PropertyDbManager::updateEcsStatus iRet: 1\|update t_ecstatus set `lasttime`= '20220216 1455' where appname='dcache_idc5min_147' and action=0
  | 2022-02-16 14:55:59\|140356156909312\|DEBUG\|PropertyDbManager::insert2Db\|ip:7.1.0.2\|port:3306\|20220216\|1455\|1\|120
  | 2022-02-16 14:56:54\|140356123338496\|DEBUG\|PropertyImp::reportPropMsg size:5
  | 2022-02-16 14:56:54\|140356123338496\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.connectRate\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:56:54\|140356123338496\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.connectRate\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.connectRate\|\|\|
  | 2022-02-16 14:56:54\|140356123338496\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.queue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:56:54\|140356123338496\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.queue\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.queue\|\|\|
  | 2022-02-16 14:56:54\|140356123338496\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.timeoutNum\|\|\|\|body:1{{Sum\|0}}
  | 2022-02-16 14:56:54\|140356123338496\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.timeoutNum\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.timeoutNum\|\|\|
  | 2022-02-16 14:56:54\|140356123338496\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.asyncqueue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:56:54\|140356123338496\|INFO\|read hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0},value8\|{Avg\|0}}
  | 2022-02-16 14:56:54\|140356123338496\|INFO\|reset hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0},value8\|{Avg\|0=2}}
  | 2022-02-16 14:56:54\|140356123338496\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.sendrspqueue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:56:54\|140356123338496\|INFO\|read hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0},value8\|{Avg\|0=2}}
  | 2022-02-16 14:56:54\|140356123338496\|INFO\|reset hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=2},value8\|{Avg\|0=2}}
  | 2022-02-16 14:57:54\|140355840243456\|DEBUG\|PropertyImp::reportPropMsg size:5
  | 2022-02-16 14:57:54\|140355840243456\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.connectRate\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:57:54\|140355840243456\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.connectRate\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.connectRate\|\|\|
  | 2022-02-16 14:57:54\|140355840243456\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.queue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:57:54\|140355840243456\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.queue\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.queue\|\|\|
  | 2022-02-16 14:57:54\|140355840243456\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.timeoutNum\|\|\|\|body:1{{Sum\|0}}
  | 2022-02-16 14:57:54\|140355840243456\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.timeoutNum\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.timeoutNum\|\|\|
  | 2022-02-16 14:57:54\|140355840243456\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.asyncqueue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:57:54\|140355840243456\|INFO\|read hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=2},value8\|{Avg\|0=2}}
  | 2022-02-16 14:57:54\|140355840243456\|INFO\|reset hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=2},value8\|{Avg\|0=3}}
  | 2022-02-16 14:57:54\|140355840243456\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.sendrspqueue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:57:54\|140355840243456\|INFO\|read hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=2},value8\|{Avg\|0=3}}
  | 2022-02-16 14:57:54\|140355840243456\|INFO\|reset hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=3},value8\|{Avg\|0=3}}
  | 2022-02-16 14:58:54\|140356131731200\|DEBUG\|PropertyImp::reportPropMsg size:5
  | 2022-02-16 14:58:54\|140356131731200\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.connectRate\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:58:54\|140356131731200\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.connectRate\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.connectRate\|\|\|
  | 2022-02-16 14:58:54\|140356131731200\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.queue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:58:54\|140356131731200\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.queue\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.queue\|\|\|
  | 2022-02-16 14:58:54\|140356131731200\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.timeoutNum\|\|\|\|body:1{{Sum\|0}}
  | 2022-02-16 14:58:54\|140356131731200\|ERROR\|PropertyImp::reportPropMsg invalid property:PropertyObjAdapter.timeoutNum\|head:DCache.PropertyServer\|\|DCache.PropertyServer.PropertyObjAdapter.timeoutNum\|\|\|
  | 2022-02-16 14:58:54\|140356131731200\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.asyncqueue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:58:54\|140356131731200\|INFO\|read hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=3},value8\|{Avg\|0=3}}
  | 2022-02-16 14:58:54\|140356131731200\|INFO\|reset hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=3},value8\|{Avg\|0=4}}
  | 2022-02-16 14:58:54\|140356131731200\|DEBUG\|PropertyImp::reportPropMsg \|head:DCache.PropertyServer\|\|DCache.PropertyServer.sendrspqueue\|\|\|\|body:1{{Avg\|0}}
  | 2022-02-16 14:58:54\|140356131731200\|INFO\|read hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=3},value8\|{Avg\|0=4}}
  | 2022-02-16 14:58:54\|140356131731200\|INFO\|reset hash body\|DCache.PropertyServer\|7.1.0.4\|\|\|
  | 2{value7\|{Avg\|0=4},value8\|{Avg\|0=4}}

@CyrusZhou-CN
Copy link
Author

临时解决方法:CyrusZhou-CN/TarsWeb@7fdd160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant