On 10/01/09 16:06, Shawn Walker wrote:
Randall Chuck wrote:
Hi Shawn,

Pkg contents are at Sun internal site:
    http://webhome.central.sun.com/rchuck/pkg_contents.txt

The pkg history errors:
Traceback (most recent call last):
  File "/usr/bin/pkg", line 2806, in handle_errors
    __ret = func(*args, **kwargs)
  File "/usr/bin/pkg", line 2723, in main_func
    __img = img = image.Image(mydir, provided_image_dir)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 213, in __init__
    progtrack)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 290, in find_root
    progtrack=progtrack)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 393, in __set_dirs
    self.__check_image(progtrack=progtrack)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 400, in __check_image
    self.__upgrade_image(progtrack=progtrack)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1558, in __upgrade_image
    add_installed_entry(f)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1547, in add_installed_entry
    path = "%s/pkg/%s/installed" % \
File "/usr/lib/python2.4/vendor-packages/pkg/fmri.py", line 364, in get_dir_path
    raise MissingVersionError(self)
MissingVersionError: FMRI 'pkg:/catalog.attrs' is missing version information.


pkg: This is an internal error. Please let the developers know about this problem by filing a bug at http://defect.opensolaris.org and including the above traceback and this message. The version of pkg(5) is '7b2e3230fde9'.

I had to restart twice, the first restart appeared to freeze.
After waiting for 5-10 minutes with no output, I pwr-cycled.

I may have done a some pkg command after the restart.

Ah, so you likely managed to interrupt the process that was upgrading your system's image when you restarted. The good news is that this should be recoverable.

By the way, what kind of system is this (processor, memory, etc.)?

Okay, so please create a zfs snapshot or an alternate be before performing the following steps (as root or using pfexec) in case this goes wrong:

svcadm disable application/pkg/update

mv /var/pkg/publisher/ipkg.sfbay/catalog/attrs /var/pkg/catalog/ipkg.sfbay/

mv /var/pkg/publisher/ipkg.sfbay/catalog/catalog /var/pkg/catalog/ipkg.sfbay/

mv /var/pkg/publisher/opensolaris.org/catalog/attrs /var/pkg/catalog/ipkg.sfbay/

mv /var/pkg/publisher/opensolaris.org/catalog/catalog /var/pkg/catalog/ipkg.sfbay/

rm -f /var/pkg/state/installed/catalog.*
rm -rf /var/pkg/publisher
rm -rf /var/pkg/state/known

(the below will take a while)
pkg refresh

svcadm enable application/pkg/update

Cheers,

THANKS Shawn!

rch...@ai 1057$ prtdiag|head -10
System Configuration: Sun Microsystems SUN FIRE X4250
BIOS Configuration: American Megatrends Inc. 1ADQW058 12/15/2008
BMC Configuration: IPMI 2.0 (KCS: Keyboard Controller Style)

==== Processor Sockets ====================================

Version                          Location Tag
-------------------------------- --------------------------
Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz CPU 1
Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz CPU 2

rch...@ai 1058$ prtconf|head -2
System Configuration:  Sun Microsystems  i86pc
Memory size: 16384 Megabytes

--
Randall
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to