我通过复制整个/ var / lib / jenkins目录迁移了我的jenkins环境。现在之后我可以打开jenkins的网站,但是在记录后没有任何反应。如果我提供有效的信用额度,网站开始加载,但没有任何反应,提供无效登录后传递网站返回消息,信息再次尝试(所以jenkins以某种方式通过检查用户名和密码,但不加载主页)。
我需要帮助来解决这个问题。你可以帮帮我吗?我的日志文件(最后几行)如下所示:
INFO: Completed initialization
Jun 03, 2016 4:15:35 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@bfff1c: display name [Root WebApplicationContext]; startup date [Fri Jun 03 16:15:35 CEST 2016]; root of context hierarchy
Jun 03, 2016 4:15:35 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@bfff1c]: org.springframework.beans.factory.support.DefaultListableBeanFactory@c0c0ee4
Jun 03, 2016 4:15:35 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c0c0ee4: defining beans [filter,legacy]; root of factory hierarchy
Jun 03, 2016 4:15:35 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Jun 03, 2016 4:15:35 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Jun 03, 2016 4:15:35 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Jun 03, 2016 4:15:35 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Jun 03, 2016 4:15:35 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Jun 03, 2016 4:15:35 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Jun 03, 2016 4:15:35 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Jun 03, 2016 4:15:35 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
[06/03/16 16:15:36] SSH Launch of slave-01 on 192.168.14.11 failed in 2,482 ms
[06/03/16 16:15:36] SSH Launch of slave1 on 192.x.x.x failed in 2,483 ms
[06/03/16 16:15:36] SSH Launch of slave2 on 192.x.x.x failed in 2,484 ms
正如您所见,初始化完成且没有错误。
我在本教程中已经在ubuntu上安装了jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu +当然还安装了openjdk-7-jre和openjdk-7-jdk。
答案 0 :(得分:1)
在不知道移动哪些信息的情况下迁移目录不是最佳做法。在您的 $ JENKINS_HOME 下,您将拥有一个名为 config.xml 的文件。打开它并搜索<useSecurity>
标记。将其更改为已禁用 - 这将允许您以匿名方式访问Jenkins。
转到管理Jenkins - &gt; 安全并输入您的凭据(或配置您选择的安全方法)并保存,以解决您的问题。