Cannot proxy a file repo, complains its not version 4, but it is!


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot proxy a file repo, complains its not version 4, but it is!
# 1  
Old 06-13-2019
Cannot proxy a file repo, complains its not version 4, but it is!

I have a Solaris 11.4 global zone (at the most recent SRU) where I am trying to install a Solaris 11 zone. To do this I need to have the system-repository and the zone proxy service started.

I created a full (GA 11.4 with newest SRU rolled in) repo using "pkgrepo create" and the install-repo.ksh script to an NFS file system called /share/114repo

I then published it locally and the repo comes up and is valid. I can use it to update the global zone.

When I try to start the system-repository service (which the zone-proxyd service depends on) it goes into maintenance mode.

This is the output of the /var/svc/log/application-pkg-system-repository:default.log

Code:
[ 2019 Jun 13 12:48:40 Enabled. ] 
 [ 2019 Jun 13 12:48:40 Executing start method ("/lib/svc/method/svc-pkg-sysrepo start"). ] 
  pkg.sysrepo: unable to get publisher information: file repository  file:///share/repo cannot be proxied. Only file repositories of version 4  or later are supported. 
 pkg.sysrepo: failed to create Apache configuration 
 [ 2019 Jun 13 12:48:41 Method "start" exited with status 95. ]

It seems to be complaining that it can only proxy repositorys of version 4 or later.

I ran "pkgrepo get -s" on the repo I created and get the following:

Code:
SECTION PROPERTY VALUE 
 publisher prefix solaris 
 repository check-certificate-revocation False 
 repository description This\ repository\ serves\ a\ copy\ of\ the\ Oracle\ Solaris\ 11.4\ Build\ 15\ Package\ Repository. 
 repository name Oracle\ Solaris\ 11.4\ Build\ 15\ Package\ Repository 
 repository signature-required-names () 
 repository trust-anchor-directory /etc/certs/CA/ 
 repository version 4

It says its on version 4. So not sure whats going on here.

It breaks the following as you can see, so I cannot get zone proxy going.

Code:
root@sptcs654:/var/svc/log# svcs -l svc:/application/pkg/zones-proxyd:default 
 fmri svc:/application/pkg/zones-proxyd:default 
 name Zones Proxy Daemon 
 enabled true 
 state offline 
 next_state none 
 state_time June 13, 2019 at 12:48:06 PM EDT 
 logfile /var/svc/log/application-pkg-zones-proxyd:default.log 
 restarter svc:/system/svc/restarter:default 
 contract_id  
 manifest /lib/svc/manifest/application/pkg/zoneproxyd.xml 
 dependency require_any/none svc:/system/filesystem/minimal (online) 
 dependency require_any/error svc:/milestone/network (online) 
 dependency require_all/none svc:/application/pkg/system-repository (maintenance)

Code:
root@sptcs654:/var/svc/log# svcs -l svc:/application/pkg/system-repository 
 fmri svc:/application/pkg/system-repository:default 
 name IPS System Repository 
 enabled true 
 state maintenance 
 next_state none 
 state_time June 13, 2019 at 12:48:41 PM EDT 
 logfile /var/svc/log/application-pkg-system-repository:default.log 
 restarter svc:/system/svc/restarter:default 
 contract_id  
 manifest /lib/svc/manifest/application/pkg/pkg-system-repository.xml 
 dependency optional_all/error svc:/system/filesystem/autofs:default (online) 
 dependency require_all/none svc:/system/filesystem/local:default (online) 
 dependency require_all/error svc:/milestone/network:default (online)

--- Post updated at 06:01 PM ---

Decided to bring down the hammer and did a



Code:
chmod -R 777 *


on the repo, then everything worked.

Going to roll that back a bit since its not secure. Going to try 770 and then 644 on the catalog files.
# 2  
Old 06-14-2019
Thanks for the update.

I will mark this issues "solved".
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Configuring EPEL repo and setting it as default repo.

I am using RHEL 6, but with no RHN subscription. I tried installing the EPEL repo, it is enabled under yum repolist but when I try a sample search such as yum search nginx , there's a string of errno 14 PYCURL error 6 . When I tried yum list installed, it didn't work because it defaults to the... (0 Replies)
Discussion started by: Hijanoqu
0 Replies

2. Shell Programming and Scripting

Copy a file from directroy/ prior version to the directory/ new version

How to copy a file from directroy/ prior version to the directory/ new version automatically. (4 Replies)
Discussion started by: roy1912
4 Replies

3. Solaris

When installing the Oracle it complains that must be configured to display at least .

Good Evening, When I try to install the oracle in Solaris 10, I get the following error: Checking Temp space: must be greater than 250 MB. Actual 27740 MB Passed Checking swap space: must be greater than 500 MB. Actual 28555 MB Passed Checking monitor: must be configured to... (12 Replies)
Discussion started by: aa_monster
12 Replies

4. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

5. Linux

Does any hunk knows how to block ultrasurf in squid proxy red hat version 4

Does any one knows how to block ultrasurf in squid proxy ?:) I have one shell script i.e blocking all ultrsurf version except ultrasurf 8.9 if any one knows pls share the documents with me. (1 Reply)
Discussion started by: vishwanathhcl
1 Replies

6. Cybersecurity

Does any hunk knows how to block ultrasurf in squid proxy red hat version 4

Does any one knows how to block ultrasurf in squid proxy ? I have one shell script i.e blocking all ultrsurf version except ultrasurf 8.9 i f any one knows pls share the documents with me. Please read the rules: No double posting! Thank you - site moderator (0 Replies)
Discussion started by: vishwanathhcl
0 Replies

7. UNIX for Advanced & Expert Users

Tar complains.......

That there is 'no such file or directory'?!?!?!?!? I am using tar to save at directory level, yet the error I am getting refers to a file within this directory: tar: /apps/hiport/spool/ctree/L0000821.FCS: No such file or directory (the bit in bold is the directory that was in the tar -cf... (3 Replies)
Discussion started by: tugger
3 Replies

8. Solaris

Solaris 9 Web Start Upgrade using -nowin - still complains about X server

Hi there. I'm trying to upgrade a Sun Blade 100 to Solaris 9. I downloaded and burned the install, disc 1, disc 2 and tools CDs from Sun. I turned off auto-boot, put in the CD and enter the following: # boot cdrom -nowin The cdrom boot starts, and I get prompted to choose a language... (2 Replies)
Discussion started by: calenti
2 Replies
Login or Register to Ask a Question