使用路径键/ projects / $ {job.project} / nodes / $ {node.name} /rundeck.password在Rundeck 2.4.0中使用ssh-password-storage-path指定新节点时,运行dede无法找到以下错误的路径:
2015-03-06 10:14:59,088 [Thread-97]错误com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepPluginAdapter - 执行节点步骤时出错。 com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepException:com.dtolabs.rundeck.core.execution.service.FileCopierException:配置错误:无法读取存储在路径中的SSH密码:keys / projects / Test /节点/ WindowsNode / rundeck.password at com.dtolabs.rundeck.plugin.copyfile.CopyFileNodeStepPlugin.executeNodeStep(CopyFileNodeStepPlugin.java:59) 在com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepPluginAdapter.executeNodeStep(NodeStepPluginAdapter.java:106) at com.dtolabs.rundeck.core.execution.ExecutionServiceImpl.executeNodeStep(ExecutionServiceImpl.java:149) 在com.dtolabs.rundeck.core.execution.dispatch.SequentialNodeDispatcher.dispatch(SequentialNodeDispatcher.java:116) at com.dtolabs.rundeck.core.execution.dispatch.SequentialNodeDispatcher.dispatch(SequentialNodeDispatcher.java:58) at com.dtolabs.rundeck.core.execution.ExecutionServiceImpl.dispatchToNodes(ExecutionServiceImpl.java:177) 在com.dtolabs.rundeck.core.execution.workflow.steps.NodeDispatchStepExecutor.executeWorkflowStep(NodeDispatchStepExecutor.java:66) 在com.dtolabs.rundeck.core.execution.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:116) 在com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWFItem(BaseWorkflowStrategy.java:166) 在com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWorkflowItemsForNodeSet(BaseWorkflowStrategy.java:226) 在com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWorkflowItemsForNodeSet(BaseWorkflowStrategy.java:193) 在com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy.executeWorkflowImpl(StepFirstWorkflowStrategy.java:79) 在com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWorkflow(BaseWorkflowStrategy.java:124) 在com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy $ DispatchedWorkflow.dispatch(NodeFirstWorkflowStrategy.java:366) 在com.dtolabs.rundeck.core.execution.dispatch.SequentialNodeDispatcher.dispatch(SequentialNodeDispatcher.java:118) at com.dtolabs.rundeck.core.execution.dispatch.SequentialNodeDispatcher.dispatch(SequentialNodeDispatcher.java:64) 在com.dtolabs.rundeck.core.execution.ExecutionServiceImpl.dispatchToNodes(ExecutionServiceImpl.java:196) 在com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy.executeWFSectionNodeDispatch(NodeFirstWorkflowStrategy.java:178) 在com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy.executeWorkflowImpl(NodeFirstWorkflowStrategy.java:107) 在com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWorkflow(BaseWorkflowStrategy.java:124) 在com.dtolabs.rundeck.core.execution.WorkflowExecutionServiceThread.run(WorkflowExecutionServiceThread.java:55) 引起:com.dtolabs.rundeck.core.execution.service.FileCopierException:配置错误:无法读取存储在路径中的SSH密码:keys / projects / Test / nodes / WindowsNode / rundeck.password 在com.dtolabs.rundeck.core.execution.impl.jsch.JschScpFileCopier.copyFile(JschScpFileCopier.java:157) 在com.dtolabs.rundeck.core.execution.impl.jsch.JschScpFileCopier.copyFile(JschScpFileCopier.java:212) 在com.dtolabs.rundeck.core.execution.ExecutionServiceImpl.fileCopyFile(ExecutionServiceImpl.java:261) at com.dtolabs.rundeck.plugin.copyfile.CopyFileNodeStepPlugin.executeNodeStep(CopyFileNodeStepPlugin.java:52) ......还有20个 引起:com.dtolabs.rundeck.core.tasks.net.SSHTaskBuilder $ BuilderException:无法读取存储在路径中的SSH密码:keys / projects / Test / nodes / WindowsNode / rundeck.password 在com.dtolabs.rundeck.core.tasks.net.SSHTaskBuilder.configureSSHBase(SSHTaskBuilder.java:572) 在com.dtolabs.rundeck.core.tasks.net.SSHTaskBuilder.buildScp(SSHTaskBuilder.java:628) 在com.dtolabs.rundeck.core.tasks.net.SSHTaskBuilder.buildScp(SSHTaskBuilder.java:608) 在com.dtolabs.rundeck.core.execution.impl.jsch.JschScpFileCopier.copyFile(JschScpFileCopier.java:154) ......还有23个 引起:org.rundeck.storage.api.StorageException:路径不存在:keys / projects / Test / nodes / WindowsNode / rundeck.password 在org.rundeck.storage.api.StorageException.readException(StorageException.java:37) 在org.rundeck.storage.data.file.FileTree.loadResource(FileTree.java:61) 在org.rundeck.storage.data.file.FileTree.getResource(FileTree.java:42) 在org.rundeck.storage.impl.DelegateTree.getResource(DelegateTree.java:40) 在org.rundeck.storage.impl.DelegateTree.getResource(DelegateTree.java:40) 在org.rundeck.storage.conf.ListenerTree.getResource(ListenerTree.java:54) 在org.rundeck.storage.impl.DelegateTree.getResource(DelegateTree.java:40) 在org.rundeck.storage.conf.ConverterTree.getResource(ConverterTree.java:53) 在org.rundeck.storage.impl.DelegateTree.getResource(DelegateTree.java:40) 在org.rundeck.storage.conf.ConverterTree.getResource(ConverterTree.java:53) 在org.rundeck.storage.impl.DelegateTree.getResource(DelegateTree.java:40) 在com.dtolabs.rundeck.core.storage.AuthRundeckStorageTree.getResource(AuthRundeckStorageTree.java:130) 在com.dtolabs.rundeck.core.storage.AuthRundeckStorageTree.getResource(AuthRundeckStorageTree.java:18) 在com.dtolabs.rundeck.core.storage.ResolvedExtTree.getResource(ResolvedExtTree.java:52) at com.dtolabs.rundeck.core.execution.impl.jsch.JschNodeExecutor $ NodeSSHConnectionInfo.getPasswordStorageData(JschNodeExecutor.java:540) 在com.dtolabs.rundeck.core.tasks.net.SSHTaskBuilder.configureSSHBase(SSHTaskBuilder.java:563) ......还有26个
最初,我将keys目录放在RDECK_BASE目录下,但这似乎不正确。此外,放置绝对路径失败,并显示错误'配置错误:SSH密码存储路径应以" keys /"'开头。此外,尝试通过GUI添加默认存储路径时出现错误:'找不到路径:键'。键目录的相对路径应该在哪里,所以我不会尝试在驱动器的每个子目录下添加一个键目录。
答案 0 :(得分:3)
如果您安装了rpm,则会在以下位置找到密钥 的/ var / lib中/ rundeck的/ var /存储/内容/键/
如果您已将密钥移至其他位置,请务必使用 chown 和 chmod 命令为用户运行rundeck设置权限