ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Why am I getting error ?X11 connection rejected because of wrong authentication." when starting the Simulator?


Article ID: 36619


Updated On:


CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)



I'm running into an error starting the Simulator on a unix server. Here are the final lines from the simulator.log:

2016-01-13 15:45:19,517Z (10:45) [pool-6-thread-3] INFO - /tools/android does not exist.

2016-01-13 15:45:19,525Z (10:45) [pool-6-thread-2] INFO - android platform tools not detected

2016-01-13 15:45:19,527Z (10:45) [pool-6-thread-4] WARN AndroidAvdHelper - ANDROID_HOME is not set

2016-01-13 15:45:19,534Z (10:45) [pool-6-thread-4] INFO - getVBoxManageCmd: VBoxManageq

After we get this error, the Simulator exits and prints the error message 'X11 connection rejected because of wrong authentication." to the console.



DevTest 9.0.0, UNIX/Linux



The user being used to start the Simulator was lacking permissions in your .Xauthority. 

The Simulator log showed no errors. The ANDROID_HOME is a warning and will not affect your Simulator running.



The Simulator was using the .Xauthority file from your home directory. The permissions on that file were rw------- and it was then changed to rw-rw-rw-.        

The Simulator was able to start and is running with no issues. Need to work with your Unix admins to get this set up to use its own X11 files.


Component: ITKOTF