On 09/22/09 10:47 AM, Shawn Walker wrote:
Steven Lau wrote:
Hi Shawn/Brock ,

After I install SUNWipkg (saw below log) ... pkg command crashes. Look like the steps of upgrading ( 111b -> 123) is not easily been implemented :< I will roll-back to original BE and retry the steps. Please let me know if you have any clues on what's happening.

Thx,

-S


-bash-3.2# pkg version
Traceback (most recent call last):
 File "/usr/bin/pkg", line 2599, in ?
   __ret = main_func()
 File "/usr/bin/pkg", line 2464, in main_func
   global_settings.PKG_CLIENT_TIMEOUT = int(os.environ.get(
AttributeError: 'GlobalSettings' object has no attribute 'PKG_CLIENT_TIMEOUT'


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 '87d6ba4c8e1c'.

If you didn't do a zfs rollback (or reboot to the alternate be) using the snapshot that pkg(5) named whenever you first encountered the original install failure, then this isn't really entirely unexpected since the first install only partially installed files on your system.

Well, actually I did roll back to the original BE (before upgrading) and following the steps ... but I can try again to see what will happen. The following the updated upgrade steps based on the latest emails ... could you confirm it again. The step is important for us because couple of labs' AI servers needed to be upgraded from 111b.

Thx,

-Steven


----

1.  list boot env.

  # beadm list

2.  create a snapshot of existing BE in case need to roll-back

  # pfexec zfs snapshot rpool/ROOT/opensolari...@before_upgrading

3. install entire

  # pfexec pkg install -nv [email protected],5.11-0.111

3.5 Assuming that output is reasonable (ie, it's only installing entire), then do:
     pfexec pkg install [email protected],5.11-0.111

4.  workaround other bugs

  # pfexec pkg refresh --full

5. install SUNWipkg ... also confirm it stalls b111 version

   # pfexec pkg install -nv SUNWipkg

5.5 Run the install without -n to actually do the install properly.

6. then ... do the image-update

7. reboot

-S

So yes, you'll need to go back to the original BE, and try again.

Cheers,

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

Reply via email to