OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004101 [mysql5] packaging major always 2009-12-28 02:22 2010-01-06 01:49
Reporter hson View Status public  
Assigned To maciej
Priority normal Resolution fixed  
Status closed  
Summary 0004101: Installtion partially fails due to nonexistant user and group
Description 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)
Additional Information 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.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007150)
maciej (reporter)
2009-12-28 02:44

The ugfiles class should be installed last. I'll look at it.
(0007157)
maciej (reporter)
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 (reporter)
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 (developer)
2010-01-03 21:18

Please build a i386-version, I only got a VMware-machine running atm.
(0007163)
maciej (reporter)
2010-01-03 23:38

i386/amd64 version is in testing now.
(0007170)
maciej (reporter)
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 (developer)
2010-01-05 11:45

Seems to work just fine now
(0007173)
maciej (reporter)
2010-01-05 12:34

Cool. Sending for release.
(0007182)
maciej (reporter)
2010-01-06 01:49

The updated package has been released.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker