NetBSD Problem Report #48977

From www@NetBSD.org  Wed Jul  9 07:01:10 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9C3D0A653C
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  9 Jul 2014 07:01:10 +0000 (UTC)
Message-Id: <20140709070109.A63D8A654A@mollari.NetBSD.org>
Date: Wed,  9 Jul 2014 07:01:09 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: installation of services/daemons hangs on Solaris 10
X-Send-Pr-Version: www-1.0

>Number:         48977
>Category:       pkg
>Synopsis:       installation of services/daemons hangs on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 09 07:05:00 +0000 2014
>Last-Modified:  Wed Jul 16 06:55:01 +0000 2014
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Bulk-installing packages via pgk_chk hangs frequently on Solaris 10, when services are installed:

===> Install binary package of rsync-3.1.0nb2
============================================================================
This package has SMF support.  You may use svcadm(1M) to 'enable', 'disable'
or 'restart' services.  To enable the instance(s) for this package, run:

        /usr/sbin/svcadm enable svc:/pkgsrc/rsyncd:default

Use svcs(1) to check on service status.  See smf(5) for more information.

<sessions hangs>


I saw the same behaviour yesterday for another package. Interrupting pkg_chk (CTRL-C) and restarting it continues with the next package, but overnight-builds are severely disrupted. I use a non-root user to install packages.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Thu, 10 Jul 2014 15:17:33 +0000
Responsible-Changed-Why:
Solaris problem


From: Jonathan Perkin <jperkin@pkgsrc.org>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org, pkg-manager@netbsd.org,
	pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org, ryoon@NetBSD.org,
	joern.clausen@uni-bielefeld.de
Subject: Re: pkg/48977 (installation of services/daemons hangs on Solaris 10)
Date: Thu, 10 Jul 2014 16:20:34 +0100

 Hmm, right, non-root SMF installs aren't going to work.  I'll need to add
 some logic to stop it trying to svccfg import if not root and print a
 message instead.

 For now you can set PKG_SKIP_SMF=yes which will skip the import.

 -- 
 Jonathan Perkin       www.perkin.org.uk
 github.com/jperkin  twitter.com/jperkin

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: Jonathan Perkin <jperkin@pkgsrc.org>
Cc: gnats-bugs@NetBSD.org, solaris-pkg-people@NetBSD.org,
 pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
 ryoon@NetBSD.org
Subject: Re: pkg/48977 (installation of services/daemons hangs on Solaris 10)
Date: Wed, 16 Jul 2014 08:50:46 +0200

 On 10.07.14 17:20, Jonathan Perkin wrote:
 > Hmm, right, non-root SMF installs aren't going to work.  I'll need to add
 > some logic to stop it trying to svccfg import if not root and print a
 > message instead.
 >
 > For now you can set PKG_SKIP_SMF=yes which will skip the import.

 I have set

 PKG_SKIP_SMF = yes

 in mk.conf, but installation of www/apache22 just hung again:

 apache-2.2.27nb1: copying 
 /usr/pkgsrc/20140707/share/examples/httpd/magic to 
 /usr/pkgsrc/20140707/etc/httpd/magic
 apache-2.2.27nb1: copying 
 /usr/pkgsrc/20140707/share/examples/httpd/mime.types to 
 /usr/pkgsrc/20140707/etc/httpd/mime.types
 ===========================================================================
 The following directories are used by apache-2.2.27nb1 and
 have the wrong ownership and/or permissions:

          /usr/pkgsrc/20140707/var/db/httpd/proxy (m=0755, o=www, g=www)

 ===========================================================================
 ============================================================================
 This package has SMF support.  You may use svcadm(1M) to 'enable', 'disable'
 or 'restart' services.  To enable the instance(s) for this package, run:

          /usr/sbin/svcadm enable svc:/pkgsrc/apache:default

 Use svcs(1) to check on service status.  See smf(5) for more information.
 <end>

 I think when I set it as environment variable, it actually prevented 
 execution of the SMF related code.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.