Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Solaris11: Problem with creating 2nd repository
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Heinz Müller  
View profile  
 More options Oct 17 2012, 5:45 pm
Newsgroups: comp.unix.solaris
From: Heinz Müller <onkelhe...@mscologne.de>
Date: Wed, 17 Oct 2012 23:45:35 +0200
Local: Wed, Oct 17 2012 5:45 pm
Subject: Solaris11: Problem with creating 2nd repository
Hello @all,

I have 3 servers:

- Repository server ( repo-server )
- Production server
- Development server

What I want to do is to create two repositories on the repo-server,
one for our production server and one for our development server.

I've tried to install a second repository like here
http://docs.oracle.com/cd/E23824_01/html/E21803/glrai.html#scrolltoc
but with no success.

The repo directories are

- /Repo/repo ( production )
- /DEVpool/repo ( development )

I executed the following commands to create the second(!) repository
(the first for production works like a charm):

   215  pkgrepo set -s /DEVpool/repo publisher/prefix=dev

   217  svccfg -s pkg/server add dev
   218  svccfg -s pkg/server:dev addpg pkg application
   219  svccfg -s pkg/server:dev setprop pkg/port=81
   220  svccfg -s pkg/server:dev setprop pkg/inst_root=/DEVpool/repo
   222  svccfg -s pkg/server:dev addpg general framework
   223  svccfg -s pkg/server:dev addpropvalue general/complete astring: dev
   224  svccfg -s pkg/server:dev addpropvalue general/enabled boolean: true

   225  svcadm refresh application/pkg/server:dev

   229  pkgrepo rebuild -s /DEVpool/repo
   230  pkgrepo -s /DEVpool/repo refresh

   240  pkg set-publisher -g http://192.168.2.100:81/ dev

root@repo-server:/# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                               origin   online
http://192.168.2.100/
dev                                   origin   online
http://192.168.2.100:81/

With firefox on my repo-server I can access http://192.168.2.100:81/ but
no packages are shown.
On http://192.168.2.100/ everything is ok.

Here is another output which indicates that in "dev" are no packages:

root@repo-server:~# pkgrepo info -s http://192.168.2.100:81
PUBLISHER PACKAGES STATUS           UPDATED
solaris   4292     online           2012-10-17T10:16:06.384247Z
dev       0        online           2012-10-17T10:20:14.969619Z

I queried both repo directories with

root@repo-server:# pkg contents -s /REPO/repo/ > repo.log
root@repo-server:# pkg contents -s /DEVpool/repo/ > devpool.log
root@repo-server:# ls -l *.log
-rwxrwxrwx   1 root     vboxsf   6501058 Oct 17 13:50 devpool.log
-rwxrwxrwx   1 root     vboxsf   6501058 Oct 17 13:49 repo.log

and both log files contain the same packages/files.

A quick test to retreive package information from both repositories:

root@repo-server:# pkg list -g /REPO/repo amp
NAME (PUBLISHER)                                  VERSION
      IFO
amp                                               0.5.11-0.133
      --r
group/feature/amp
0.5.11-0.175.0.0.0.2.2576  ---
web/amp                                           0.5.11-0.174.0.0.0.0.0
     --r
root@repo-server:# pkg list -g /DEVpool/repo/ amp
NAME (PUBLISHER)                                  VERSION
      IFO
amp                                               0.5.11-0.133
      --r
group/feature/amp
0.5.11-0.175.0.0.0.2.2576  ---
web/amp                                           0.5.11-0.174.0.0.0.0.0
     --r

So my question is why I can't see any packages when I access
http://192.168.2.100:81/ via Browser or "pkgrepo info"??

Any hints?

Regards,
Heinz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Gabriel  
View profile  
 More options Oct 18 2012, 4:57 pm
Newsgroups: comp.unix.solaris
From: and...@cucumber.demon.co.uk (Andrew Gabriel)
Date: Thu, 18 Oct 2012 20:57:12 +0000 (UTC)
Local: Thurs, Oct 18 2012 4:57 pm
Subject: Re: Solaris11: Problem with creating 2nd repository
In article <k5n8u4$on...@newsreader4.netcologne.de>,
        =?ISO-8859-15?Q?Heinz_M=FCller?= <onkelhe...@mscologne.de> writes:

> So my question is why I can't see any packages when I access
> http://192.168.2.100:81/ via Browser or "pkgrepo info"??

Try
svcadm refresh svc:pkg/server:dev
or
svcadm restart svc:pkg/server:dev

I have found I had to do this after updating a repo, before the
a package was visible. I don't know if this is expected behaviour.

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Heinz Müller  
View profile  
 More options Oct 20 2012, 4:00 am
Newsgroups: comp.unix.solaris
From: Heinz Müller <onkelhe...@mscologne.de>
Date: Sat, 20 Oct 2012 10:00:16 +0200
Local: Sat, Oct 20 2012 4:00 am
Subject: Re: Solaris11: Problem with creating 2nd repository
Am 18.10.2012 22:57, schrieb Andrew Gabriel:
> In article <k5n8u4$on...@newsreader4.netcologne.de>,
>    =?ISO-8859-15?Q?Heinz_M=FCller?= <onkelhe...@mscologne.de> writes:

>> So my question is why I can't see any packages when I access
>> http://192.168.2.100:81/ via Browser or "pkgrepo info"??

> Try
> svcadm refresh svc:pkg/server:dev
> or
> svcadm restart svc:pkg/server:dev

> I have found I had to do this after updating a repo, before the
> a package was visible. I don't know if this is expected behaviour.

No, that didn't help.

I think I've got a problem to understand the documentation.
I'll read the docu again an try it once more.

In the end when everything is put together I want so see that
( I changed the "solaris" repo name to "prod" ):

On jump-server1 both repos:

root@jump-server1:/# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
prod                               origin   online   http://192.168.2.100/
dev                                   origin   online
http://192.168.2.100:81/

root@jump-server1:~# pkgrepo info -s http://192.168.2.100/
PUBLISHER PACKAGES STATUS           UPDATED
prod   4292     online           2012-10-17T10:16:06.384247Z

root@jump-server1:~# pkgrepo info -s http://192.168.2.100:81
PUBLISHER PACKAGES STATUS           UPDATED
dev    4292        online           2012-10-17T10:20:14.969619Z

On prod-server only the prod repo:

root@prod-server:/# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
prod                               origin   online   http://192.168.2.100/

root@prod-server:~# pkgrepo info -s http://192.168.2.100/
PUBLISHER PACKAGES STATUS           UPDATED
prod   4292     online           2012-10-17T10:16:06.384247Z

On dev-server only the dev repo:

root@dev-server:/# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
dev                                   origin   online
http://192.168.2.100:81/

root@dev-server:~# pkgrepo info -s http://192.168.2.100:81/
PUBLISHER PACKAGES STATUS           UPDATED
dev       4292        online           2012-10-17T10:20:14.969619Z

Regards,
Heinz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Heinz Müller  
View profile  
 More options Oct 20 2012, 4:06 am
Newsgroups: comp.unix.solaris
From: Heinz Müller <onkelhe...@mscologne.de>
Date: Sat, 20 Oct 2012 10:06:29 +0200
Local: Sat, Oct 20 2012 4:06 am
Subject: Re: Solaris11: Problem with creating 2nd repository
Am 20.10.2012 10:00, schrieb Heinz M ller:
> Am 18.10.2012 22:57, schrieb Andrew Gabriel:
>> In article <k5n8u4$on...@newsreader4.netcologne.de>,
>>     =?ISO-8859-15?Q?Heinz_M=FCller?= <onkelhe...@mscologne.de> writes:

>>> So my question is why I can't see any packages when I access
>>> http://192.168.2.100:81/ via Browser or "pkgrepo info"??

>> Try
>> svcadm refresh svc:pkg/server:dev
>> or
>> svcadm restart svc:pkg/server:dev

>> I have found I had to do this after updating a repo, before the
>> a package was visible. I don't know if this is expected behaviour.

Sorry, there was a mismatch in the name of the servers( jump-server1
should be repo-server).

So, here the corrected version:

In the end when everything is put together I want so see that
( I changed the "solaris" repo name to "prod" ):

On repo-server ( 192.168.2.100 ) both repos:

root@repo-server:/# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
prod                               origin   online   http://192.168.2.100/
dev                                   origin   online
http://192.168.2.100:81/

root@repo-server:~# pkgrepo info -s http://192.168.2.100/
PUBLISHER PACKAGES STATUS           UPDATED
prod   4292     online           2012-10-17T10:16:06.384247Z

root@repo-server:~# pkgrepo info -s http://192.168.2.100:81
PUBLISHER PACKAGES STATUS           UPDATED
dev    4292        online           2012-10-17T10:20:14.969619Z

On prod-server only the prod repo:

root@prod-server:/# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
prod                               origin   online   http://192.168.2.100/

root@prod-server:~# pkgrepo info -s http://192.168.2.100/
PUBLISHER PACKAGES STATUS           UPDATED
prod   4292     online           2012-10-17T10:16:06.384247Z

On dev-server only the dev repo:

root@dev-server:/# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
dev                                   origin   online
http://192.168.2.100:81/

root@dev-server:~# pkgrepo info -s http://192.168.2.100:81/
PUBLISHER PACKAGES STATUS           UPDATED
dev       4292        online           2012-10-17T10:20:14.969619Z

Regards,
Heinz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »