<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><br><span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Times; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="color: rgb(26, 26, 26); font-family: 'Sans Serif'; font-size: 12px; line-height: 16px; white-space: pre-wrap; ">Hi Volker,<br><br>Thank you very much for your help.<br><br>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:<br><br><br>  # pkgrepo create <i>/path/ms.omniti.com/</i><br>  # pkgrepo add-publisher -s <i>/path/ms.omniti.com/</i> ms.omniti.com<br>  # pkgrecv -s <a href="http://pkg.omniti.com/omniti-ms/" style="color: rgb(0, 0, 255); ">http://pkg.omniti.com/omniti-ms/</a> -d <i>/path/ms.omniti.com/</i> '*'<br><br>However, from the beginning, I've had a problem with updating it. I continue to receive this error message:<br><br>  #> pkgrecv -s <a href="http://pkg.omniti.com/omniti-ms/" style="color: rgb(0, 0, 255); ">http://pkg.omniti.com/omniti-ms/</a> -d <i>/path/ms.omniti.com/</i> '*'<br>  Processing packages for publisher omniti-ms ...<br>  Retrieving catalog '<a href="http://pkg.omniti.com/omniti-ms/" style="color: rgb(0, 0, 255); ">http://pkg.omniti.com/omniti-ms/</a>'...          <br>  Unable to retrieve package data for publisher 'omniti-ms' from one<br>  of the following origin(s):<br><br>  <a href="http://pkg.omniti.com/omniti-ms/" style="color: rgb(0, 0, 255); ">http://pkg.omniti.com/omniti-ms/</a><br><br>  The catalog retrieved from one of the origin(s) listed above only<br>  contains package data for: ms.omniti.com.<br><br>  This is either a result of invalid origin information being provided<br>  for publisher 'omniti-ms', or because the wrong publisher name was<br>  provided when this publisher was added.<br><br>I noticed in your last email you used a different method of cloning the repo:<br><br>| # pkgrecv -p ms.omniti.com -s <a href="http://pkg.omniti.com/omniti-ms/" style="color: rgb(0, 0, 255); ">http://pkg.omniti.com/omniti-ms/</a> -d <i>/pkg/ms.omniti.com/</i> --clone<br><br>We ran into a problem with this command-- "pkgrecv: Illegal option --p". Any idea what is going on here? We are running<br>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?<br>If that is the case, is there a way to fix what we already without having to download the entire repo again?<br><br><br>(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)<br><br><br>Regards</span></span><span name="x"></span><div><hr noshade="" size="1">
<span style="font-size:1em"><b>Javier Lopez</b><br></span>
<span style="font-size:0.8em">System Administrator<br><br></span>
<table border="0" cellpadding="0" cellspacing="0">
 <tbody><tr valign="top"><td><span style="font-size:0.8em">phone:<br>mobile:  <br>fax:<br>mail:<br>web:</span></td>
 <td><span style="font-size:0.8em">+49 89 287018 0  <br>  <br>+49 89 287018 18  <br>
  <a href="mailto:javier.lopez@trixter.de">javier.lopez@trixter.de</a> <br>
  <a href="http://www.trixter.de" target="_blank">http://www.trixter.de</a></span>
</td></tr></tbody></table>
<span style="font-size:0.8em"><br><b>TRIXTER Film GmbH</b><br>Amalienstrasse 67<br>80799 Munich, Germany<br></span>
<span style="font-size:0.6em"><br>
  TRIXTER FILM GMBH, Sitz Muenchen, Registergericht Muenchen, HRB 125141, Geschaeftsfuehrer: Simone Kraus, Michael Coldewey, Christian Sommer<br>
  TRIXTER FILM GMBH, Place of business Munich, Register Court Munich, HRB 125141, Managing Directors: Simone Kraus, Michael Coldewey, Christian Sommer<br>
</span>
</div>
<span name="x"></span><br></span><br><hr id="zwchr"><b>From: </b>"Volker A. Brandt" <vab@bb-c.de><br><b>To: </b>"Javier Lopez" <javier.lopez@trixter.de><br><b>Cc: </b>omnios-discuss@lists.omniti.com, "Trixter IT Dept" <it@trixter.de><br><b>Sent: </b>Wednesday, June 17, 2015 9:06:34 AM<br><b>Subject: </b>Re: [OmniOS-discuss] Problem updating ms-omniti local repo<br><br>Hi Javier!<br><br><br>> T hank you for the answer Volker <br><br>You are welcome.<br> <br>> I've recreated the repo following your indications and I still have<br>> the same problem when I try to update the repo.<br><br>Don't worry, you will get there.  Here is exactly what I did (I wanted a <br>local copy anyway :-):<br><br>| # zfs create -o mountpoint=/pkg/ms.omniti.com dpool/pkg/ms.omniti.com<br>| # zfs set atime=off  dpool/pkg/ms.omniti.com<br>| # zfs set setuid=off dpool/pkg/ms.omniti.com<br>| # zfs set devices=off dpool/pkg/ms.omniti.com<br>| # zfs set exec=off dpool/pkg/ms.omniti.com<br>| # pkgrepo create /pkg/ms.omniti.com<br>| # pkgrepo add-publisher -s/pkg/ms.omniti.com ms.omniti.com<br><br>Now you have a choice.  You can clone the repository (= make an<br>exact copy):<br><br>| # pkgrecv -p ms.omniti.com -s http://pkg.omniti.com/omniti-ms/ -d /pkg/ms.omniti.com/ --clone<br>| Processing packages for publisher ms.omniti.com ...<br>| Retrieving and evaluating 1473 package(s)...<br>| DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED<br>| .../postgresql-936/pg_buffercache  1473/1473 617732/617732    6552/6552  718k/s<br>| <br>| Verifying repository contents.<br>| Initiating repository verification.<br>| pkg://ms.omniti.com/omniti/monitoring/nad                           8/1474 -Traceback (most recent call last):<br>|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2391, in verify<br>|     trust_anchors, sig_required_names, use_crls):<br>|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2288, in __gen_verify<br>|     hashes, errors = self.__get_hashes(path, pfmri)<br>|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2005, in __get_hashes<br>|     fnames = fname.split()<br>| AttributeError: 'NoneType' object has no attribute 'split'<br>| Traceback (most recent call last):<br>|   File "/usr/bin/pkgrepo", line 1689, in handle_errors<br>|     __ret = func(*args, **kwargs)<br>|   File "/usr/bin/pkgrepo", line 1665, in main_func<br>|     return func(conf, pargs)<br>|   File "/usr/bin/pkgrepo", line 1512, in subcmd_verify<br>|     for verify_tuple in repo.verify(pub=xpub, progtrack=progtrack):<br>|   File "/usr/lib/python2.6/vendor-packages/pkg/server/repository.py", line 2396, in verify<br>|     raise apx._convert_error(e)<br>| AttributeError: 'NoneType' object has no attribute 'split'<br>| <br>| <br>| pkgrepo: This is an internal error in pkg(5) version 1427212657.  Please log a<br>| Service Request about this issue including the information above and this<br>| message.<br>| <br>| pkgrecv: Pkgrepo verify found errors in the updated repository.<br>| The original package catalog has been restored.<br>| The clone operation can be retried; package content that has already been retrieved will not be downloaded again.<br><br>This is a crash in "pkgrepo verify", which will run automatically<br>after the actual copy.  But the repository is there.<br><br>Or you can retrieve just the latest packages:<br><br>| # pkgrecv -m latest -s http://pkg.omniti.com/omniti-ms/ -d /pkg/ms.omniti.com/ '*'<br>| Processing packages for publisher omniti-ms ...<br>| Retrieving catalog 1/1 omniti-ms 114.48 kB<br>| Unable to retrieve package data for publisher 'omniti-ms' from one<br>| of the following origin(s):<br>| <br>| http://pkg.omniti.com/omniti-ms/<br>| <br>| The catalog retrieved from one of the origin(s) listed above only<br>| contains package data for: ms.omniti.com.<br>| <br>| This is either a result of invalid origin information being provided<br>| for publisher 'omniti-ms', or because the wrong publisher name was<br>| provided when this publisher was added.<br>| <br>| Retrieving and evaluating 809 package(s)...<br>| Download Manifests ( 36/809) -<br><br>Again, there is an error message (because either the FMRI with <br>"omniti-ms" confuses pkgrecv, or there really is an empty publisher<br>entry for "omniti-ms" in the original repository), but the data<br>will be there.<br><br><br>Regards -- Volker<br>-- <br>------------------------------------------------------------------------<br>Volker A. Brandt               Consulting and Support for Oracle Solaris<br>Brandt & Brandt Computer GmbH                   WWW: http://www.bb-c.de/<br>Am Wiesenpfad 6, 53340 Meckenheim, GERMANY            Email: vab@bb-c.de<br>Handelsregister: Amtsgericht Bonn, HRB 10513              Schuhgröße: 46<br>Geschäftsführer: Rainer J.H. Brandt und Volker A. Brandt<br><br>"When logic and proportion have fallen sloppy dead"<br></div></body></html>