Project

General

Profile

Bug #1064

image-update failure in file upgrade action

Added by Albert Lee almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
PKG (Image Packaging System)
Target version:
Start date:
2011-05-24
Due date:
2013-12-10
% Done:

0%

Estimated time:
1.00 h
Difficulty:
Medium
Tags:
pkg

Description

Testing yesterday's /dev-il update, I get this image-update failure:

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              1000/1000 18167/18167  522.3/522.3

PHASE                                        ACTIONS
Removal Phase                              8777/8777 
Install Phase                            10281/10281 
Update Phase                             15413/26775Action upgrade failed for '
usr/lib/iiim/le/hangul/input_methods/hangul_im.so' (pkg://openindiana.org/syste
m/input-method/iiim/hangul):
 TypeError: 'NoneType' object is not callable
 The running system has not been modified. Modifications were only made to a cl
one of the running system.  This clone is mounted at /tmp/tmpDL12Eu should you 
wish to inspect it.
pkg: An unexpected error happened during image-update: 'NoneType' object is not
 callable
Traceback (most recent call last):
  File "/usr/bin/pkg", line 4242, in handle_errors
    __ret = func(*args, **kwargs)
  File "/usr/bin/pkg", line 4221, in main_func
    return func(img, pargs)
  File "/usr/bin/pkg", line 1395, in image_update
    ret_code = __api_execute_plan(op, api_inst)
  File "/usr/bin/pkg", line 991, in __api_execute_plan
    api_inst.execute_plan()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 749, in exe
cute_plan
    self.__img.imageplan.execute()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 1176,
 in execute
    p.execute_update(src, dest)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 335, in
 execute_update
    dest.install(self, src)
  File "/usr/lib/python2.6/vendor-packages/pkg/actions/file.py", line 174, in i
nstall
    stream = self.data()
TypeError: 'NoneType' object is not callable

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 '46a73a170135+'.

The symptoms are similar to
https://defect.opensolaris.org/bz/show_bug.cgi?id=15254 but this BE is not split across filesystems. I'll try to investigate further.

History

#1

Updated by Albert Lee almost 9 years ago

fwiw,

[trisk@kirin]% ls -l /tmp/tmpDL12Eu/usr/lib/iiim/le/hangul/input_methods/    ~
total 4
drwxr-xr-x 2 root bin  2 2011-05-24 19:14 data
drwxr-xr-x 2 root bin  2 2011-05-24 19:14 icons
-rw------- 1 root root 0 2011-05-24 19:17 tmpnkOYWF
[trisk@kirin]% ls -l /usr/lib/iiim/le/hangul/input_methods/                  ~
total 24
drwxr-xr-x 2 root bin     3 2011-05-22 15:08 data
-rwxr-xr-x 1 root bin 20840 2011-05-22 15:08 hangul_im.so
-rwxr-xr-x 1 root bin 11656 2011-05-22 15:08 hex.so
drwxr-xr-x 2 root bin     4 2011-05-22 15:08 icons

#2

Updated by Albert Lee almost 9 years ago

Recurs at different files in pkg://openindiana.org/system/input-method/iiim/hangul every time I run image-update.

Action upgrade failed for '
usr/lib/iiim/le/hangul/auxiliary_windows/gtk2/composite_aux_gtk2' (pkg://openin
diana.org/system/input-method/iiim/hangul):
... identical traceback.

#3

Updated by Albert Lee almost 9 years ago

Different package this time:

Update Phase                             15956/26775Action upgrade failed for '
usr/lib/iiim/le/thaile/thaile.so' (pkg://openindiana.org/system/input-method/ii
im/thaile):
 TypeError: 'NoneType' object is not callable

My current guess is that a FileAction was created with data=None.

#4

Updated by Albert Lee almost 9 years ago

  • Priority changed from Normal to Low
  • Target version changed from oi_151 to oi_151_stable

This can be worked around with pkg -R <BE mountpoint> image-update

#5

Updated by Ken Mays over 6 years ago

  • Due date set to 2013-12-10
  • Status changed from New to Closed
  • Estimated time set to 1.00 h
  • Tags changed from needs-triage to pkg

Using the slide info from Oracle on B.E. setup and usage to update systems versus Live images issue. Will post this workaround on Wiki as well for new pkg release in hipster.

Also available in: Atom PDF