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

Lopez, Javier javier.lopez at trixter.de
Wed Jun 17 13:02:49 UTC 2015


Sorry I forgot to specify we are running 151014 



Javier Lopez 
System Administrator 

phone: 
mobile: 
fax: 
mail: 
web: 	+49 89 287018 0 

+49 89 287018 18 
javier.lopez at trixter.de 
http://www.trixter.de 
TRIXTER Film GmbH 
Amalienstrasse 67 
80799 Munich, Germany 

TRIXTER FILM GMBH, Sitz Muenchen, Registergericht Muenchen, HRB 125141, Geschaeftsfuehrer: Simone Kraus, Michael Coldewey, Christian Sommer 
TRIXTER FILM GMBH, Place of business Munich, Register Court Munich, HRB 125141, Managing Directors: Simone Kraus, Michael Coldewey, Christian Sommer 


----- Original Message -----
From: "Javier Lopez" <javier.lopez at trixter.de> 
To: "Volker A. Brandt" <vab at bb-c.de> 
Cc: omnios-discuss at lists.omniti.com, "Trixter IT Dept" <it at trixter.de> 
Sent: Wednesday, June 17, 2015 2:59:18 PM 
Subject: Re: [OmniOS-discuss] Problem updating ms-omniti local repo 



Hi Volker, 

Thank you very much for your help. 

I think we had a small misunderstanding though: I don't have a problem with creating the repo, I in fact having it working now. I used your advice from your second email: 


# pkgrepo create /path/ms.omniti.com/ 
# pkgrepo add-publisher -s /path/ms.omniti.com/ ms.omniti.com 
# pkgrecv -s http://pkg.omniti.com/omniti-ms/ -d /path/ms.omniti.com/ '*' 

However, from the beginning, I've had a problem with updating it. I continue to receive this error message: 

#> pkgrecv -s http://pkg.omniti.com/omniti-ms/ -d /path/ms.omniti.com/ '*' 
Processing packages for publisher omniti-ms ... 
Retrieving catalog ' http://pkg.omniti.com/omniti-ms/ '... 
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. 

I noticed in your last email you used a different method of cloning the repo: 

| # pkgrecv -p ms.omniti.com -s http://pkg.omniti.com/omniti-ms/ -d /pkg/ms.omniti.com/ --clone 

We ran into a problem with this command-- "pkgrecv: Illegal option --p". Any idea what is going on here? We are running 
Your pkgrecv command as written specifies the publisher (I guess with the -p option): is this perhaps what is giving us a problem with updating? 
If that is the case, is there a way to fix what we already without having to download the entire repo again? 


(Just to give a bit of background, the reason why we asked this question in the first place is because we want to have our repo management server update our omnios repos on a cron job) 


Regards 

Javier Lopez 
System Administrator 

phone: 
mobile: 
fax: 
mail: 
web: 	+49 89 287018 0 

+49 89 287018 18 
javier.lopez at trixter.de 
http://www.trixter.de 
TRIXTER Film GmbH 
Amalienstrasse 67 
80799 Munich, Germany 

TRIXTER FILM GMBH, Sitz Muenchen, Registergericht Muenchen, HRB 125141, Geschaeftsfuehrer: Simone Kraus, Michael Coldewey, Christian Sommer 
TRIXTER FILM GMBH, Place of business Munich, Register Court Munich, HRB 125141, Managing Directors: Simone Kraus, Michael Coldewey, Christian Sommer 


----- Original Message -----
From: "Volker A. Brandt" <vab at bb-c.de> 
To: "Javier Lopez" <javier.lopez at trixter.de> 
Cc: omnios-discuss at lists.omniti.com, "Trixter IT Dept" <it at trixter.de> 
Sent: Wednesday, June 17, 2015 9:06:34 AM 
Subject: Re: [OmniOS-discuss] Problem updating ms-omniti local repo 

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" 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20150617/62a2805c/attachment-0001.html>


More information about the OmniOS-discuss mailing list