我在Ubuntu上安装了jenkins,当我尝试运行代理以创建节点时,我得到了IOException:

Failing to obtain http://<Master IP>:8090/computer/<Slave IP>/slave-agent.jnlp
java.io.IOException: Failed to load http://<Master IP>:8090/computer/<Slave IP>/slave-agent.jnlp: 403 Forbidden
        at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:499)
        at hudson.remoting.Launcher.run(Launcher.java:325)
        at hudson.remoting.Launcher.main(Launcher.java:283)


据我所知iptables没有启动,我找不到它的原因。

最佳答案

使用此选项:-jnlpCredentials USER:PASSWORD

USER是您的Jenkins用户ID

10-08 18:10