timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-15627] Using MacOS slave in 1.487 - Can't connect to window server - not enough permissions #2657

Open timja opened 11 years ago

timja commented 11 years ago

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


Originally reported by andrey_regentov, imported from: Using MacOS slave in 1.487 - Can't connect to window server - not enough permissions
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 11 years ago

ndirons:

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.

timja commented 11 years ago

yannj:

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

timja commented 11 years ago

pickgr1:

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

timja commented 11 years ago

dallysoft:

Thanks for the work around.

timja commented 9 years ago

oleg_nenashev:

Does this issue appear in newest Jenkins versions?

timja commented 9 years ago

marscher:

also affects Jenkins ver. 1.584

timja commented 9 years ago

lata:

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.