简体   繁体   中英

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. Both were running on different VMs.

Lost RunDeck application VM. MySQL still remains. Deployed a new RunDeck Application, and configured it to use existing MySQL. On starting it, got the following error in service.log:

FrameworkException{message='Project does not exist: project-redis_scans', resource='FrameworkProjectMgr{name=name, baseDir=/var/rundeck/projects}'}

There are 4 projects in total which needs to be imported back into RunDeck. What is the right way?

In the rundeck-config.properties file check if the connection url is correct

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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