Mantis - mysql5
Viewing Issue Advanced Details
4101 packaging major always 2009-12-28 02:22 2010-01-06 01:49
hson x86  
maciej Solaris  
normal 10  
closed  
5.0.87,REV=2009.12.22 fixed  
none    
none  
0004101: Installtion partially fails due to nonexistant user and group
During the installation the mysql user and group get created later than the first use of them. Removing and reinstalling works without any problem (since the user and group then exists prior to the install)
Install on a machine which does not have a mysql user and group prior to installing
Stripped down output from pkg-get

[ verifying class <none> ]
...
/opt/csw/mysql5/libexec/mysqlmanager <linked pathname>
pkgadd: ERROR: unable to create package object </var/opt/csw/mysql5>.
    pathname does not exist
    group name <mysql> not found in group table(s)
    owner name <mysql> not found in passwd table(s)
/var/opt/csw/mysql5
[ verifying class <ugfiles> ]
ERROR: attribute verification of </var/opt/csw/mysql5> failed
    group name <mysql> not found in group table(s)
    owner name <mysql> not found in passwd table(s)
Installing class <cswusergroup> ...
Group mysql has been added
User mysql has been added

[ verifying class <cswusergroup> ]
...
[ verifying class <cswinitsmf> ]
## Executing postinstall script.
No database directory found in the default location:
/var/opt/csw/mysql5/mysql
If you need to build the initial database directory,
  see /opt/csw/mysql5/share/mysql/quick_start-csw
If you are using a non-default database directory location,
  please start mysql manually.

Installation of <CSWmysql5> partially failed.
ERROR: could not add CSWmysql5.
Solaris 10 on x86
Issue History
2009-12-28 02:22 hson New Issue
2009-12-28 02:44 maciej Note Added: 0007150
2009-12-28 02:44 maciej Assigned To => maciej
2009-12-28 02:44 maciej Status new => acknowledged
2009-12-31 15:05 maciej Note Added: 0007157
2010-01-03 18:52 maciej Note Added: 0007161
2010-01-03 18:52 maciej Status acknowledged => feedback
2010-01-03 21:18 hson Note Added: 0007162
2010-01-03 23:38 maciej Note Added: 0007163
2010-01-05 09:45 maciej Note Added: 0007170
2010-01-05 11:45 hson Note Added: 0007171
2010-01-05 12:34 maciej Note Added: 0007173
2010-01-05 12:34 maciej Status feedback => assigned
2010-01-06 01:49 maciej Note Added: 0007182
2010-01-06 01:49 maciej Status assigned => closed
2010-01-06 01:49 maciej Resolution open => fixed

Notes
(0007150)
maciej   
2009-12-28 02:44   
The ugfiles class should be installed last. I'll look at it.
(0007157)
maciej   
2009-12-31 15:05   
I am able to reproduce the issue. I also noticed that this fails for each zone; if there's a global zone and N non-global zones, the package needs to be installed (and removed if necessary) N+1 times before the installation is successful.
(0007161)
maciej   
2010-01-03 18:52   
I've found and fixed a bug in GAR. The bug was causing ugfiles come before cswusergroup in action classes.

https://sourceforge.net/apps/trac/gar/changeset/7846 [^]

I've rebuilt MySQL using it, it's in testing. Please try.

http://mirror.opencsw.org/testing.html [^]
(0007162)
hson   
2010-01-03 21:18   
Please build a i386-version, I only got a VMware-machine running atm.
(0007163)
maciej   
2010-01-03 23:38   
i386/amd64 version is in testing now.
(0007170)
maciej   
2010-01-05 09:45   
Did you have a chance to test it? I tried it in a couple places, it seems to work.
(0007171)
hson   
2010-01-05 11:45   
Seems to work just fine now
(0007173)
maciej   
2010-01-05 12:34   
Cool. Sending for release.
(0007182)
maciej   
2010-01-06 01:49   
The updated package has been released.