Bug #30742 agent inst on MacOSX tries window connection even if called with "--mode text"
Submitted: 31 Aug 2007 7:49 Modified: 22 Mar 2010 9:08
Reporter: Carsten Segieth Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S3 (Non-critical)
Version:1.2.0.7355...2.2.0.1651 OS:Mac OS X
Assigned to: Assigned Account CPU Architecture:Any
Tags: mer 121, platforms

[31 Aug 2007 7:49] Carsten Segieth
Description:
Even if the install is called with option '--mode text' in a ssh prompt it tries to open a window connection:

osx-tiger-ppc:/nfstmp1/merlin mysqldev$ /tmp/mysqlnetworkagent-1.2.0.7355-osx-installer.app/Contents/MacOS/installbuilder --mode text
kCGErrorRangeCheck : Window Server communications from outside of session allowed for root and console user only
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort trap

How to repeat:
- open ssh connection to MacOSX
- start installer with '--mode text'

Suggested fix:
- don't try to do any window connection in text mode
[12 Sep 2007 20:49] Peter Lavin
Added to "Known issues".
[6 May 2008 16:57] Carsten Segieth
same problem for service manager 1.2.0.7879 uninstaller, so it looks this problem is present for all calls of the 'installbuilder'.
[6 May 2008 17:00] Carsten Segieth
sorry, for the service manager uninstall, it works when called from a ssh session with option '--mode text', then no GUI is opened.
Only when calling without option from a ssh shell it could be better solved that no GUI question box is opened "somewhere". Just do it like on Linux, here no GUI is opened when called from a command line.
[22 Mar 2010 9:08] Carsten Segieth
The installer 2.2.0.1651 works without showing the problem. But when the installer is called without '--mode text', e.g. with '--help' only, I still see the problem, but when adding '--mode text' to the commandline it works:

osx-tiger-ppc:/tmp mysqldev$ /tmp/mysqlmonitoragent-2.2.0.1651-osx-installer.app/Contents/MacOS/installbuilder.sh --help
kCGErrorRangeCheck : Window Server communications from outside of session allowed for root and console user only
INIT_Processeses(), could not establish the default connection to the WindowServer./tmp/mysqlmonitoragent-2.2.0.1651-osx-installer.app/Contents/MacOS/
installbuilder.sh: line 11: 15059 Abort trap              "`dirname \"${0}\"`/$executable" "$@"

osx-tiger-ppc:/tmp mysqldev$ /tmp/mysqlmonitoragent-2.2.0.1651-osx-installer.app/Contents/MacOS/installbuilder.sh --help --mode text
MySQL Enterprise Monitor Agent 2.2.0.1651
Usage:

 --help                         Display the list of valid options

 --version                      Display product information
[...]

This was started in a SSH session where I do not have any UI access.
[13 Aug 2010 16:25] Enterprise Tools JIRA Robot
Andy Bang writes: 
Try to detect if you can't open a window and default to text mode. If that's not possible, at least do --help in text mode by default.
[11 Nov 2010 7:22] Carsten Segieth
still present with 2.3.0.2036