[oi-dev] Error on /usr/bin/pkg update -v

Alexander Pyhalov alp at rsu.ru
Thu Aug 25 06:39:08 UTC 2016


On 08/25/16 03:01 AM, Aurélien Larcher wrote:
> On Thu, Aug 25, 2016 at 1:28 AM, Franklin <franklin.desenv at gmail.com> wrote:
>> Hi team,
>>
>> This error is ocurring on /usr/bin/pkg update -v, anyone have same issue?
>> I'm using OpenIndiana Hipster on latest version.
>>
>> Thanks,
>>
>> TypeError: 'NoneType' object is not callable
>>
>> The running system has not been modified. Modifications were only made to a
>> clone of the running system.  This clone is mounted at /tmp/tmpKUoDOw should
>> you wish to inspect it.
>> Traceback (most recent call last):
>>    File "/usr/bin/pkg", line 5444, in handle_errors
>>      __ret = func(*args, **kwargs)
>>    File "/usr/bin/pkg", line 5430, in main_func
>>      pargs=pargs, **opts)
>>    File "/usr/bin/pkg", line 2116, in update
>>      display_plan_cb=display_plan_cb, logger=logger)
>>    File "/usr/lib/python2.6/vendor-packages/pkg/client/client_api.py", line
>> 1600, in _update
>>      logger=logger)
>>    File "/usr/lib/python2.6/vendor-packages/pkg/client/client_api.py", line
>> 1476, in __api_op
>>      ret = __api_execute_plan(_op, _api_inst)
>>    File "/usr/lib/python2.6/vendor-packages/pkg/client/client_api.py", line
>> 1028, in __api_execute_plan
>>      api_inst.execute_plan()
>>    File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 2825, in
>> execute_plan
>>      self._img.imageplan.execute()
>>    File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line
>> 4613, in execute
>>      p.execute_update(src, dest)
>>    File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 582,
>> in execute_update
>>      dest.install(self, src)
>>    File "/usr/lib/python2.6/vendor-packages/pkg/actions/file.py", line 189,
>> in install
>>      stream = self.data()
>> TypeError: 'NoneType' object is not callable
>>
>>
>> pkg: This is an internal error in pkg(5) version 5d991ae.  Please log a
>> Service Request about this issue including the information above and this
>> message.
>
> Seems similar to https://www.illumos.org/issues/7320#change-17508

Hi, Franklin.
Nikola had similar issue and I hope we managed to fix it (or at least 
find workaround) in latest IPS version. The only issue is that latest 
IPS version can be compiled on later illumos-gate base, so you can have 
issues installing it (chicken & egg issue). Perhaps, you can follow the 
same procedure which I recommended to Nikola:

# beadm create my-backup-be
# pkg change-facet facet.version-lock.package/pkg=true=false
# pkg set-publisher --non-sticky -g 
http://buildzone.oi-build.r61.net:1000/ userland
# pkg set-publisher --non-sticky openindiana.org
# pkg install 
pkg://userland/package/pkg@0.5.11,5.11-2016.0.0.5182:20160824T114645Z # 
here userland - buildzone.oi-build.r61.net:1000
# pkg update

Or one mentioned in https://www.illumos.org/issues/7320#note-1 (check 
tat ssh mediator is set to openssh before starting).


-- 
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department




More information about the oi-dev mailing list