OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005121 [cas_initsmf] regular use minor unable to reproduce 2013-11-08 14:00 2013-11-09 06:25
Reporter pcfung View Status public  
Assigned To bonivart
Priority normal Resolution open  
Status assigned  
Summary 0005121: Install package problem
Description Hi,

i am using solaris 10 x86 and installing the apache2 on my zone with some error massage shown:(Debug Mode=ON)

# /opt/csw/bin/pkgutil -i -y apache2
Solving needed dependencies ...
Solving dependency order ...
30 CURRENT packages:
        CSWalternatives-1.1.1,REV=2011.05.31
        CSWapache2-utils-2.2.22,REV=2012.06.01
        CSWapache2c-2.2.22,REV=2012.06.01
        CSWbdb48-4.8.30,REV=2010.12.06_rev=p0
        CSWcas-initsmf-1.49,REV=2013.03.13
        CSWcas-postmsg-1.42,REV=2010.11.26
        CSWcas-preserveconf-1.49,REV=2013.03.13
        CSWcommon-1.5,REV=2010.12.11
        CSWiconv-1.14,REV=2011.08.08
        CSWisaexec-0.2,REV=2009.03.26
        CSWlibapr-dev-1.4.6,REV=2012.03.03
        CSWlibapr1-0-1.4.6,REV=2012.03.03
        CSWlibaprutil-dev-1.3.12,REV=2011.07.26
        CSWlibaprutil1-0-1.3.12,REV=2011.07.26
        CSWlibaprutil1-dbm-db-1.3.12,REV=2011.07.26
        CSWlibaprutil1-ldap-1.3.12,REV=2011.07.26
        CSWlibcharset1-1.14,REV=2011.08.07
        CSWlibexpat1-2.1.0,REV=2013.01.01
        CSWlibgdbm4-1.9,REV=2011.10.24
        CSWlibiconv2-1.14,REV=2011.08.07
        CSWliblber2-4-2-2.4.32,REV=2012.11.05
        CSWlibldap-r2-4-2-2.4.32,REV=2012.11.05
        CSWlibldap2-4-2-2.4.32,REV=2012.11.05
        CSWlibsasl2-2-2.1.25,REV=2012.05.06
        CSWlibssl1-0-0-1.0.1e,REV=2013.03.30
        CSWlibz1-1.2.7,REV=2012.06.14
        CSWoldaprt-2.4.32,REV=2012.11.10
        CSWopenssl-utils-1.0.1e,REV=2013.03.30
        CSWosslutils-0.9.8x,REV=2012.05.12
        CSWperl-5.10.1,REV=2012.07.24
Install 1 NEW packages:
        CSWapache2-2.2.22,REV=2012.06.01 (opencsw/testing)
Total size: 854.7 KB
=> Fetching CSWapache2-2.2.22,REV=2012.06.01 (1/1) ...

=> Installing CSWapache2-2.2.22,REV=2012.06.01 (1/1) ...
Please see /opt/csw/share/doc/apache2/license for license information.
Registering 'httpd' alternative /opt/csw/apache2/sbin/httpd.prefork ...
PACKAGE: CSWapache2 SMF: yes
Installing class <cswinitsmf> ...
SRC: /var/tmp/ztempBAA9ya4Xn/CSWapache2/root/etc/opt/csw/init.d/cswapache2 DEST: /etc/opt/csw/init.d/cswapache2
Creating /var/opt/csw/svc/manifest/network ...
FMRI: network
Creating service script in /var/opt/csw/svc/method/svc-cswapache2 ...
ln: cannot create //var/opt/csw/svc/method/svc-cswapache2: No such file or directory
chmod: WARNING: can't access //var/opt/csw/svc/method/svc-cswapache2
chown: //var/opt/csw/svc/method/svc-cswapache2: No such file or directory
Creating manifest ...
egrep: can't open //var/opt/csw/svc/method/svc-cswapache2
egrep: can't open //var/opt/csw/svc/method/svc-cswapache2
MANIFEST: /var/opt/csw/svc/manifest/network/cswapache2.xml
Configuring service in SMF ...
CSWapache2 is using Service Management Facility. The FMRI is svc:/network/cswapache2:default
Clearing svc:/network/cswapache2 in case it's in the maintenance state...
Enabling svc:/network/cswapache2 ...
ERROR: attribute verification of </var/opt/csw/svc/method/svc-cswapache2> failed
    pathname does not exist
    unable to create symbolic link to </etc/opt/csw/init.d/cswapache2>
Installing class <cswpostmsg> ...
Hello CSW User/Sysadmin,

Please note that recent changes may affect the way you're used to
working with the CSW apache2 packages.

In the past, CSWap2prefork and CSWap2worker delivered a specific mpm
module for use with apache2. We now ship the prefork mpm as part of
CSWapache2 while the worker mpm remains in CSWap2worker.

Each httpd mpm is installed using the new alternatives framework.
When CSWap2worker is installed, it registers a higher priority httpd,
thus it is activated as httpd (manual restart required). You can
change this at any time using the alternatives command. See
/opt/csw/sbin/alternatives --help for information on how you can do
this.

Thanks
-The OpenCSW apache2 team.
Checking configuration files:
Copying CSW templates:
  preserving //opt/csw/apache2/share/htdocs/index.html
  preserving //opt/csw/apache2/etc/extra/httpd-autoindex.conf
  preserving //opt/csw/apache2/etc/extra/httpd-dav.conf
  preserving //opt/csw/apache2/etc/extra/httpd-default.conf
  preserving //opt/csw/apache2/etc/extra/httpd-info.conf
  preserving //opt/csw/apache2/etc/extra/httpd-languages.conf
  preserving //opt/csw/apache2/etc/extra/httpd-multilang-errordoc.conf
  preserving //opt/csw/apache2/etc/extra/httpd-userdir.conf
  preserving //opt/csw/apache2/etc/extra/httpd-vhosts.conf
  preserving //opt/csw/apache2/etc/magic
  preserving //opt/csw/apache2/etc/mime.types
  preserving //opt/csw/apache2/etc/envvars
  preserving //opt/csw/apache2/etc/envvars-std

Installation of <CSWapache2> was successful.
Additional Information The apache2 can be start after the system reboot.
But i type below commands on zone to show: (i cannot restart the service by 'svcadm' command)

# svcs cswapache2
svcs: Pattern 'cswapache2' doesn't match any instances
STATE STIME FMRI
#
#
# svcadm enable cswapache2
svcadm: Pattern 'cswapache2' doesn't match any instances




i install below package on Global:
# /opt/csw/bin/pkgutil -l
CSWalternatives
CSWcas-initsmf
CSWcas-postmsg
CSWcas-preserveconf
CSWcommon
CSWpkgutil

 
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010628)
pcfung (reporter)
2013-11-08 14:12

Hi,

Please note!!

i manually create a folder 'method' on /var/opt/csw/svc/ and install again.
all problems were fixed.

'svcs' & 'svcadm' can run correctly now.
(0010629)
bonivart (developer)
2013-11-08 14:27

I think this is related to you running in a zone. CSWcas-initsmf should have created /var/opt/csw/svc/method for you. You say you did install that package (and the other class utils) from the global zone which is the correct way of doing it since they install files in /usr.

Can you verify that those installs really did go well? Maybe redo them?
(0010633)
pcfung (reporter)
2013-11-08 15:14

If everything install to global, no any error.
But i want to keep my global clean & small.
i just install a package on global when a error occur on zone.

=>installation_on_zone (/opt/csw/bin/pkgutil -i -y XXXXXX)
=>error
=>remove_error_package
=>install_error_package_to_global
=>success
=>redo_installation_on_zone

do stupid thing again & again :D

The zone is running Apache2+php5+mysql5 now
(0010634)
bonivart (developer)
2013-11-08 15:55

It should be ok if you only install the class util packages (e.g. CSWcas-initsmf) in the global zone because those are our only packages delivering files to /usr which is read-only in non-global zones. If you then install, e.g., CSWapache2 in a non-global zone and it depends on a class util package the dependency should already be fulfilled.

So your global zone should only contain a few packages, probably no more than a few MB.
(0010635)
pcfung (reporter)
2013-11-09 06:25

Thanks for your support.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker