微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在“日志输出”模式下看不到Rundeck作业输出

如何解决在“日志输出”模式下看不到Rundeck作业输出

我在Red Hat 7.9上运行Rundeck 3.3.5,它在Nginx反向代理后面运行。

我有一个问题,我无法使作业输出显示在Rundeck中。当我执行跟随执行:日志输出时,它不起作用。 当我使用HTML进行操作时,它确实起作用。

我查看了安全性,但是如果HTML可以看到它,那么Rundeck也应该这样做。我检查它是否将输出记录到文件中,并且确实如此。

如何获取作业的输出以在“日志输出”状态下显示

根据其中一项评论的要求,这是我的工作:

- defaultTab: output
  description: ddddd
  executionEnabled: true
  id: f5b09296-abae-4e51-9396-8d72b2f58162
  loglevel: INFO
  name: Start de Issue service op Test
  nodeFilterEditable: false
  plugins:
    ExecutionLifecycle: null
  scheduleEnabled: true
  sequence:
    commands:
    - script: echo "hallo"
    keepgoing: false
    strategy: node-first
  uuid: f5b09296-abae-4e51-9396-8d72b2f58162

我将包含配置文件

#Fri Nov 13 11:38:37 CET 2020
#edit below
project.description=All jobs needed for cybersterk
project.disable.executions=false
project.disable.schedule=false
project.execution.history.cleanup.batch=500
project.execution.history.cleanup.enabled=false
project.execution.history.cleanup.retention.days=60
project.execution.history.cleanup.retention.minimum=50
project.execution.history.cleanup.schedule=0 0 0 1/1 * ? *
project.gui.readme.display=projectHome
project.jobs.gui.groupExpandLevel=1
project.label=Cybersterk
project.name=CyberSterk
project.output.allowUnsanitized=true
project.ssh-authentication=privateKey
project.ssh-command-timeout=0
project.ssh-connect-timeout=0
project.ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
resources.source.1.type=local
service.Filecopier.default.provider=jsch-scp
service.NodeExecutor.default.provider=jsch-ssh

很抱歉这样做,但是我解决了。 这是Nginx / Rundeck配置问题。 找到了解决方案:Rundeck reverse proxy behind Nginx

当我开始时,我不知道它是在Nginx之后。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。