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

安装失败 #58

Open
liulinghao0421 opened this issue Jan 8, 2021 · 5 comments
Open

安装失败 #58

liulinghao0421 opened this issue Jan 8, 2021 · 5 comments

Comments

@liulinghao0421
Copy link

2021-01-08 14:48:48 ====================================================================
2021-01-08 14:48:48 ===dcache-install****===
2021-01-08 14:48:48 ====================================================================
2021-01-08 14:48:48 ===>print config info >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021-01-08 14:48:48 PARAMS: 172.16.10.180 3306 root 123456 172.16.10.180 3306 root 123456 true 172.16.10.180:3000 7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 172.16.10.180
2021-01-08 14:48:48 TARS_MYSQL_IP: 172.16.10.180
2021-01-08 14:48:48 TARS_MYSQL_PORT: 3306
2021-01-08 14:48:48 TARS_MYSQL_USER: root
2021-01-08 14:48:48 TARS_MYSQL_PASSWORD: 123456
2021-01-08 14:48:48 DCACHE_MYSQL_IP: 172.16.10.180
2021-01-08 14:48:48 DCACHE_MYSQL_PORT: 3306
2021-01-08 14:48:48 DCACHE_MYSQL_USER: root
2021-01-08 14:48:48 DCACHE_MYSQL_PASSWORD: 123456
2021-01-08 14:48:48 CREATE: true
2021-01-08 14:48:48 WEB_HOST: 172.16.10.180:3000
2021-01-08 14:48:48 WEB_TOKEN: 7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618
2021-01-08 14:48:48 WORKDIR: /data/soft/soft/DCache-master/deploy
2021-01-08 14:48:48 NODE_IP: 172.16.10.180
2021-01-08 14:48:48 ===<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< print config info finish.


CMAKE_SOURCE_DIR: /data/soft/soft/DCache-master
CMAKE_BINARY_DIR: /data/soft/soft/DCache-master/build
PROJECT_SOURCE_DIR: /data/soft/soft/DCache-master
CMAKE_BUILD_TYPE: Release
PLATFORM: linux
TARS2CPP: /usr/local/tars/cpp/tools/tars2cpp
TARS_MYSQL: ON
TARS_HTTP2: OFF
TARS_SSL: OFF
TARS_WEB_HOST: 172.16.10.180:3000
TARS_TOKEN: 7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618

in src CombinDbAccessServer...
-- Configuring done
-- Generating done
-- Build files have been written to: /data/soft/soft/DCache-master/build
tar: Removing leading /' from member names tar: /data/soft/soft/DCache-master/build/ConfigServer: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors tar: Removing leading /' from member names
tar: /data/soft/soft/DCache-master/build/CombinDbAccessServer: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
DCacheServerGroup/
DCacheServerGroup/KVCacheServer
DCacheServerGroup/
DCacheServerGroup/KVCacheServer
DCacheServerGroup/
DCacheServerGroup/MKVCacheServer
DCacheServerGroup/
DCacheServerGroup/MKVCacheServer
tar: Removing leading /' from member names tar: /data/soft/soft/DCache-master/build/DCacheOptServer: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors tar: Removing leading /' from member names
tar: /data/soft/soft/DCache-master/build/PropertyServer: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading /' from member names tar: /data/soft/soft/DCache-master/build/ProxyServer: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors tar: Removing leading /' from member names
tar: /data/soft/soft/DCache-master/build/RouterServer: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading /' from member names tar: /data/soft/soft/DCache-master/build/ConfigServer: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors tar: Removing leading /' from member names
tar: /data/soft/soft/DCache-master/build/CombinDbAccessServer: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
DCacheServerGroup/
DCacheServerGroup/KVCacheServer
DCacheServerGroup/
DCacheServerGroup/KVCacheServer
DCacheServerGroup/
DCacheServerGroup/MKVCacheServer
DCacheServerGroup/
DCacheServerGroup/MKVCacheServer
tar: Removing leading /' from member names tar: /data/soft/soft/DCache-master/build/DCacheOptServer: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors tar: Removing leading /' from member names
tar: /data/soft/soft/DCache-master/build/PropertyServer: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading /' from member names tar: /data/soft/soft/DCache-master/build/ProxyServer: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors tar: Removing leading /' from member names
tar: /data/soft/soft/DCache-master/build/RouterServer: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Built target tar
2021-01-08 14:48:54 ===>install DCacheOptServer:
{"data":{"server_conf":{"id":52,"application":"DCache","server_name":"DCacheOptServer","node_name":"172.16.10.180","server_type":"tars_cpp","enable_set":false,"set_name":null,"set_area":null,"set_group":null,"setting_state":"inactive","present_state":"inactive","bak_flag":false,"template_name":"tars.default","profile":"","async_thread_num":3,"base_path":"","exe_path":"","start_script_path":"","stop_script_path":"","monitor_script_path":"","patch_time":"1970-01-01T05:00:00.000Z","patch_version":"","process_id":0,"posttime":"2021-01-08 01:38:21"},"tars_node_rst":[]},"ret_code":200,"err_msg":""}
2021-01-08 14:48:54
2021-01-08 14:48:54 ===>install DCacheConfigServer:
{"data":{"server_conf":{"id":53,"application":"DCache","server_name":"ConfigServer","node_name":"172.16.10.180","server_type":"tars_cpp","enable_set":false,"set_name":null,"set_area":null,"set_group":null,"setting_state":"inactive","present_state":"inactive","bak_flag":false,"template_name":"tars.default","profile":"","async_thread_num":3,"base_path":"","exe_path":"","start_script_path":"","stop_script_path":"","monitor_script_path":"","patch_time":"1970-01-01T05:00:00.000Z","patch_version":"","process_id":0,"posttime":"2021-01-08 01:38:21"},"tars_node_rst":[]},"ret_code":200,"err_msg":""}
2021-01-08 14:48:54
2021-01-08 14:48:54 ===>install PropertyServer:
{"data":{"server_conf":{"id":54,"application":"DCache","server_name":"PropertyServer","node_name":"172.16.10.180","server_type":"tars_cpp","enable_set":false,"set_name":null,"set_area":null,"set_group":null,"setting_state":"inactive","present_state":"inactive","bak_flag":false,"template_name":"DCache.Cache","profile":"","async_thread_num":3,"base_path":"","exe_path":"","start_script_path":"","stop_script_path":"","monitor_script_path":"","patch_time":"1970-01-01T05:00:00.000Z","patch_version":"","process_id":0,"posttime":"2021-01-08 01:38:21"},"tars_node_rst":[]},"ret_code":200,"err_msg":""}
2021-01-08 14:48:54
2021-01-08 14:48:54 ===>install DCacheOptServer.conf:
{"data":{"id":1,"server_name":"DCache.DCacheOptServer","set_name":"","set_area":"","node_name":"","set_group":"","filename":"DCacheOptServer.conf","config":"

\n # admin registry obj\n AdminRegObj = tars.tarsAdminRegistry.AdminRegObj\n \n \n charset = utf8mb4\n dbname = db_tars\n dbhost = 172.16.10.180\n dbport = 3306\n dbuser = root\n dbpass = 123456\n \n \n charset = utf8mb4\n dbname = db_dcache_relation\n dbhost = 172.16.10.180\n dbport = 3306\n dbuser = root\n dbpass = 123456\n \n \n \n # 发布服务线程数\n ThreadCount = 5\n \n \n # 通知node下线服务超时时间(秒)\n Timeout = 20\n # 下线服务备份目录\n BakPath = /data/dcacheuninstall/\n # 下线服务线程数\n ThreadCount = 2\n \n ","level":2,"posttime":"2021-01-08 01:38:21","lastuser":null},"ret_code":200,"err_msg":""}
2021-01-08 14:48:54
2021-01-08 14:48:54 ===>install ConfigServer.conf:
{"data":{"id":3,"server_name":"DCache.ConfigServer","set_name":"","set_area":"","node_name":"","set_group":"","filename":"ConfigServer.conf","config":"\n \n dbhost= 172.16.10.180\n dbpass= 123456\n dbuser= root\n dbname= db_dcache_relation\n charset=utf8mb4\n dbport= 3306\n \n ","level":2,"posttime":"2021-01-08 01:38:21","lastuser":null},"ret_code":200,"err_msg":""}
2021-01-08 14:48:54
2021-01-08 14:48:54 ===>install PropertyServer.conf:
{"data":{"id":5,"server_name":"DCache.PropertyServer","set_name":"","set_area":"","node_name":"","set_group":"","filename":"PropertyServer.conf","config":"\n \n #可监控属性数量的最大值\n PropertyFieldNum=48\n TbNamePre=t_property_realtime\n AppName=dcache_idc5min_147\n #特性监控数据库信息\n \n dbhost=172.16.10.180\n dbname=db_dcache_property\n dbuser=root\n dbpass=123456\n dbport=3306\n charset=utf8mb4\n \n #db_dcache_relation的数据库信息\n \n charset=utf8mb4\n dbname=db_dcache_relation\n dbhost=172.16.10.180\n dbpass=123456\n dbport=3306\n dbuser=root\n \n \n \n #数据入库的时间间隔,单位分钟\n InsertInterval=5\n \n \n # value1 to value20 for obj and tars server fixed property\n CacheObjAdapter.queue = value1\n WCacheObjAdapter.queue = value2\n BinLogObjAdapter.queue = value3\n RouterClientObjAdapter.queue = value4\n ControlAckObjAdapter.queue = value5\n BackUpObjAdapter.queue = value6\n sendrspqueue = value7\n asyncqueue = value8\n memsize = value9\n reservedPro10 = value10\n reservedPro11 = value11\n reservedPro12 = value12\n reservedPro13 = value13\n reservedPro14 = value14\n reservedPro15 = value15\n reservedPro16 = value16\n reservedPro17 = value17\n reservedPro18 = value18\n reservedPro19 = value19\n reservedPro20 = value20\n # value21 for dcache property\n CacheMemSize_MB = value21\n DataMemUsage = value22\n CacheHitRatio = value23\n TotalCountOfRecords = value24\n ProportionOfDirtyRecords = value25\n CountOfDirtyRecords = value26\n CountOfOnlyKey = value27\n M/S_ReplicationErr = value28\n M/S_ReplicationLatency = value29\n CacheError = value30\n ProgramException = value31\n ReadRecordCount = value32\n WriteRecordCount = value33\n evictedRecordCount = value34\n evictedCountOfUnexpiredRecord = value35\n expiredRecordCount = value36\n ChunkUsedPerRecord = value37\n MaxMemUsageOfJmem = value38\n ProportionOfColdData = value39\n DbError = value40\n DbException = value41\n BackupError = value42\n MKV_MainkeyMemUsage = value43\n \n ","level":2,"posttime":"2021-01-08 01:38:22","lastuser":null},"ret_code":200,"err_msg":""}
2021-01-08 14:48:54
mysql: [Warning] Using a password on the command line interface can be insecure.
2021-01-08 14:48:55 exec_dcache create database db_dcache_relation, ret: 0
mysql: [Warning] Using a password on the command line interface can be insecure.
2021-01-08 14:48:55 exec_dcache create database db_dcache_property, ret: 0
mysql: [Warning] Using a password on the command line interface can be insecure.
2021-01-08 14:48:59 curl 172.16.10.180:3000/api/upload_and_publish?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@DConfigServer.tgz -Fapplication=DCache -Fmodule_name=ConfigServer -Fcomment=dcache-install
upload and patch err:TypeError: Cannot read property 'map' of undefined
2021-01-08 14:49:01 curl 172.16.10.180:3000/api/upload_and_publish?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@DCacheOptServer.tgz -Fapplication=DCache -Fmodule_name=DCacheOptServer -Fcomment=dcache-install
upload and patch err:TypeError: Cannot read property 'map' of undefined
2021-01-08 14:49:03 curl 172.16.10.180:3000/api/upload_and_publish?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@PropertyServer.tgz -Fapplication=DCache -Fmodule_name=PropertyServer -Fcomment=dcache-install
upload and patch err:TypeError: Cannot read property 'map' of undefined
2021-01-08 14:49:05 curl 172.16.10.180:3000/api/upload_patch_package?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@RouterServer.tgz -Fapplication=DCache -Fmodule_name=RouterServer -Fcomment=dcache-install
{"data":{"id":85,"server":"DCache.RouterServer","tgz":"DCache.RouterServer_suse_1610087913327.tgz","comment":"dcache-install","posttime":"2021-01-08 01:38:33"},"ret_code":200,"err_msg":""}
2021-01-08 14:49:06 curl 172.16.10.180:3000/api/upload_patch_package?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@CombinDbAccessServer.tgz -Fapplication=DCache -Fmodule_name=CombinDbAccessServer -Fcomment=dcache-install
{"data":{"id":86,"server":"DCache.CombinDbAccessServer","tgz":"DCache.CombinDbAccessServer_suse_1610087913499.tgz","comment":"dcache-install","posttime":"2021-01-08 01:38:33"},"ret_code":200,"err_msg":""}
2021-01-08 14:49:06 curl 172.16.10.180:3000/api/upload_patch_package?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@ProxyServer.tgz -Fapplication=DCache -Fmodule_name=ProxyServer -Fcomment=dcache-install
{"data":{"id":87,"server":"DCache.ProxyServer","tgz":"DCache.ProxyServer_suse_1610087913698.tgz","comment":"dcache-install","posttime":"2021-01-08 01:38:33"},"ret_code":200,"err_msg":""}
2021-01-08 14:49:06 curl 172.16.10.180:3000/api/upload_patch_package?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@KVCacheServer.tgz -Fapplication=DCache -Fmodule_name=DCacheServerGroup -Fcomment=dcache-install -Fpackage_type=1
{"data":{"id":88,"server":"DCache.DCacheServerGroup","tgz":"DCache.DCacheServerGroup_suse_1610087913893.tgz","comment":"dcache-install","posttime":"2021-01-08 01:38:33"},"ret_code":200,"err_msg":""}
2021-01-08 14:49:06 curl 172.16.10.180:3000/api/upload_patch_package?ticket=7677d4ecb9a7d5c6c3013defd8ff35ea12b1d618 -Fsuse=@MKVCacheServer.tgz -Fapplication=DCache -Fmodule_name=DCacheServerGroup -Fcomment=dcache-install -Fpackage_type=2
{"data":{"id":89,"server":"DCache.DCacheServerGroup","tgz":"DCache.DCacheServerGroup_suse_1610087914050.tgz","comment":"dcache-install","posttime":"2021-01-08 01:38:34"},"ret_code":200,"err_msg":""}

这是脚本执行时的输出,DCache ConfigServer DCacheOptServer PropertyServer 这三个服务起不来,求大佬指教!!!
image

@ruanshudong
Copy link
Collaborator

在平台上, 手工把这三个服务启动呢?

@liulinghao0421
Copy link
Author

东爷,手动也不能启动,
TARS_MYSQL_IP: tars数据库的ip //框架数据库IP?还是业务服务具体数据落地保存的数据库iP呢?
TARS_MYSQL_PORT: tars数据库的port //框架数据库端口
TARS_MYSQL_USER: tars数据库的user //框架数据库账号
TARS_MYSQL_PASSWORD: tars数据库的密码 //框架数据库密码
DCACHE_MYSQL_IP: dcache数据库的ip //框架数据库IP?还是业务服务具体数据落地保存的数据库iP端口等信息呢?
DCACHE_MYSQL_PORT: dcache数据库的port
DCACHE_MYSQL_USER: dcache数据库的user
DCACHE_MYSQL_PASSWORD: dcache数据库的密码
WEB_HOST: TARS web平台地址 //平台地址应该要带上3000端口号,我看到
WEB_TOKEN: TARS web平台token(需要进入web平台, 用户中心上, 创建一个Token)
NODE_IP: 公共服务部署节点IP, 部署完成后, 你可以在web平台扩容到多台节点机上 //这个节点IP是框架上的节点还是具体要部署的服务子节点IP呢?

求大佬解惑,感激

@ruanshudong
Copy link
Collaborator

TARS_...这些变量指定框架数据库地址
DCACHE_...这些变量指定dcache db地址, 可以是独立的数据库, 也可以复用框架的
NODE_IP你要部署DCacheOptServer的节点ip, 当然这个节点是需要已经存在的
顺便问一句, 你是谁啊?

@liulinghao0421
Copy link
Author

liulinghao0421 commented Jan 8, 2021

东爷的小粉丝,哈哈哈,向东爷致敬,
我仔细查了一下,发现打出来的这三个发布包是空包,吐血了,但是编译没有报错,顺利编译,生成了执行文件

无标题

@liulinghao0421
Copy link
Author

Uploading 无标题.png…

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

2 participants