Bug #47042 agent fails to start up after snow leopard upgrade
Submitted: 1 Sep 2009 14:43 Modified: 7 Jan 2010 18:25
Reporter: Lig Isler-Turmelle Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S2 (Serious)
Version:2.0.5 OS:MacOS (snow leopard)
Assigned to: Kent Boortz CPU Architecture:Any

[1 Sep 2009 14:43] Lig Isler-Turmelle
Description:
Upgraded to snow leopard and tried to start a MEM agent.

Got the following error:
Macintosh-6:replication ligaya$ ./Master.5.1.34sp1/MEM_agent/etc/init.d/mysql-monitor-agent start
Starting MySQL Enterprise agent service...
./Master.5.1.34sp1/MEM_agent/etc/init.d/mysql-monitor-agent: line 175:   861 Trace/BPT trap          nohup $MERLIN_AGENT_ROOTDIR/bin/mysql-monitor-agent $MERLIN_AGENT_OPTIONS > /dev/null
 ERROR! MySQL Enterprise agent failed to start.

When I tried to get the agent version I also got:
Macintosh-6:replication ligaya$ ./Master.5.1.34sp1/MEM_agent/bin/mysql-monitor-agent -v
dyld: Library not loaded: /usr/lib/libxml2.2.dylib
  Referenced from: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
  Reason: Incompatible library version: DictionaryServices requires version 10.0.0 or later, but libxml2.2.dylib provides version 9.0.0
Trace/BPT trap

How to repeat:
upgrade to snow leopard and try to start an agent

Suggested fix:
unknown
[1 Sep 2009 14:49] MySQL Verification Team
I used previously installed 2.0.5 MEM binaries.  If I remember correctly it was:
mysqlmonitoragent-2.0.5.7153-osx10.5-x86-installer.app.zip
[14 Sep 2009 11:44] Meni Meller
Same error happens with build 2.0.6.7159 of mysqlmonitoragent
[22 Sep 2009 18:38] Kent Boortz
Mac OS X comes with libxml, we should not bundle it on that
platform, creating conflicts like this.

This is now corrected in the 2.0 build setup, needs to
be rebuilt and reverified.
[23 Sep 2009 9:13] Meni Meller
I've tried your latest (2.1.0.1093 and the error persists,
[24 Sep 2009 14:31] Enterprise Tools JIRA Robot
Keith Russell writes: 
This patch is available in agent installer versions => 2.0.7.7168 for osx10.5-x86 and osx10.5-ppc32.
[29 Sep 2009 10:18] Meni Meller
I have tried installing using the suggested build and it doesn't work.
File tested: nysqlmonitoragent-2.0.7.7168-osx-installer.app (Downloaded the 64bit agent install
OS version : OS X 10.6.1
[1 Oct 2009 17:12] Enterprise Tools JIRA Robot
Bill Weber writes: 
tested the 2.0.7.7168 for osx10.5-x86, mysqlmonitoragent-2.0.7.7168-osx10.5-x86-installer.app.zip (note 32bit), agent on mac osx 10.6.1 (snow leopard) with the 2.0.6 monitor without any problems
[2 Oct 2009 14:21] Tony Bedford
An entry was added to the 2.0.7 changelog:

After upgrading to Mac OS X Snow Leopard, the following error was generated when starting an agent:

Macintosh-6:replication ligaya$
./Master.5.1.34sp1/MEM_agent/etc/init.d/mysql-monitor-agent start
Starting MySQL Enterprise agent service...
./Master.5.1.34sp1/MEM_agent/etc/init.d/mysql-monitor-agent: line 175:   861 Trace/BPT
trap          nohup $MERLIN_AGENT_ROOTDIR/bin/mysql-monitor-agent $MERLIN_AGENT_OPTIONS >
/dev/null
 ERROR! MySQL Enterprise agent failed to start.

Further, when attempting to display the agent version the following error was generated:

Macintosh-6:replication ligaya$ ./Master.5.1.34sp1/MEM_agent/bin/mysql-monitor-agent -v
dyld: Library not loaded: /usr/lib/libxml2.2.dylib
  Referenced from:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices
.framework/Versions/A/DictionaryServices
  Reason: Incompatible library version: DictionaryServices requires version 10.0.0 or
later, but libxml2.2.dylib provides version 9.0.0
Trace/BPT trap
[27 Nov 2009 11:49] MySQL Verification Team
The same problem happens on MEM 2.1.0 agent installer too. Please fix it. The version in question is mysqlmonitoragent-2.1.0.1093-osx-installer.app.
[22 Dec 2009 12:05] Kent Boortz
We no longer bundle libxml in the agent package on Mac OS X, that caused the
problem described in this bug report. We instead uses the system libxml.

You might want to open a separate bug report about the installer.
[7 Jan 2010 18:25] Marcos Palacios
Closing since the 2.1 agent installer bug has been entered as http://bugs.mysql.com/bug.php?id=50126
[8 Jan 2010 1:00] Marcos Palacios
Editing out "2.1.0" from "Version" since the 2.1 bug (Bug #50126) is about the agent installer whereas the 2.0 bug (Bug #47042) is about the agent itself and it is fixed (as noted by Kent above).
[8 Jan 2010 1:30] Gary Whizin
Confirmed fixed in 2.0.7.7168