Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70501

swarm-plugin stops reconnection if controller is starting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • swarm-plugin
    • None
    • jenkins 2.375.2
      swarm 3.39

      When the controller was last restarting, some swarm agents never re-appeared. Some hours after that I logged in to check on them, and found the last logged interaction was the HTML response about "Starting Jenkins"; a retry after that never happened:

      # Tail of journal:
      Jan 26 14:10:27 nutci-debian-11-amd64 swarm-client-nutci.sh[153]: INFO: Retrying in 10 seconds
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]: Jan 26, 2023 2:10:37 PM hudson.plugins.swarm.Client run
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]: INFO: Attempting to connect to https://ci.networkupstools.org/
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]: Jan 26, 2023 2:10:37 PM hudson.plugins.swarm.SwarmClient getCsrfCrumb
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]: SEVERE: Could not obtain CSRF crumb. Response code: 503
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]:
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]:
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]:     <!DOCTYPE html><html lang="en"><head resURL="/static/6728fa46" data-rooturl="" data-resurl="/static/6728fa46" data-imagesurl="/static/6728fa46/images"><title>Starting Jenkins</title><meta name="ROBOTS" content="NOFOLLOW"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/static/6728fa46/jsbundles/simple-page.css" type="text/css"><link rel="stylesheet" href="/static/6728fa46/css/loading.css" type="text/css"></head><body><div class="simple-page" role="main"><div class="modal signup"><div class="signupIntroDefault"><div class="logo"><img src="/static/6728fa46/images/svgs/logo.svg" alt="Jenkins logo"></div><h1 class="loading">
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]:                             Please wait while Jenkins is getting ready to work
      Jan 26 14:10:37 nutci-debian-11-amd64 swarm-client-nutci.sh[153]:                             <span>.</span><span>.</span><span>.</span></h1><p class="restarting">Your browser will reload automatically when Jenkins is ready.</div></div></div><script src="/static/6728fa46/scripts/loading.js" type="text/javascript"></script></body></html>
      ^C
      
      :; date
      Thu Jan 26 17:36:21 UTC 2023

      This is a large inconvenience - to recover I have to log into the workers or have a way to reboot them, after I notice they are AWOL at all.

            jimklimov Jim Klimov
            jimklimov Jim Klimov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: