简体   繁体   English

如何将MySQL中现有的RunDeck项目导入回新的RunDeck?

[英]How to import existing RunDeck projects in MySQL back to new RunDeck?

Had a RunDeck installation which was configured (by some one else who no longer works and made no documentation) to store all meta-data in MySQL. 进行了RunDeck安装,该安装已配置(由其他不再工作且没有任何文档的人配置)以将所有元数据存储在MySQL中。 Both were running on different VMs. 两者都在不同的VM上运行。

Lost RunDeck application VM. 丢失的RunDeck应用程序VM。 MySQL still remains. MySQL仍然存在。 Deployed a new RunDeck Application, and configured it to use existing MySQL. 部署了一个新的RunDeck应用程序,并将其配置为使用现有的MySQL。 On starting it, got the following error in service.log: 启动它时,service.log中出现以下错误:

FrameworkException{message='Project does not exist: project-redis_scans', resource='FrameworkProjectMgr{name=name, baseDir=/var/rundeck/projects}'} FrameworkException {消息='项目不存在:project-redis_scans',资源='FrameworkProjectMgr {名称=名称,baseDir = / var / rundeck /项目}'}

There are 4 projects in total which needs to be imported back into RunDeck. 总共有4个项目需要导入回RunDeck。 What is the right way? 正确的方法是什么?

In the rundeck-config.properties file check if the connection url is correct 在rundeck-config.properties文件中,检查连接URL是否正确

dataSource.dbCreate = update
dataSource.url = jdbc:mysql://localhost:3306/rundeck?autoReconnect=true
dataSource.username=root
rundeck.security.useHMacRequestTokens=false

replace localhost with ip of the VM also check if your new VM is able to telnet to the mysql VM on port 3306 用虚拟机的ip替换localhost还检查您的新虚拟机是否能够通过端口3306 telnet到mysql虚拟机

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM