[OmniOS-discuss] Problem updating ms-omniti local repo

Volker A. Brandt vab at bb-c.de
Wed Jun 17 07:06:34 UTC 2015


Hi Javier!


> T hank you for the answer Volker 

You are welcome.
 
> I've recreated the repo following your indications and I still have
> the same problem when I try to update the repo.

Don't worry, you will get there.  Here is exactly what I did (I wanted a 
local copy anyway :-):

| # zfs create -o mountpoint=/pkg/ms.omniti.com dpool/pkg/ms.omniti.com
| # zfs set atime=off  dpool/pkg/ms.omniti.com
| # zfs set setuid=off dpool/pkg/ms.omniti.com
| # zfs set devices=off dpool/pkg/ms.omniti.com
| # zfs set exec=off dpool/pkg/ms.omniti.com
| # pkgrepo create /pkg/ms.omniti.com
| # pkgrepo add-publisher -s/pkg/ms.omniti.com ms.omniti.com

Now you have a choice.  You can clone the repository (= make an
exact copy):

| # pkgrecv -p ms.omniti.com -s http://pkg.omniti.com/omniti-ms/ -d /pkg/ms.omniti.com/ --clone
| Processing packages for publisher ms.omniti.com ...
| Retrieving and evaluating 1473 package(s)...
| DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
| .../postgresql-936/pg_buffercache  1473/1473 617732/617732    6552/6552  718k/s
| 
| Verifying repository contents.
| Initiating repository verification.
| pkg://ms.omniti.com/omniti/monitoring/nad                           8/1474 -Traceback (most recent call last):
|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2391, in verify
|     trust_anchors, sig_required_names, use_crls):
|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2288, in __gen_verify
|     hashes, errors = self.__get_hashes(path, pfmri)
|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2005, in __get_hashes
|     fnames = fname.split()
| AttributeError: 'NoneType' object has no attribute 'split'
| Traceback (most recent call last):
|   File "/usr/bin/pkgrepo", line 1689, in handle_errors
|     __ret = func(*args, **kwargs)
|   File "/usr/bin/pkgrepo", line 1665, in main_func
|     return func(conf, pargs)
|   File "/usr/bin/pkgrepo", line 1512, in subcmd_verify
|     for verify_tuple in repo.verify(pub=xpub, progtrack=progtrack):
|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2396, in verify
|     raise apx._convert_error(e)
| AttributeError: 'NoneType' object has no attribute 'split'
| 
| 
| pkgrepo: This is an internal error in pkg(5) version 1427212657.  Please log a
| Service Request about this issue including the information above and this
| message.
| 
| pkgrecv: Pkgrepo verify found errors in the updated repository.
| The original package catalog has been restored.
| The clone operation can be retried; package content that has already been retrieved will not be downloaded again.

This is a crash in "pkgrepo verify", which will run automatically
after the actual copy.  But the repository is there.

Or you can retrieve just the latest packages:

| # pkgrecv -m latest -s http://pkg.omniti.com/omniti-ms/ -d /pkg/ms.omniti.com/ '*'
| Processing packages for publisher omniti-ms ...
| Retrieving catalog 1/1 omniti-ms 114.48 kB
| Unable to retrieve package data for publisher 'omniti-ms' from one
| of the following origin(s):
| 
| http://pkg.omniti.com/omniti-ms/
| 
| The catalog retrieved from one of the origin(s) listed above only
| contains package data for: ms.omniti.com.
| 
| This is either a result of invalid origin information being provided
| for publisher 'omniti-ms', or because the wrong publisher name was
| provided when this publisher was added.
| 
| Retrieving and evaluating 809 package(s)...
| Download Manifests ( 36/809) -

Again, there is an error message (because either the FMRI with 
"omniti-ms" confuses pkgrecv, or there really is an empty publisher
entry for "omniti-ms" in the original repository), but the data
will be there.


Regards -- Volker
-- 
------------------------------------------------------------------------
Volker A. Brandt               Consulting and Support for Oracle Solaris
Brandt & Brandt Computer GmbH                   WWW: http://www.bb-c.de/
Am Wiesenpfad 6, 53340 Meckenheim, GERMANY            Email: vab at bb-c.de
Handelsregister: Amtsgericht Bonn, HRB 10513              Schuhgröße: 46
Geschäftsführer: Rainer J.H. Brandt und Volker A. Brandt

"When logic and proportion have fallen sloppy dead"


More information about the OmniOS-discuss mailing list