Steven Lau wrote:
On 09/22/09 11:17 AM, Shawn Walker wrote:
Steven Lau wrote:
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
Yes, that should work. You probably want step 4 before step 3 though.
You shouldn't need to create a snapshot yourself as the package system
will do that for you, but it doesn't hurt.
Well ... no luck. Still fail with pkg command after installed
SUNWipkg. ( I roll-backed to the orginal BE, pkg working fine with
old version). Unless you have new suggestion, I am going to freshly
install b123 on my AI server.
-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'.
I can't find any open bugs that document this issue, and its fairly
surprising to me that it's happening. This basically indicates that
somehow the underlying pkg(5) libraries are out of sync with the pkg
client itself.
This would usually point to a developer workspace being in your path for
pkg(5) (e.g. PYTHONPATH, etc.) or an attempt to run the development
version of pkg(5) on a system with release libraries.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss