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

Using MacOS slave in 1.487 - Can't connect to window server - not enough permissions

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After 1.487 update from 1.486, MacOS slave refused to run. It was configured to run through SSH.

      Log messages shown are attached, main lines are:

      java.io.IOException: Remote call on iOS failed
      Caused by: java.lang.InternalError: Can't connect to window server - not enough permissions.
      

      If I log in as this user on the Mac, slave works well: it has window server when the user is logged in. But as soon as the user logs out - slave falls offline with message

      ERROR: Connection terminated
      java.io.IOException: Unexpected termination of the channel
      

      The issue resolves completely if I specify -Djava.awt.headless=true in JVM options in "nodes" configuration.
      But it is surely a regression as compared to 1.486.

      (wasn't sure what component to assign this issue to, so selected everything with "slave" word on it. Sorry for that if it's an inconvenience)

      UPD: Meant "MacOS", not iOS

        Attachments

          Activity

          andrey_regentov andrey regentov created issue -
          Hide
          ndirons Nathaniel Irons added a comment -

          Thanks for the workaround. We saw the same failure after updating from 1.486 to 1.490. Our 10.7.5 build nodes were dead in the water.

          Show
          ndirons Nathaniel Irons added a comment - Thanks for the workaround. We saw the same failure after updating from 1.486 to 1.490. Our 10.7.5 build nodes were dead in the water.
          andrey_regentov andrey regentov made changes -
          Field Original Value New Value
          Description After 1.487 update from 1.486, iOS slave refused to run. It was configured to run through SSH.

          Log messages shown are attached, main lines are:
          {noformat}
          java.io.IOException: Remote call on iOS failed
          Caused by: java.lang.InternalError: Can't connect to window server - not enough permissions.
          {noformat}

          If I log in as this user on the Mac, slave works well: it has window server when the user is logged in. But as soon as the user logs out - slave falls offline with message

          (wasn't sure what component to assign this issue to, so selected everything with "slave" word on it. Sorry for that if it's an inconvenience)
          {noformat}
          ERROR: Connection terminated
          java.io.IOException: Unexpected termination of the channel
          {noformat}

          The issue resolves completely if I specify -Djava.awt.headless=true in JVM options in "nodes" configuration.
          But it is surely a regression as compared to 1.486.
          After 1.487 update from 1.486, MacOS slave refused to run. It was configured to run through SSH.

          Log messages shown are attached, main lines are:
          {noformat}
          java.io.IOException: Remote call on iOS failed
          Caused by: java.lang.InternalError: Can't connect to window server - not enough permissions.
          {noformat}

          If I log in as this user on the Mac, slave works well: it has window server when the user is logged in. But as soon as the user logs out - slave falls offline with message

          {noformat}
          ERROR: Connection terminated
          java.io.IOException: Unexpected termination of the channel
          {noformat}

          The issue resolves completely if I specify -Djava.awt.headless=true in JVM options in "nodes" configuration.
          But it is surely a regression as compared to 1.486.

          (wasn't sure what component to assign this issue to, so selected everything with "slave" word on it. Sorry for that if it's an inconvenience)

          UPD: Meant "MacOS", not iOS
          Environment linux master running 1.487, iOS slave linux master running 1.487, MacOS slave
          Labels fail iOS regression slave Mac fail regression slave
          Summary Using iOS slave in 1.487 - Can't connect to window server - not enough permissions Using MacOS slave in 1.487 - Can't connect to window server - not enough permissions
          Hide
          yannj Yann Jouanin added a comment -

          Workaround : add JVM options -Djava.awt.headless=true , this disabled the use of ui

          Show
          yannj Yann Jouanin added a comment - Workaround : add JVM options -Djava.awt.headless=true , this disabled the use of ui
          Hide
          pickgr1 pickgr added a comment -

          Thanks for the work-around. Unfortunately, this appears to affect the LTS release line as well.

          Show
          pickgr1 pickgr added a comment - Thanks for the work-around. Unfortunately, this appears to affect the LTS release line as well.
          Hide
          dallysoft dally soft added a comment -

          Thanks for the work around.

          Show
          dallysoft dally soft added a comment - Thanks for the work around.
          oleg_nenashev Oleg Nenashev made changes -
          Component/s core [ 15593 ]
          Component/s slave-setup-plugin [ 15929 ]
          Component/s slave-status [ 15981 ]
          Component/s slave-squatter [ 16076 ]
          Component/s slave-prerequisites [ 16521 ]
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Does this issue appear in newest Jenkins versions?

          Show
          oleg_nenashev Oleg Nenashev added a comment - Does this issue appear in newest Jenkins versions?
          Hide
          marscher Martin Scherer added a comment -

          also affects Jenkins ver. 1.584

          Show
          marscher Martin Scherer added a comment - also affects Jenkins ver. 1.584
          Hide
          lata lata kopalle added a comment -

          thanks for the workaround Andrey, it just saved our day.
          Our Jenkins version: 1.533, Master on windows.
          Issue seen with on Mac OS X 10.9 slave.

          Show
          lata lata kopalle added a comment - thanks for the workaround Andrey, it just saved our day. Our Jenkins version: 1.533, Master on windows. Issue seen with on Mac OS X 10.9 slave.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 146383 ] JNJira + In-Review [ 176604 ]
          ndeloof Nicolas De Loof made changes -
          Assignee Nicolas De Loof [ ndeloof ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrey_regentov andrey regentov
            Votes:
            10 Vote for this issue
            Watchers:
            21 Start watching this issue

              Dates

              Created:
              Updated: