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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      After 1.487 update from 1.486, MacOS agent 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

            Assignee:
            Unassigned
            Reporter:
            andrey regentov
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: