Why does Jenkins say “This Jenkins instance appears to be offline”

前端 未结 14 1548
野性不改
野性不改 2020-12-04 21:44

I have a fresh install of Jenkins 2.32.2 on Ubuntu. Opened a browser on the instance and get to a page titled Offline, with the message \"This Jenki

14条回答
  •  悲哀的现实
    2020-12-04 22:07

    There is something wrong with the internet connection of update center.I have met the same situation with Jenkins installed on macOS.

    You can try to modify the hudson.model.UpdateCenter.xml file.

    Jenkins installed with .pkg package on macOS,the file path is:
    /Users/Shared/Jenkins/Home/hudson.model.UpdateCenter.xml

    Jenkins installed by Homebrew on macOS,the file path is:
    /Users/{username}/.jenkins/hudson.model.UpdateCenter.xml

    Open the file:

    
    
      
        default
        https://updates.jenkins.io/update-center.json
      
    
    

    You can try to change https://updates.jenkins.io/update-center.json to:

    http://updates.jenkins.io/update-center.json
    

    or

    // If you are in China or near China area,https and http are both OK.
    https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json
    

    And then you can restart Jenkins by:

    //loading the URL to restart Jenkins.
    http://localhost:8080/restart
    

    or

    // Use Homebrew command to restart Jenkins if you installed Jenkins LTS version by Homebrew.  
    brew services restart jenkins-lts
    

提交回复
热议问题