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

2015-06-29 Thread Lopez, Javier
Hello Volker,

I'm sorry for my silence, I was out of the office the last week. Thank you so 
much for your help on this, we will try your suggestions and continue on this 
problem. I will give you feedback as soon as we have progressed.

Thank you so much for your help.


Best regards
Javier
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


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

2015-06-25 Thread Volker A. Brandt
Hello Javier!


Hi Javier!


I have a quick and dirty workaround for you now.  I did this manually as a
proof of concept, but it can be scripted easily.


Step 1:

  Create a temporary directory to hold a raw copy of the repository
  content.  You can delete the directory after you are finished.  Then,
  create the repository as you showed in your previous mails.

  In the following example, I use /RAW for the temp directory, and /REPO for
  the repository.


Step 2:

  Get the raw repository contents (I use just the latest, and only packages
  with the omniti/ prefix in their name):

  # /usr/bin/pkgrecv -m latest -s http://pkg.omniti.com/omniti-ms/ -d /RAW 
--raw 'pkg://ms.omniti.com/omniti/*'

  This will give you a directory tree with file objects and metadata.  Here is
  the directory for pkg://ms.omniti.com/omniti/viewer/xpdf as an example:

  # cd /RAW ; ls -golFR 
omniti%2Fviewer%2Fxpdf/3.4%2C5.11-0.151006%3A20141016T190442Z
  omniti%2Fviewer%2Fxpdf/3.4%2C5.11-0.151006%3A20141016T190442Z:
  total 20369
  -rw-r--r--   19348 Jun 25 08:45 09c7c05f1c49e6bc2aeea6355ca6e45243cfe21c
  -rw-r--r--   1 1882480 Jun 25 08:45 0c966a51f4d9c3e2e3afb984cda715891f1414ac
  [...]
  -rw-r--r--   1 1768656 Jun 25 08:45 fd77184cdab518416fe71a920575a36d363c65f8
  -rw-r--r--   17486 Jun 25 08:44 manifest
  -rw-r--r--   1 433 Jun 25 08:44 manifest.depend
  -rw-r--r--   1 514 Jun 25 08:44 manifest.dir
  -rw-r--r--   1 248 Jun 25 08:44 manifest.dircache
  -rw-r--r--   16212 Jun 25 08:44 manifest.file
  -rw-r--r--   1   0 Jun 25 08:44 manifest.mediatorcache
  -rw-r--r--   1 446 Jun 25 08:44 manifest.set


Step 3:

  Create the missing subdirectories in the repository.  When you are finished,
  it should look like this:

  # cd /REPO/publisher/ms.omniti.com ; ls -golF
  total 366
  drwxr-xr-x   2   6 Jun 25 08:38 catalog/
  drwxr-xr-x 258 258 Jun 25 08:25 file/
  drwxr-xr-x   2  38 Jun 25 08:40 index/
  drwxr-xr-x 807 807 Jun 25 08:34 pkg/
  -rw-r--r--   1 171 Jun 25 08:24 pub.p5i
  drwxr-xr-x   2   3 Jun 25 08:38 tmp/


Step 4:

  Create the hash directories in the file directory:

  # cd file
  # mkdir 00 01 ... fe ff

  Look at an existing repository with data in it to see what it should look
  like.


Step 5:

  Move the file objects from /RAW to /REPO into the correct file/XX directory:

  For example (really one line for each file):

  # mv 
/RAW/omniti%2Fviewer%2Fxpdf/3.4%2C5.11-0.151006%3A20141016T190442Z/09c7c05f1c49e6bc2aeea6355ca6e45243cfe21c
 \
/REPO/publisher/ms.omniti.com/file/09/

  # mv 
/RAW/omniti%2Fviewer%2Fxpdf/3.4%2C5.11-0.151006%3A20141016T190442Z/0c966a51f4d9c3e2e3afb984cda715891f1414ac
 \
/REPO/publisher/ms.omniti.com/file/0c/

  Do this for all file objects in all package subdirectories.  I love shell
  loops. :-)


Step 6:

  Copy the manifest of each package into a subdirectory under pkg with the
  package version as the file name:

  # mkdir /REPO/publisher/ms.omniti.com/pkg/omniti%2Fviewer%2Fxpdf
  # mv 
/RAW/omniti%2Fviewer%2Fxpdf/3.4%2C5.11-0.151006%3A20141016T190442Z/manifest \
omniti%2Fviewer%2Fxpdf/3.4%2C5.11-0.151006%3A20141016T190442Z

  Do this for all manifests in all package subdirectories.  Ignore the other
  manifest.* files in the package subdirectory.


Step 7:

  Rebuild the repository catalog, index, etc.:

  # pkgrepo rebuild -s /REPO



You can now use /REPO as an origin for the ms.omniti.com publisher.


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, GERMANYEmail: v...@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
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


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

2015-06-23 Thread Lopez, Javier
Hello again, 

I didn't notice that the server managing the updating process was running 
r151012 ... I'm sorry for that. 

I've upgraded it to the r151014. So now:


# pkg info pkg
  Name: package/pkg
   Summary: Image Packaging System
   Description: The Image Packaging System (IPS), or pkg(5), is the software
delivery system used on Oracle Solaris.  This package contains
the core command-line components and pkg.depotd server.
  Category: System/Packaging
 State: Installed
 Publisher: omnios
   Version: 0.5.11
Branch: 0.151014
Packaging Date: April  2, 2015 06:43:07 PM 
  Size: 11.75 MB
  FMRI: pkg://omnios/package/pkg@0.5.11-0.151014:20150402T184307Z


I've tried again following your instructions. The problem updating the repo is 
still here, I get the message: 


# pkgrecv -s http://pkg.omniti.com/omniti-ms/ -d 
/mnt/rpm-repo/omnios/ms.omniti.com/ -m all-timestamps '*'
Processing packages for publisher omniti-ms ...
Retrieving catalog 1/1 omniti-ms 115.63 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 1492 package(s)...
PROCESS ITEMSGET (MB)   SEND (MB)
network/iftop  1/1492  0/6591 0/19490
pkgrecv: 'open' failed for transaction ID 
'1376680458_pkg%3A%2F%2Fms.omniti.com%2Fnetwork%2Fiftop%401.0.2%2C5.11-0.151006%3A20130816T191418Z':
 The specified FMRI, 
'pkg://ms.omniti.com/network/iftop@1.0.2,5.11-0.151006:20130816T191418Z', 
already exists or has been restricted.


pkgrecv: Cached files were preserved in the following directory:
/var/tmp/pkgrecv-T0Njj3
Use pkgrecv -c to resume the interrupted download.


As you can see, the initial error is the same as the one I sent to you earlier. 
This is the error you told me to ignore earlier, and the process does still run 
but is stopped by the error above as it tries to retrieve packages. Sometimes 
it is able to retrieve and evaluate a number of packages before it halts.

Are you able to get all the packages even when you get the initial error when 
you're trying to update the repo? This is the big question for me.




In case this helps, I did the same process with another repo and it works fine:


# pkgrecv -s http://pkg.omniti.com/omnios/r151014/ -d 
/mnt/rpm-repo/omnios/r151014/ -m all-timestamps '*'
Processing packages for publisher omnios ...
Retrieving and evaluating 1882 package(s)...
PROCESS ITEMSGET (MB)   SEND (MB)
Completed 865/865 225.9/225.9 541.2/541.2


If I try again nothing happens (because it is already updated?)


# pkgrecv -s http://pkg.omniti.com/omnios/r151014/ -d 
/mnt/rpm-repo/omnios/r151014/ -m all-timestamps '*'
Processing packages for publisher omnios ...
Retrieving and evaluating 1882 package(s)...


Before:

# pkgrepo info -s /mnt/rpm-repo/omnios/r151014/
PUBLISHER PACKAGES STATUS   UPDATED
omnios1016 online   2015-06-14T16:01:01.659806Z


After:

# pkgrepo info -s /mnt/rpm-repo/omnios/r151014/
PUBLISHER PACKAGES STATUS   UPDATED
omnios1016 online   2015-06-23T16:19:00.901415Z



Thank you so much for your time. :)
Regards Javier.


- Original Message - 
From: Volker A. Brandt v...@bb-c.de 
To: Javier Lopez javier.lo...@trixter.de 
Cc: omnios-discuss@lists.omniti.com, Trixter IT Dept i...@trixter.de 
Sent: Wednesday, June 17, 2015 4:15:26 PM 
Subject: Re: [OmniOS-discuss] Problem updating ms-omniti local repo 

Hi Javier! 


 Sorry I forgot to specify we are running 151014 

Same here: 

pkg in# uname -a 
SunOS nfs 5.11 omnios-170cea2 i86pc i386 i86pc 
# cat /etc/release 
OmniOS v11 r151014 
Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved. 
Use is subject to license terms. 
# pkg version 
1427212657 

 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: 

Ah, that is good. 

 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

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

2015-06-23 Thread Volker A. Brandt
Hello Javier!


 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.

I guess that this could be the result of an error in the IPS software.
Maybe the omniti-ms in the pkg origin URI makes pkgrecv think that
this should be the publisher name.  It could also be because at one
time the repository hosted at http://pkg.omniti.com/omniti-ms/;
really did contain packages for the publisher ms-omniti.

FWIW a pkg list -g http://pkg.omniti.com/omniti-ms/; will give a
similar but slightly longer message:

  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.

  To resolve this issue, correct the origin information provided for
  publisher 'omniti-ms' using the pkg set-publisher subcommand, or re-add
  the publisher using the correct name and remove the 'omniti-ms'
  publisher.

  To re-add this publisher with the correct name, execute the following
  commands as a privileged user:

  pkg set-publisher -P -g http://pkg.omniti.com/omniti-ms/ ms.omniti.com
  pkg unset-publisher omniti-ms

This advice is bogus because the publisher was never set to omniti-ms
in the first place. :-(

Anyway, you can safely ignore this message because ms.omniti.com is the 
publisher you want.

 PROCESS ITEMSGET (MB)   SEND (MB)
 network/iftop  1/1492  0/6591 0/19490
 pkgrecv: 'open' failed for transaction ID 
 '1376680458_pkg%3A%2F%2Fms.omniti.com%2Fnetwork%2Fiftop%401.0.2%2C5.11-0.151006%3A20130816T191418Z':
  The specified FMRI, 
 'pkg://ms.omniti.com/network/iftop@1.0.2,5.11-0.151006:20130816T191418Z', 
 already exists or has been restricted.

[...]

 As you can see, the initial error is the same as the one I sent to you
 earlier. This is the error you told me to ignore earlier

Hmmm... I think I said to ignore the other error above.  The 'open failed'
error is a bug in the repo and can only be fixed locally.  I cannot
really tell what restricted means.  The package has a duplicate
package name in the metadata:

  # pkg contents -m -g http://pkg.omniti.com/omniti-ms/ network/iftop | fgrep 
pkg.fmri
  [...error message omitted...]
  set name=pkg.fmri 
value=pkg://ms.omniti.com/network/iftop@1.0.2,5.11-0.151006:20130816T191418Z
  set name=pkg.fmri 
value=pkg://ms.omniti.com/omniti/network/iftop@1.0.2,5.11-0.151006:20130816T191228Z

The second entry should be removed.  That is really the name of the
new package the old network/iftop package was renamed to.

Unfortunately it is not possible to tell pkgrecv give me everything 
*except* network/iftop@1.0.2,5.11-0.151006:20130816T191418Z.  You could
retrieve a list of the latest version all packages in the repo and ask for 
those packages explicitly.  This could be scripted.  Unfortunately, I do
not have time for that at the moment.

 Are you able to get all the packages even when you get the initial error
 when you're trying to update the repo? This is the big question for me. 

No, I get exactly the same error.

Dan  Eric, can you help?


Thanks -- 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, GERMANYEmail: v...@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
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


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

2015-06-23 Thread Volker A. Brandt
I wrote:

 The package has a
 duplicate package name in the metadata:
 
   # pkg contents -m -g http://pkg.omniti.com/omniti-ms/ network/iftop | fgrep 
 pkg.fmri
   [...error message omitted...]
   set name=pkg.fmri 
 value=pkg://ms.omniti.com/network/iftop@1.0.2,5.11-0.151006:20130816T191418Z
   set name=pkg.fmri 
 value=pkg://ms.omniti.com/omniti/network/iftop@1.0.2,5.11-0.151006:20130816T191228Z

This is wrong.  I should have asked for the full version:

  # pkg contents -m -g http://pkg.omniti.com/omniti-ms/ 
network/iftop@1.0.2,5.11-0.151006:20130816T191418Z
  [...error message omitted...]
  set name=pkg.fmri 
value=pkg://ms.omniti.com/network/iftop@1.0.2,5.11-0.151006:20130816T191418Z
  set name=pkg.renamed value=true
  set name=variant.opensolaris.zone value=global value=nonglobal
  depend fmri=pkg://ms.omniti.com/omniti/network/iftop type=require

This is just a normal renamed package.  I can't really see what the
problem is here.


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, GERMANYEmail: v...@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
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


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

2015-06-17 Thread Volker A. Brandt
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)...
| DOWNLOADPKGS FILESXFER (MB)   
SPEED
| .../postgresql-936/pg_buffercache  1473/1473 617732/6177326552/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, GERMANYEmail: v...@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
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


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

2015-06-17 Thread Lopez, Javier

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.lo...@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 v...@bb-c.de 
To: Javier Lopez javier.lo...@trixter.de 
Cc: omnios-discuss@lists.omniti.com, Trixter IT Dept i...@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

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

2015-06-17 Thread Lopez, Javier
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.lo...@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.lo...@trixter.de 
To: Volker A. Brandt v...@bb-c.de 
Cc: omnios-discuss@lists.omniti.com, Trixter IT Dept i...@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.lo...@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 v...@bb-c.de 
To: Javier Lopez javier.lo...@trixter.de 
Cc: omnios-discuss@lists.omniti.com, Trixter IT Dept i...@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

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

2015-06-17 Thread Volker A. Brandt
Hi Javier!


 Sorry I forgot to specify we are running 151014

Same here:

# uname -a
SunOS nfs 5.11 omnios-170cea2 i86pc i386 i86pc
# cat /etc/release
  OmniOS v11 r151014
  Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
  Use is subject to license terms.
# pkg version
1427212657

 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:

Ah, that is good.

 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. 

Yes, this message is annoying.  I tried to explain what I think why
this message appears.  However, the repository is good despite the
message.  Just ignore it.

 | # 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?

Maybe your pkgrecv simply does not have the -p option.  Your version of
pkg(5) might be too old.  This is the version I have in my 151014 system:

# pkg info pkg
  Name: package/pkg
   Summary: Image Packaging System
   Description: The Image Packaging System (IPS), or pkg(5), is the software
delivery system used on Oracle Solaris.  This package contains
the core command-line components and pkg.depotd server.
  Category: System/Packaging
 State: Installed
 Publisher: omnios
   Version: 0.5.11
Branch: 0.151014
Packaging Date: Thu Apr  2 18:43:07 2015
  Size: 11.75 MB
  FMRI: pkg://omnios/package/pkg@0.5.11-0.151014:20150402T184307Z

What does pkg info pkg show on your box?


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, GERMANYEmail: v...@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
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


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

2015-06-16 Thread Lopez, Javier
T hank you for the answer Volker , 

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

thank you for your time 

regards 

- Original Message -
From: Javier Lopez javier.lo...@trixter.de 
To: omnios-discuss@lists.omniti.com 
Cc: Trixter IT Dept i...@trixter.de 
Sent: Monday, June 15, 2015 2:22:49 PM 
Subject: Problem updating ms-omniti local repo 



Hello, 

I've created a local mirror of the ms.omniti.com repository with the following 
command: 

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

Everything were fine but when I tried to update the repo I get 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. 

Retrieving and evaluating 809 package(s)... 
PROCESS ITEMS GET (MB) SEND (MB) 
omniti/runtime/nodejs 1/809 6.6/1805.6 0.2/5478.3 
pkgrecv: 'open' failed for transaction ID 
'1430420933_pkg%3A%2F%2Fms.omniti.com%2Fomniti%2Fruntime%2Fnodejs%400.10.21%2C5.11-0.151014%3A20150430T190853Z':
 The specified FMRI, 
'pkg://ms.omniti.com/omniti/runtime/nodejs@0.10.21,5.11-0.151014:20150430T190853Z',
 already exists or has been restricted. 


pkgrecv: Cached files were preserved in the following directory: 
/var/tmp/pkgrecv-hLEfRQ 
Use pkgrecv -c to resume the interrupted download. 


I'm stucked here. Any help or pointers will be apreciated. 

Regards. 
Javier. 





___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


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

2015-06-15 Thread Volker A. Brandt
Hi Javier!


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

This is not enough.  You need to explicitly set the publisher for your
new local repository.  The correct publisher name is ms.omniti.com.

So, to create a local repository, do:

  # 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/ '*'


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, GERMANYEmail: v...@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
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss