Hey guys.

I have a bit of problems getting pkg to install packages, it throws an error and quit when doing pkg refresh, pkg install and pkg image-update

This is an clean zone, not a single other command has been executed except for a 'ping google.com'. The zone is a small/light zone with ip- type=exclusive, capped-cpu set ncpus=0.5, capped-memory set physical=128m, set swap=128m and a e1000g if (not a vnic, but "physical").

The host is running b109 x64 in a Virtualbox (2.1.4) in Solaris 64 bit mode and using pkg.opensolaris.org/dev as authority. The VM has 1024m RAM and a single cpu assigned. Strange enough, both host and other zones works perfectly fine.
pkg version is 35c21b6c0a67

Error output:

r...@web:~# pkg install SUNWapch22
Refreshing Catalog 1/1 opensolaris.orgTraceback (most recent call last):
 File "/usr/bin/pkg", line 2282, in ?
   __ret = main_func()
 File "/usr/bin/pkg", line 2231, in main_func
   return install(mydir, pargs)
 File "/usr/bin/pkg", line 691, in install
   update_index=update_index)
File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 142, in plan_install
   self.img.retrieve_catalogs(
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1657, in retrieve_catalogs
   self.cache_catalogs(auths)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1717, in cache_catalogs
   protocol = cPickle.HIGHEST_PROTOCOL)
MemoryError

r...@web:~# pkg authority
AUTHORITY                           URL
opensolaris.org (preferred)         http://pkg.opensolaris.org/dev/
r...@web:~# pkg image-update
Refreshing Catalog 1/1 opensolaris.orgTraceback (most recent call last):
 File "/usr/bin/pkg", line 2282, in ?
   __ret = main_func()
 File "/usr/bin/pkg", line 2229, in main_func
   return image_update(mydir, pargs)
 File "/usr/bin/pkg", line 525, in image_update
   update_index=update_index, be_name=be_name)
File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 317, in plan_update_all
   self.img.retrieve_catalogs(
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1657, in retrieve_catalogs
   self.cache_catalogs(auths)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1717, in cache_catalogs
   protocol = cPickle.HIGHEST_PROTOCOL)
MemoryError

r...@web:~# pkg refresh
Traceback (most recent call last):
 File "/usr/bin/pkg", line 2282, in ?
   __ret = main_func()
 File "/usr/bin/pkg", line 2225, in main_func
   return catalog_refresh(mydir, pargs)
 File "/usr/bin/pkg", line 1491, in catalog_refresh
   api_inst.refresh(full_refresh, pargs)
File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 592, in refresh
   auths_to_refresh)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1657, in retrieve_catalogs
   self.cache_catalogs(auths)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1717, in cache_catalogs
   protocol = cPickle.HIGHEST_PROTOCOL)
MemoryError

I'm assuming this is some sort of catalog cache issue - but I'm no Python programmer ;-)

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

Reply via email to