OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004283 [phpldapadmin] packaging minor always 2010-02-17 03:20 2010-02-17 14:53
Reporter flod View Status public  
Assigned To dam
Priority normal Resolution fixed  
Status closed  
Summary 0004283: preinstall script throws errors in sparse root zones
Description When installing on sparse root zones with a read-only /opt fs the preinstall script will throw errors in the process of migrating data from
/opt/csw/apache2/share/htdocs/phpldapadmin to
/opt/csw/share/www/phpldapadmin/htdocs .

I have no idea if the behavior of the migration script can be changed on the basis of the status of the files (inherited from root zone or not).

Nevertheless the installation finishes with success and the final state seems to be sane in my case.
Additional Information ## Installing package <CSWphpldapadmin> in zone <sun-devel>

phpldapadmin - Web-based LDAP browser to manage your LDAP server(all) 1.2.0.4,REV=2009.09.23
## Processing package information.
## Processing system information.
   693 package pathnames are already properly installed.

Installing phpldapadmin - Web-based LDAP browser to manage your LDAP server as <CSWphpldapadmin>

## Executing preinstall script.

ERROR: You seem to have a previous installation of phpLDAPadmin.
The install location has changed from
  /opt/csw/apache2/share/htdocs/phpldapadmin
to
  /opt/csw/share/www/phpldapadmin/htdocs

Your files are being moved to the new install location.

!! Please press Ctrl-C in the next 5 seconds if you don't !!
!! want this to happen automatically but want to move the !!
!! files manually. !!

Copying old files:

x ., 0 bytes, 0 tape blocks
tar: delete_form.php - cannot create
tar: add_attr_form.php - cannot create
tar: update.php - cannot create
tar: show_cache.php - cannot create
tar: create.php - cannot create
tar: copy.php - cannot create
tar: rename_form.php - cannot create
tar: modify_member_form.php - cannot create
tar: expand.php - cannot create
tar: welcome.php - cannot create
tar: download_binary_attr.php - cannot create
tar: refresh.php - cannot create
tar: import.php - cannot create
tar: schema.php - cannot create
tar: delete.php - cannot create
tar: monitor.php - cannot create
tar: purge_cache.php - cannot create
tar: ./images: Read-only file system
tar: ./images: Read-only file system
tar: cannot open ./images No such file or directory
tar: ./images: Read-only file system
tar: cannot open ./images No such file or directory
tar: ./images: Read-only file system
...
tar: ./js: Read-only file system
tar: cannot open ./js No such file or directory
tar: ./js: Read-only file system
tar: cannot open ./js No such file or directory
tar: ./js: Read-only file system
tar: cannot open ./js No such file or directory
tar: rename.php - cannot create
tar: mass_delete.php - cannot create
tar: view_jpeg_photo.php - cannot create
tar: create_confirm.php - cannot create
tar: can't set time on .: Read-only file system
## Installing part 1 of 1.
[ verifying class <none> ]

[ verifying class <cswpreserveconf> ]

Installation of <CSWphpldapadmin> on zone <sun-devel> was successful.

--
uname -a
SunOS sun 5.10 Generic_142901-03 i86pc i386 i86pc
--
pkgutil -V
- System -
Pkgutil 1.9.1
Arch i386
Solaris 5.10
Pkg patch 119318 (119318-01 installed)
GPG binary /opt/csw/bin/gpg
Gzip binary /bin/gzip
Mailx binary /bin/mailx
MD5 binary /opt/csw/bin/gmd5sum
MD5 module 2.36 (primary choice for MD5)
Perl 5.008008
Perl binary /opt/csw/bin/perl
Wget binary /usr/sfw/bin/wget
PATH /root/bin:/usr/local/sbin:/usr/local/bin:/opt/webstack/bin:/opt/csw/sbin:/opt/csw/bin:/usr/sfw/sbin:/usr/sfw/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/sunstudio12.1/bin

- Configuration -
catalog_update 14 (default: 14)
exclude_pattern not set (default: none)
maxpkglist not set (default: 25000)
mirror http://csw.informatik.uni-erlangen.de/csw/current [^]
                (default: http://ibiblio.org/pub/packages/solaris/opencsw/current) [^]
noncsw not set (default: false)
pkgaddopts not set (default: none)
pkgliststyle not set (default: 0)
stop_on_hook_soft_error not set (default: false)
use_gpg true (default: false)
use_md5 true (default: false)
wgetopts not set (default: none)
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007458)
dam (administrator)
2010-02-17 09:22

As you have installed the package in the global zone and the migration has already been done there
it should be no problem. Could you please verify that the files have actually been moved?
However, I am a bit puzzled that there are files left in the original location that are tried to be moved to the other location during local zone propagation.
(0007462)
flod (reporter)
2010-02-17 12:48

old directory: /opt/csw/apache2/share/htdocs/phpldapadmin
new directory: /opt/csw/share/www/phpldapadmin/htdocs

To your question: I installed the package for the first time. The old directory did not exist before the installation.

My view on what seems to happen:
= global zone installation
pre-install script: The old directory is not found, no migration is done.

installation: a symbolic link from the old to the new directory is installed (package content).
/opt/csw/apache2/share/htdocs/phpldapadmin -> /opt/csw/share/www/phpldapadmin/htdocs

= sparse root zone installation
pre-install script: The script follows the symbolic link that was installed in the global zone. In the directory it finds all the newly installed files. The script tries to migrate these and throws errors as the fs is read-only.

installation: all files are inherited from the global zone
(0007464)
dam (administrator)
2010-02-17 14:18

The migration script now check if the source is not a link. Additionally, I updated to 1.2.0.5. Please verify.

http://mirror.opencsw.org/experimental.html#dam [^]
http://mirror.opencsw.org/experimental/dam/phpldapadmin-1.2.0.5,REV=2010.02.17-SunOS5.8-all-CSW.pkg.gz [^]
(0007465)
flod (reporter)
2010-02-17 14:25

Tested installation of http://mirror.opencsw.org/experimental/dam/phpldapadmin-1.2.0.5,REV=2010.02.17-SunOS5.8-all-CSW.pkg.gz [^] :
Installation works nicely in my case. Bug is gone.
(0007466)
dam (administrator)
2010-02-17 14:53

Version phpldapadmin-1.2.0.5,REV=2010.02.17-SunOS5.8-all-CSW.pkg.gz released to current.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker