Bug #33116 agent update installer on AIX hangs (and ignores parameter "--backupdir")
Submitted: 10 Dec 2007 14:55 Modified: 9 Jan 2015 15:54
Reporter: Carsten Segieth Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S1 (Critical)
Version:1.3.0.8507 OS:IBM AIX (5.2)
Assigned to: Assigned Account CPU Architecture:Any
Tags: UPDATE

[10 Dec 2007 14:55] Carsten Segieth
Description:
The update installer on AIX hangs at this point (which it reached within seconds, then I waited several minutes):

 ----------------------------------------------------------------------------
 Please wait while Setup installs MySQL Enterprise Service Agent Update on your computer.
 
  Installing
  0% ______________ 50% ______________ 100%
  ######################################

In unattended mode it is not visible where the installer hangs, but here also it does not end.

May be the fact, that although specifying the "--backupdir" parameter as shown below the installer shows the default dir (relative to the given --installdir) as backupdir cn caus the problem? The given parameter is ignored:

bash-2.05a$ /nfstmp1/merlin/packages/1.3.0.8507/agents/mysqlserviceagent-1.3.0.8507-aix5.2-powerpc-32bit-update-installer.bin --installdir /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52 --backupdir /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchbackup_1.3.0.8507 --debugtrace /users/csegieth/merlin/agent/1.3.0.8507_aix5.2-powerpc-32bit_aix52_upd_1.2.0.7879_debug.log
Language Selection

Please select the installation language
[1] English
[2] Japanese
Please choose an option [1] :
----------------------------------------------------------------------------
Welcome to the setup wizard for the MySQL Enterprise Service Agent Update
Created with an evaluation version of BitRock InstallBuilder

----------------------------------------------------------------------------
Please specify the directory that contains the previous installation of the MySQL Enterprise Service Agent

Installation directory [/users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52]:

----------------------------------------------------------------------------
Current installation backup

Do you want to create a backup during the update process?

Backup the current installation [Y/n]:

Backup directory [/users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchbackup]:
... etc. ...

Here the bitrock_installer log file from /tmp:

$ cat bitrock_installer_454880.log
Log started 12/10/2007 at 16:41:51
Preferred installation mode : xwindow
Trying to init installer in mode xwindow
Trying to init installer in mode text
Mode text successfully initted
Preparing to Install
Creating directory /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp
Unpacking files
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/mysql-service-agent
Creating directory /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib
Creating directory /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent
Unpacking files
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/mysql-service-agent
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libcurl.so.3.0.0
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libglib-2.0.so.0.800.5
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libgthread-2.0.so.0.800.5
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libxml2.so.2.6.23
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcre.so.0.0.1
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcrecpp.so.0.0.0
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcreposix.so.0.0.0
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libintl.so.3.4.3
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libcurl.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libcurl.so.3
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libglib-2.0.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libglib-2.0.so.0
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libgthread-2.0.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libgthread-2.0.so.0
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libxml2.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libxml2.so.2
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcre.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcre.so.0
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcrecpp.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcrecpp.so.0
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libintl.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcreposix.so
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libpcreposix.so.0
Creating link /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/lib/mysql-service-agent/libintl.so.3
Creating directory /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/share
Creating directory /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/share/mysql-service-agent
Unpacking files
Unpacking /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchtemp/share/mysql-service-agent/items-mysql-network.xml
Preparing for backup...
Shutting down the services...
Executing /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/etc/init.d/mysql-service-agent
Script exit code: 1

Script output:
 ERROR! MySQL Enterprise agent PID file could not be found!

Script stderr:
child process exited abnormally

Error running /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/etc/init.d/mysql-service-agent stop : child process exited abnormally
Error running /users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/etc/init.d/mysql-service-agent stop : child process exited abnormally
Performing backup...
Performing backup...
Performing backup...
Performing backup...
Applying the patch...
Applying the patch...
Applying the patch...
Applying the patch...

The permissions for the install dir are 'rwxrwxrwx', so I don't think this can be the reason.

How to repeat:
see commands above
[10 Dec 2007 15:07] Carsten Segieth
no work around available, as using 'n' in the backup question does not help, one is asked for a backupdir and then it hangs as noted above:

----------------------------------------------------------------------------
Current installation backup

Do you want to create a backup during the update process?

Backup the current installation [Y/n]: n

Backup directory [/users/csegieth/merlin/agent/1.2.0.7879/aix5.2-powerpc-32bit/aix52/patchbackup]: /tmp/pino

----------------------------------------------------------------------------
[11 Dec 2007 14:34] BitRock Merlin
There are three issues reported on this case:

 - Agent update installer doesn't honor the --backupdir folder when --installdir is specified. We sent a fix for this to Keith on December 6th. (case #33018), we tested it thoroughly, maybe is it possible that the mentioned fix was not applied on this case?

 - The installer shows the backup directory parameter even though "Backup the current installation" was set to "no": both parameters belong to the same installer page, but in text mode we show every parameter on a sequential basis, no matter if they belong to the same or to a different page. The problem is that we only evaluate the user input after the whole logical "page" passes (changing this logic would introduce a major refactoring inside the installer code), so the only solution to hide / show the backup directory parameter based on the previous question would be to separate both parameters so they are placed on different installation pages (which is maybe not a desired solution).

 - The main issue, is that the installer hangs during the update process. After reviewing the messages, it seems that the hang occurrs during a copy file process. As we know that there has been another issue related to NFS shares, would it be possible if you try to reproduce the case so that the installer is run outside any nfs folder? (of course, the destination installation directory and backup directory should be placed outside any NFS folder as well).
[13 Jan 2008 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[15 Apr 2008 10:47] BitRock Merlin
The original error for this case was a file copying error operation, that was caused by an NFS problem, and we concluded that it was not really associated to the installers themselves. As we see that the case has been set back again to "Verified", could you please give us more details on what is the problem that was found this time?
[28 Jan 2010 16:47] Enterprise Tools JIRA Robot
Carsten Segieth writes: 
finally closing (in JIRA) an old report. It never occurred again in the "near" past (of versions 2.0 ... 2.2).