Bug #25191 agent installer on FreeBSD6 fails at post-install step - installation unusable
Submitted: 20 Dec 2006 0:36 Modified: 11 Jan 2007 11:51
Reporter: Carsten Segieth Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S1 (Critical)
Version:1.0.1.4391a - 1.1.0.4445b OS:FreeBSD (FreeBSD6)
Assigned to: BitRock Merlin CPU Architecture:Any
Tags: installation incomplete, post-install step

[20 Dec 2006 0:36] Carsten Segieth
Description:
Trying to start the agent installer on 'bsd60' fails in all cases, even just with option '--version':

file
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
/users/schilders/public_html/official_builds/unofficial/1.0.1.4391/agents/mysqlserviceagent-1.0.1.4391a-freebsd6-x86-installer.bin: ELF 32-bit LSB executable, I
ntel 80386, version 1, statically linked, corrupted section header size

--version
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
ELF binary type "0" not known.
./test-agent.sh: line 229: /users/schilders/public_html/official_builds/unofficial/1.0.1.4391/agents/mysqlserviceagent-1.0.1.4391a-freebsd6-x86-installer.bin: c
annot execute binary file
+++ RC = 126

there is enough tmp space:
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/da0s1a     28G    8.2G     18G    31%    /

mysqldev@bsd60$ df -h
Filesystem              Size    Used   Avail Capacity  Mounted on
/dev/da0s1a              28G    8.2G     18G    31%    /
devfs                   1.0K    1.0K      0B   100%    /dev
production:/usersnfs    356G    297G     41G    88%    /users
nfssrva:/nfstmp1        293G     97G    181G    35%    /nfstmp1

-rwxr-xr-x  1 411  411  8662368 Dec 19 18:07 /users/schilders/public_html/official_builds/unofficial/1.0.1.4391/agents/mysqlserviceagent-1.0.1.4391a-freebsd6-x8
6-installer.bin

How to repeat:
see commands above

Suggested fix:
- make file startable
[20 Dec 2006 12:53] Carsten Segieth
same problem with the x86_64 installer, so I changed the OS to 'FreeBSD6':

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
/users/schilders/public_html/official_builds/unofficial/1.0.1.4391/agents/mysqlserviceagent-1.0.1.4391a-freebsd6-x86_64-installer.bin: ELF 32-bit LSB executable
, Intel 80386, version 1, statically linked, corrupted section header size

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+++ RC = 127
[20 Dec 2006 16:20] Keith Russell
Kent can you take a look at this.
[20 Dec 2006 18:20] Keith Russell
After getting more information I am re-assigning this back to myself.  This is an install issue.
[9 Jan 2007 21:24] Carsten Segieth
using the newest install package the error message changed (e.g. 'file' no longer reports 'corrupted section header size'), but the problem still exists:

mysqldev@bsd60$ cd /users/csegieth/bin; ./test-agent.sh 1.1.0.4445

...a lot of lines removed here...

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
/users/schilders/public_html/official_builds/unofficial/1.1.0.4445/agents/mysqlserviceagent-1.1.0.4445-freebsd6-x86-installer.bin
./test-agent.sh: line 216: md5sum: command not found

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
/users/schilders/public_html/official_builds/unofficial/1.1.0.4445/agents/mysqlserviceagent-1.1.0.4445-freebsd6-x86-installer.bin: ELF 32-bit LSB executable, Intel 80386,
 version 1, statically linked, stripped

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
ELF binary type "0" not known.
./test-agent.sh: line 231: /users/schilders/public_html/official_builds/unofficial/1.1.0.4445/agents/mysqlserviceagent-1.1.0.4445-freebsd6-x86-installer.bin: cannot execute binary file
+++ RC = 126
[9 Jan 2007 21:30] Carsten Segieth
similar problem with the freebsd6-x86_64-installer.bin
[10 Jan 2007 11:39] Carsten Segieth
using the newest build the installer starts on bsd6_x86, but fails with "Problem running post-install step. Installation may not complete correctly".

-------------------------------------------------------------------------------
-rwxr-xr-x  1 411  411  - 2466496 Jan 10 07:13 /users/schilders/public_html/official_builds/unofficial/1.1.0.4445/agents/mysqlserviceagent-1.1.0.4445b-freebsd6-x86-instal
ler.bin
md5sum: not found
/users/schilders/public_html/official_builds/unofficial/1.1.0.4445/agents/mysqlserviceagent-1.1.0.4445b-freebsd6-x86-installer.bin: ELF 32-bit LSB executable, Intel 80386
, version 1 (FreeBSD), for FreeBSD 5.4, dynamically linked (uses shared libs), stripped

-------------------------------------------------------------------------------
MySQL Network Service Agent 1.1.0.4445 --- Built on 2007-01-10 00:20:51

-------------------------------------------------------------------------------
/users/schilders/public_html/official_builds/unofficial/1.1.0.4445/agents/mysqlserviceagent-1.1.0.4445b-freebsd6-x86-installer.bin --installdir /users/csegieth/mysql/netw
ork/agent/1.1.0.4445b/freebsd6-x86/bsd60 --debugtrace /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd6-x86_bsd60_install_debug.log --mysqlhost win2003a-x86 --mysq
lport 3307 --mysqluser agent --mysqlpassword mysql --checkmysqlhost yes --managerhost net-qa2 --tomcatport 8080 --agentuser pinoagent --agentpassword onipagent --serverna
me 1.1.0.4445b_freebsd6-x86_bsd60_070110123427 --mode unattended
Problem running post-install step. Installation may not complete correctly
 Error running script /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd6-x86/bsd60/bin/mysql-service-agent : /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd
6-x86/bsd60/bin/mysql-service-agent: not found

-------------------------------------------------------------------------------
INSTALLDIR = /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd6-x86/bsd60
total 2392
-rwx------  1 mysqldev  mysqldev  - 2444397 Jan 10 12:34 uninstall

-------------------------------------------------------------------------------
-rwx------  1 mysqldev  mysqldev  2444397 Jan 10 12:34 uninstall
uninstall: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.4, dynamically linked (uses shared libs), stripped

-------------------------------------------------------------------------------

+++ something went wrong! Mandatory file missing or not executable:

ls: /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd6-x86/bsd60/bin/mysql-service-agent: No such file or directory
[10 Jan 2007 11:46] Carsten Segieth
mysqldev@bsd60$ cat /tmp/bitrock_installer_62253.log
Log started 01/10/07 at 12:34:38
Preferred installation mode : unattended
Preparing to Install
Error running script /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd6-x86/bsd60/bin/mysql-service-agent : /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd6
-x86/bsd60/bin/mysql-service-agent: not found
Problem running post-install step. Installation may not complete correctly
 Error running script /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd6-x86/bsd60/bin/mysql-service-agent : /users/csegieth/mysql/network/agent/1.1.0.4445b/freebsd
6-x86/bsd60/bin/mysql-service-agent: not found
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 01/10/07 at 12:34:42
[11 Jan 2007 11:51] Carsten Segieth
Installation now works on FreeBsd6-x86.

1.1.0.4458 on bsd60 monitoring win2003a-x86:3307, reporting to net-qa2:8080, named '1.1.0.4458_freebsd6-x86_bsd60_070110230038', installed 2007-01-10-23.00.46 to '/users/
csegieth/mysql/network/agent/1.1.0.4458/freebsd6-x86/bsd60', using ./test-agent.sh with mode 'unattended'

The problem of the missing CPU data seems to be an agent problem and is reported in bug#25542.