简体   繁体   English

Jenkins启动问题(hudson.util.HudsonFailedToLoad:java.lang.Error:无法加载密钥:hudson.util.Secret)

[英]Jenkins Start up issue (hudson.util.HudsonFailedToLoad: java.lang.Error: Failed to load the key: hudson. util.Secret)

Hi I wanted to integrate my selenium automation framework from bitbucket to Jenkins . 嗨,我想将我的硒自动化框架从bitbucket集成到Jenkins。 I have installed jenkins-2.107.2(jenkins.msi) , after that i downloaded jenkins war(2.116) file and tried to execute from command prompt (java -jar jenkins.war) from the respective path where war file is present 我已经安装了jenkins-2.107.2(jenkins.msi) ,之后我下载了jenkins war(2.116)文件并尝试从存在war文件的相应路径从命令提示符(java -jar jenkins.war)执行

but in cmd prompt i get below error. 但是在cmd提示符下我得到以下错误。

enter code here

C:\\Jenkins>java -jar jenkins.war C:\\ Jenkins> java -jar jenkins.war

Have copied and pasted only the error part from cmd prompt 从cmd提示中仅复制并粘贴了错误部分

←[31mApr 12, 2018 5:50:54 PM hudson.util.BootFailure publishSEVERE: Failedto initialize Jenkinshudson.util.HudsonFailedToLoad: java.lang.Error: Failed toloadthe key: hudson.util.Secret

While lauching localhost http://localhost:8080/ i get the below error 启动localhost http:// localhost:8080 /时 ,出现以下错误

java.nio.file.AccessDeniedException: C:\Users\SSUSEEL\.jenkins\secrets\hudson.util.Secret
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.spi.FileSystemProvider.newOutputStream(Unknown Source)
at java.nio.file.Files.newOutputStream(Unknown Source)
at jenkins.security.DefaultConfidentialStore.store(DefaultConfidentialStore.java:79)
at jenkins.security.ConfidentialKey.store(ConfidentialKey.java:51)
at jenkins.security.CryptoConfidentialKey.getKey(CryptoConfidentialKey.java:44)

Caused: java.lang.Error: Failed to load the key: hudson.util.Secret
    at jenkins.security.CryptoConfidentialKey.getKey(CryptoConfidentialKey.java:53)
    at jenkins.security.CryptoConfidentialKey.decrypt(CryptoConfidentialKey.java:134)
    at hudson.util.HistoricalSecrets.decrypt(HistoricalSecrets.java:49)
    at hudson.util.Secret.decrypt(Secret.java:207)
    at hudson.util.Secret.fromString(Secret.java:249)
    at jenkins.security.ApiTokenProperty.<init>(ApiTokenProperty.java:86)
    at jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:179)
    at jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:164)
    at hudson.model.User.load(User.java:209)
    at hudson.model.User.<init>(User.java:161)
    at hudson.model.User.getOrCreate(User.java:531)
    at hudson.model.User.getOrCreate(User.java:479)
    at hudson.model.User.getById(User.java:636)
    at hudson.security.HudsonPrivateSecurityRealm.createAccount(HudsonPrivateSecurityRealm.java:406)
    at jenkins.install.SetupWizard.init(SetupWizard.java:110)
    at jenkins.install.InstallState$4.initializeState(InstallState.java:110)
    at jenkins.model.Jenkins.setInstallState(Jenkins.java:1035)
    at jenkins.install.InstallUtil.proceedToNextStateFrom(InstallUtil.java:97)
    at jenkins.install.InstallState$1.initializeState(InstallState.java:55)
    at jenkins.model.Jenkins.<init>(Jenkins.java:923)
    at hudson.model.Hudson.<init>(Hudson.java:85)
    at hudson.model.Hudson.<init>(Hudson.java:81)
    at hudson.WebAppMain$3.run(WebAppMain.java:233)
Caused: hudson.util.HudsonFailedToLoad
    at hudson.WebAppMain$3.run(WebAppMain.java:24

Can some one help me .. Thank you . 有人可以帮我吗..谢谢。

You have not written what is your OS, I assume it is Windows because you have downloaded msi file. 您尚未编写什么操作系统,我假设它是Windows,因为您已经下载了msi文件。

I would stick to the current LTS version 2.107.2 and the msi. 我会坚持使用当前的LTS版本2.107.2和msi。 The msi should have installed the Jenkins master as Windows service . 该msi应该已经安装了Jenkins master作为Windows服务 I would not attempt to use the war file 2.116 on Windows. 我不会尝试在Windows上使用war文件2.116。 It is currently not the LTS version and could be not stable enough. 它当前不是LTS版本,可能不够稳定。 This thread can help you. 线程可以为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker 文件 - 主 jenkins - hudson.util.HudsonFailedToLoad - Docker file - Master jenkins - hudson.util.HudsonFailedToLoad Jenkins hudson.util.IOException2:远程文件操作失败 - Jenkins hudson.util.IOException2: remote file operation failed java.lang.NoClassDefFoundError:无法初始化类hudson.util.ProcessTree $ UnixReflection - java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection Jenkins构建错误java.lang.ClassNotFoundException:hudson.remoting.Launcher - Jenkins Build error java.lang.ClassNotFoundException: hudson.remoting.Launcher Hudson构建总是以“java.lang.OutOfMemoryError:Java堆空间”错误结束 - Hudson build always end up in “java.lang.OutOfMemoryError: Java heap space” error 使用Hudson发布Maven。 发布成功,但哈德森仍然保持红色 - Maven release using Hudson. Release succeeds, But Hudson stays red 关于哈德逊 Java 编译的问题 - Issue regarding Java Compilation in Hudson 检测Hudson执行中的Java错误 - Detect java error in Hudson execution 无法启动 bean &#39;stompBrokerRelayMessageHandler&#39;; 嵌套异常是 java.lang.NoClassDefFoundError: io/netty/util/concurrent/EventExecutor - Failed to start bean 'stompBrokerRelayMessageHandler'; nested exception is java.lang.NoClassDefFoundError: io/netty/util/concurrent/EventExecutor Java EE在Hudson / Jenkins中提供了依赖项 - Java EE Provided dependencies in Hudson / Jenkins
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM