Bug #12033 Mac OSX postInstaller fails on OSX 10.4.2 due to incompatible chown flags
Submitted: 19 Jul 2005 15:10 Modified: 12 Oct 2005 1:32
Reporter: stephen cooper Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:mysql-max-4.0.25-apple-darwin7.9.0-power OS:MacOS (Mac OSX 10.4.2)
Assigned to: CPU Architecture:Any

[19 Jul 2005 15:10] stephen cooper
Description:
This error occurs while running the dowloadable packages for Mac OSX 10.4.2

The error is critical and prevents the installer from running.

(A similar error is encountered while installing the database server using the "fink 0.8" packaging system)

It appears to be related to the way in which the chown command is being called.

Jul 19 22:47:36 cooper : Jul 19 23:02:47 cooper : @(#)PROGRAM:Install  PROJECT:Install-124  DEVELOPER:root  BUILT:Jun 16 2005 19:48:51

Jul 19 23:02:47 cooper : @(#)PROGRAM:Installer  PROJECT:Installer-86  DEVELOPER:root  BUILT:Jun  1 2005 16:40:32

Jul 19 23:02:47 cooper : Hardware: PowerBook6,8 @ 1499 MHz, 512 MB
Jul 19 23:02:47 cooper : Running OS Build: 8C46
Jul 19 23:02:47 cooper : MySQL 4.0.25-standard for Mac OS X Installation Log
Jul 19 23:02:47 cooper : Opened from: /Volumes/mysql-standard-4.0.25-apple-darwin7.9.0-powerpc/mysql-standard-4.0.25-apple-darwin7.9.0-powerpc.pkg
Jul 19 23:02:47 cooper : It took 0.171916 seconds to load 7 UI sections
Jul 19 23:02:48 cooper : It took 1.449348 seconds to finish launching.
Jul 19 23:02:51 cooper : It took 3.785524 seconds to do the initial process of the targets
Jul 19 23:02:51 cooper : It took 3.092441 seconds to -[IFPKGDerivedDocument readAndValidateDocument]
Jul 19 23:02:51 cooper : Installation checks completed successfully.
Jul 19 23:02:59 cooper : It took 8.047009 seconds to process the volume "Macintosh HD"
Jul 19 23:03:09 cooper : admin auth received to install
Jul 19 23:03:09 cooper : ================================================================================
Jul 19 23:03:09 cooper : User picked Easy Install
Jul 19 23:03:09 cooper : Choices selected for installation:
Jul 19 23:03:09 cooper : 	Install: "MySQL 4.0.25-standard for Mac OS X"
Jul 19 23:03:09 cooper : 		mysql-standard-4.0.25-apple-darwin7.9.0-powerpc.pkg : com.mysql.mysql : 4.0.25.4.0
Jul 19 23:03:09 cooper : ================================================================================
Jul 19 23:03:09 cooper : It took 0.001458 seconds to summarize the package selections.
Jul 19 23:03:09 cooper : Starting installation:
Jul 19 23:03:09 cooper : Preparing volume "Macintosh HD" for installation
Jul 19 23:03:09 cooper : Configuring volume "Macintosh HD"
Jul 19 23:03:10 cooper : Preparing local booted disk
Jul 19 23:03:10 cooper : Create temporary directory "/private/tmp/mysql-standard-4.0.25-apple-darwin7.9.0-powerpc.pkg.12507NWw8S"
Jul 19 23:03:10 cooper : Processing MySQL 4.0.25-standard for Mac OS X:
Jul 19 23:03:10 cooper : 	Initialize patching
Jul 19 23:03:10 cooper : 	Determining files to install
Jul 19 23:03:10 cooper : 	Evaluating versions of bundles
Jul 19 23:03:10 cooper : 	Evaluating custom file version checking
Jul 19 23:03:10 cooper : 	Configuring deferred files
Jul 19 23:03:10 cooper : 	Assembling temporary receipt
Jul 19 23:03:11 cooper : 	Performing pre-extraction actions
Jul 19 23:03:11 cooper : 	run preinstall script for MySQL 4.0.25-standard for Mac OS X
Jul 19 23:03:11 cooper : 	Creating destination path
Jul 19 23:03:11 cooper : 	Extracting files
Jul 19 23:03:15 cooper : 	933 files looked up in 0.05 seconds. 933 files written in 3.57 seconds.
Jul 19 23:03:15 cooper : 	26377 kilobytes installed.
Jul 19 23:03:15 cooper : 	run postinstall script for MySQL 4.0.25-standard for Mac OS X
Jul 19 23:03:15 cooper : postinstall[1258]: Preparing db table
Jul 19 23:03:15 cooper : postinstall[1258]: Preparing host table
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: Preparing user table
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: Preparing func table
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: Preparing tables_priv table
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: Preparing columns_priv table
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: Installing all prepared tables
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 050719 23:03:15 Warning: Setting lower_case_table_names=2 because file system for /usr/local/mysql-standard-4.0.25-apple-darwin7.9.0-powerpc/./data/ is case insensitive
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 050719 23:03:15 ./bin/mysqld: Shutdown Complete
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: To do so, start the server, then issue the following commands:
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: ./bin/mysqladmin -u root password 'new-password'
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: ./bin/mysqladmin -u root -h cooper.local password 'new-password'
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: See the manual for more instructions.
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: Please report any problems with the ./bin/mysqlbug script!
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: The latest information about MySQL is available on the web at
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: http://www.mysql.com
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: Support MySQL by buying support/licenses at https://order.mysql.com
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:15 cooper : postinstall[1258]: 
Jul 19 23:03:16 cooper : postinstall[1258]: chown: mysql: Invalid argument
Jul 19 23:03:16 cooper : postinstall[1258]: 
Jul 19 23:03:16 cooper : Install failed: The following install step failed: run postinstall script for MySQL 4.0.25-standard for Mac OS X
Jul 19 23:03:16 cooper : Private/Total = (4.8MB, 64.8MB),  Heap/Total = (2.4MB, 17.8MB),  Regions(malloc, private) = (31, 30)
Jul 19 23:03:16 cooper : It took 6.210143 seconds to unsuccessfully install "MySQL 4.0.25-standard for Mac OS X" (1 pkg(s))
Jul 19 23:03:16 cooper : 	It took 1.017517 seconds to Configuring volume "Macintosh HD" (dm prepare*disk)
Jul 19 23:03:16 cooper : 	It took 0.025490 seconds to Create temporary directory "/private/tmp/mysql-standard-4.0.25-apple-darwin7.9.0-powerpc.pkg.12507NWw8S"
Jul 19 23:03:16 cooper : 	It took 5.165804 seconds to Install MySQL 4.0.25-standard for Mac OS X: 24 elements
Jul 19 23:03:16 cooper : 		It took 5.152205 seconds to unsuccessfully Install package MySQL 4.0.25-standard for Mac OS X
Jul 19 23:03:16 cooper : 			It took 0.051218 seconds to Build install plan (& redirected paths)
Jul 19 23:03:16 cooper : 			It took 0.365132 seconds to Assembling temporary receipt
Jul 19 23:03:16 cooper : 			It took 0.181595 seconds to Collect path info (ATS, Sec Equiv, Kext, Pref Panes)
Jul 19 23:03:16 cooper : 			It took 0.168538 seconds to run preinstall script for MySQL 4.0.25-standard for Mac OS X
Jul 19 23:03:16 cooper : 			It took 3.895342 seconds to Write files
Jul 19 23:03:16 cooper : 			It took 0.488229 seconds to run postinstall script for MySQL 4.0.25-standard for Mac OS X
Jul 19 23:03:16 cooper : Jul 19 23:03:16 cooper : Summary Information
Jul 19 23:03:16 cooper : Type           Elapsed time (sec)
Jul 19 23:03:16 cooper :           patch           0.000104
Jul 19 23:03:16 cooper :            zero           0.028522
Jul 19 23:03:16 cooper :          script           0.656767
Jul 19 23:03:16 cooper :         extract           3.895342
Jul 19 23:03:16 cooper :          config           0.233115
Jul 19 23:03:16 cooper :         receipt           0.365132
Jul 19 23:03:16 cooper :            disk           1.017562
Jul 19 23:03:16 cooper :         install           5.165804

How to repeat:
Simply run the installer on OSX 10.4.2.

Suggested fix:
Fix the postinstall script and post a 10.4 tiger compatible installer on your website.
[12 Sep 2005 1:32] Lachlan Mulcahy
Hi,

I have tried the 4.0.26 (latest 4.0) Installer .dmg file for 10.3 (as there are no downloads available for 10.4) and I get up to being able to click "Install" in the wizard after which it tells me "You cannot continue. There is nothing to install.".

I'm not sure why we are not providing 10.4 installer packages for the 4.0 tree at this stage.

Can you clarify exactly which package you are using and also let me know what experience you have with the 4.0.26 installer? It may be simply that the current packages are not expected to work on 10.4.

You can install from the 10.3 tarball by simply extracting to /usr/local and then creating a symlink to from /usr/local/mysql to /usr/local/mysql-full-version-path

Ensure that you have /usr/local/mysql/bin in your PATH and you should be ready to roll.

Also note that 10.4 compatible installers are available for our current Generally Available release 4.1.14.
[12 Oct 2005 23: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".