On Tue, Jun 2, 2009 at 3:23 PM, Jason King <[email protected]> wrote:
> On Tue, Jun 2, 2009 at 3:15 PM, Dan Price <[email protected]> wrote:
>> On Tue 02 Jun 2009 at 03:09PM, Jason King wrote:
>>> I have a box that was a clean 2008.11 install. After doing the following:
>>>
>>> pkg update SUNWipkg
>>> pkg image-update
>>>
>>> (and waiting 5+ hours)... It fails with 'pkg: image-update cannot be
>>> done on live image'
>>>
>>> Looking at the history, it looks like it correctly identified all the
>>> packages (I'll spare pasting the pages output showing it upgrading
>>> changes in package version). But at the end dies with:
>>>
>>> Errors:
>>> Traceback (most recent call last):
>>> File "/usr/bin/pkg", line 2495, in main_func
>>> mydir = os.environ["PKG_IMAGE"]
>>> File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
>>> def __getitem__(self, key): return self.data[key]
>>> KeyError: 'PKG_IMAGE'
>>>
>>>
>>> After the the initial 2008.11 install, the gcc dev collection was
>>> installed. That's pretty much the entire history of this box.
>>>
>>> It caused a rather embarassing failure in a place where I'm trying to
>>> promote OpenSolaris. I'd like to be able to root cause it instead of
>>> poking and prodding trying to force it to work.
>>>
>>> What is interesting is the pkg update SUNWipkg just updated it to the
>>> -101 version of pkg, not the -111 version. Shouldn't it have updated
>>> it to the the -111 version?
>>
>> Jason,
>>
>> Could you please attach the output of pkg history -l? And the output
>> of 'pkg authority'?
>>
>> Or file a bug at defect.opensolaris.org with the same info attached.
>> Thanks,
>>
>> -dp
>>
>> --
>> Daniel Price, Solaris Kernel Engineering http://blogs.sun.com/dp
>>
>
> $ pkg authority
> PUBLISHER TYPE STATUS URI
> opensolaris.org (preferred) origin online
> http://pkg.opensolaris.org/release/
>
> I'm attaching the pkg history -l output as it's quite long.
Well I tried to, but the 79k history output was a bit too much for the
mailing list :)
The python error was part of the image-update:
Operation: image-update
Outcome: Failed (Bad Request)
Client: pkg
Version: 26c3e2407c53
User: alucard (666)
Start Time: 2009-06-02T10:14:53
End Time: 2009-06-02T14:38:14
Command: /usr/bin/pkg image-update
Start State:
UNEVALUATED:
+pkg:/[email protected],5.11-0.111:20090518T052643Z
+pkg:/[email protected],5.11-0.111:20090508T163112Z
+pkg:/[email protected],5.11-0.111:20090508T163142Z
+pkg:/[email protected],5.11-0.111:20090508T163110Z
+pkg:/[email protected],5.11-0.111:20090508T164640Z
(very long list of pkg:2008.11 version -> 2009.06 version)....
Errors:
Traceback (most recent call last):
File "/usr/bin/pkg", line 2495, in main_func
mydir = os.environ["PKG_IMAGE"]
File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: 'PKG_IMAGE'
I'll file a bug and see if bugzilla will allow the attachment with the
full output..
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss