[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-users
Subject:    RE: Bootstrapping openpkg-4.0.7 on Solaris 10
From:       "Wilson Jason" <Jason.Wilson () derm ! qld ! gov ! au>
Date:       2010-06-15 23:44:32
Message-ID: A2AEA99E5ADB52429E69B17F4970A1530420178D () CHQMAIL2 ! lands ! resnet ! qg
[Download RAW message or body]

Openpkg people,
 
I should have waited a little while before sending this off.
 
To fix permissions on the managers file was a simple 'chmod 664' to add
group write.
Doing a truss of the process I see that it is trying to run 'id -un' -
which on Solaris does not work. Added the following 'wrapper' script in
path the work around:
#!/bin/bash
 
if [ "$1" == "-un" ]; then
    /usr/bin/id | sed -e "s/.*(//" -e "s/).*//"
    exit 0
fi
 
/usr/bin/id "$@"

Went back and read through build process and now see the same error that
Olivier Fournier reported in January (Lua script error within rpm
macros) reported at:
  http://www.mail-archive.com/openpkg-users@openpkg.org/msg03980.html
 
Was a resolution/workaround to this found?
 
Wild guess - could it be due to issue with 'id'? Or possibly some sub
command (e.g. id, sed, etc) is failing in the bootstrap, due to
Solaris's 'limited' support of these commands?
 
I will continue to investigate, but wanted to report my findings so far.
 
Jason
 


________________________________

	From: openpkg-users-owner@openpkg.org
[mailto:openpkg-users-owner@openpkg.org] On Behalf Of Wilson Jason
	Sent: Wednesday, 16 June 2010 8:32 AM
	To: openpkg-users@openpkg.org
	Subject: Bootstrapping openpkg-4.0.7 on Solaris 10
	
	
	Dear Openpkg,
	 
	Finally getting the time to commence an upgrade of our Openpkg
toolset from version 3 to version 4.
	 
	Have done a successful build of the bootstrap package, but now
running into problems.
	 
	On running any openpkg command receive:
	  openpkg:WARNING: invalid permissions on configuration file
"/secomon/openpkg-4/etc/openpkg/managers" -- ignoring file
	
	The permissions on this file are:
	  -rw-r--r--   1 mapp icmg      64 Jun 15 17:03
/secomon/openpkg-4/etc/openpkg/managers
	
	Openpkg was bootstrap with the following command:
	  bash openpkg-4.0.7-20100430.src.sh --prefix=/secomon/openpkg-4
--tag=openpkg --user=mapp --group=icmg --muid=6000 --mgid=6000
--rusr=rapp --nusr=napp --rgrp=icrg --ngrp=icng --ruid=6001 --nuid=6002
--rgid=6001 --ngid=6002
	 
	The usernames and groups are all pre-created (and the same as
what we used for openpkg version 3). The reason for this is as I don't
have root access to our servers and by having a consistent set of
usernames and id's I can get them pre-created on all systems prior to
installation of openpkg.
	 
	NOTE: I have 'changed' the real usernames and user id's (because
I am paranoid), but the essence is the same.
	 
	Other things of note:
	/secomon/openpkg-4/bin/openpkg rpm -qa
	openpkg:WARNING: invalid permissions on configuration file
"/secomon/openpkg-4/etc/openpkg/managers" -- ignoring file
	gpg-pubkey-63c4cb9f-3c591eda
	gpg-pubkey-61b7ae34-4544a6af
	gpg-pubkey-52197903-4544a74d
	
	NOTE: There is no openpkg package listed, just the gpg keys
	 
	Also, running:
	/secomon/openpkg-4/bin/openpkg rc all env
	openpkg:WARNING: invalid permissions on configuration file
"/secomon/openpkg-4/etc/openpkg/managers" -- ignoring file
	openpkg:WARNING: invalid permissions on configuration file
"/secomon/openpkg-4/etc/openpkg/managers" -- ignoring file
	
	Nothing is output besides the errors.
	 
	I am guessing something is 'dying' or being aborted inside the
sub-commands that openpkg runs, but I haven't been able to work out
what. Any hints on how to diagnose further?
	 
	Jason
	 
	 

	 

	
+----------------------------------------------------------------+

	Think B4U Print

	1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere

	3 sheets of A4 paper = 1 litre of water

	
+----------------------------------------------------------------+

	 


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>Openpkg people,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>I should have waited a little while before sending this 
off.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>To fix permissions on the managers file was a simple 'chmod 
664' to add group write.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>Doing a truss of the process I see that it is trying to run 
'id -un' - which on Solaris does not work. Added the following 'wrapper' script 
in path the work around:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>#!/bin/bash</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>if [ "$1" == "-un" ]; then<BR>&nbsp;&nbsp;&nbsp; /usr/bin/id | 
sed -e "s/.*(//" -e "s/).*//"<BR>&nbsp;&nbsp;&nbsp; exit 
0<BR>fi</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>/usr/bin/id "$@"<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>Went back and read through build process and now see the same 
error that Olivier Fournier reported in January (Lua script error within rpm 
macros) reported at:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>&nbsp; <A 
href="http://www.mail-archive.com/openpkg-users@openpkg.org/msg03980.html">http://www.mail-archive.com/openpkg-users@openpkg.org/msg03980.html</A></FONT></SPAN></DIV>
 <DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>Was a resolution/workaround to this found?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>Wild guess - could it be due to issue with 'id'? Or possibly 
some sub command (e.g. id, sed, etc) is failing in the bootstrap, due to 
Solaris's 'limited' support of these commands?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>I will continue to investigate, but wanted to report my 
findings so far.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>Jason</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=851533823-15062010><FONT color=#0000ff 
size=2 face=Arial>&nbsp;</DIV></FONT></SPAN><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> openpkg-users-owner@openpkg.org 
  [mailto:openpkg-users-owner@openpkg.org] <B>On Behalf Of </B>Wilson 
  Jason<BR><B>Sent:</B> Wednesday, 16 June 2010 8:32 AM<BR><B>To:</B> 
  openpkg-users@openpkg.org<BR><B>Subject:</B> Bootstrapping openpkg-4.0.7 on 
  Solaris 10<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>Dear 
  Openpkg,</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>Finally getting 
  the time to commence an upgrade of our Openpkg toolset from version 3 to 
  version 4.</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>Have done a 
  successful build of the bootstrap package, but now running into 
  problems.</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>On running any 
  openpkg command receive:</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>&nbsp; 
  openpkg:WARNING: invalid permissions on configuration file 
  "/secomon/openpkg-4/etc/openpkg/managers" -- ignoring 
  file<BR></FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>The permissions on 
  this file are:</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>&nbsp; 
  -rw-r--r--&nbsp;&nbsp; 1 mapp icmg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64 Jun 15 
  17:03 /secomon/openpkg-4/etc/openpkg/managers<BR></FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>Openpkg was 
  bootstrap with the following command:</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>&nbsp; bash 
  openpkg-4.0.7-20100430.src.sh --prefix=/secomon/openpkg-4 --tag=openpkg 
  --user=mapp --group=icmg --muid=6000 --mgid=6000 --rusr=rapp --nusr=napp 
  --rgrp=icrg --ngrp=icng --ruid=6001 --nuid=6002 --rgid=6001 
  --ngid=6002</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>The usernames and 
  groups are all pre-created (and the same as what we used for openpkg version 
  3). The reason for this is as I don't have root access to our servers and by 
  having a consistent set of usernames and id's I can get them pre-created on 
  all systems prior to installation of openpkg.</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>NOTE: I have 
  'changed' the real usernames and user id's (because I am paranoid), but the 
  essence is the same.</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>Other things of 
  note:</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial>/secomon/openpkg-4/bin/openpkg rpm -qa</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>openpkg:WARNING: 
  invalid permissions on configuration file 
  "/secomon/openpkg-4/etc/openpkg/managers" -- ignoring 
  file<BR>gpg-pubkey-63c4cb9f-3c591eda<BR>gpg-pubkey-61b7ae34-4544a6af<BR>gpg-pubkey-52197903-4544a74d<BR></FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>NOTE: There is no 
  openpkg package listed, just the gpg keys</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>Also, 
  running:</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial>/secomon/openpkg-4/bin/openpkg rc all env<BR>openpkg:WARNING: 
  invalid permissions on configuration file 
  "/secomon/openpkg-4/etc/openpkg/managers" -- ignoring file<BR>openpkg:WARNING: 
  invalid permissions on configuration file 
  "/secomon/openpkg-4/etc/openpkg/managers" -- ignoring 
  file<BR></FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>Nothing is output 
  besides the errors.</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 face=Arial>I am guessing 
  something is 'dying' or being aborted inside the sub-commands that openpkg 
  runs, but I haven't been able to work out what. Any hints on how to diagnose 
  further?</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial>Jason</FONT></SPAN></DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=648482322-15062010><FONT size=2 
  face=Arial>&nbsp;</DIV></FONT></SPAN>
  <P><SPAN 
  style="FONT-FAMILY: 'Courier New'; COLOR: #000000; FONT-SIZE: \
9pt"></SPAN>&nbsp;</P>  <P><SPAN 
  style="FONT-FAMILY: 'Courier New'; COLOR: #000000; FONT-SIZE: \
9pt">+----------------------------------------------------------------+</SPAN></P>  \
<P><SPAN   style="FONT-FAMILY: 'Courier New'; COLOR: #000000; FONT-SIZE: 9pt">Think \
B4U   Print</SPAN></P>
  <P><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #000000; FONT-SIZE: 9pt">1 
  ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere</SPAN></P>
  <P><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #000000; FONT-SIZE: 9pt">3 
  sheets of A4 paper = 1 litre of water</SPAN></P>
  <P><SPAN 
  style="FONT-FAMILY: 'Courier New'; COLOR: #000000; FONT-SIZE: \
9pt">+----------------------------------------------------------------+</SPAN></P>  \
<P><SPAN   style="FONT-FAMILY: 'Courier New'; COLOR: #000000; FONT-SIZE: \
9pt"></SPAN>&nbsp;</P></BLOCKQUOTE></BODY></HTML>


______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic