Pkg problem, one zone trying pkg.Oracle.com on port 1008


 
Thread Tools Search this Thread
Operating Systems Solaris Pkg problem, one zone trying pkg.Oracle.com on port 1008
# 1  
Old 08-28-2013
Question Pkg problem, one zone trying pkg.Oracle.com on port 1008

Hi Solaris Experts,

The pkg utility on one of my non-global zones has stopped working, it's trying to connect to port 1008 at pkg.oracle.com

I was using pkg successfully from this zone, but now it's showing this error:
Code:
lzone1 $ pkg search xterm
pkg: Some repositories failed to respond appropriately:
solaris:
Unable to contact valid package repository
Encountered the following error(s):
Unable to contact any configured publishers.
This is likely a network configuration problem.
1: Framework error: code: 7 reason: couldn't connect to host
URL: 'http://pkg.oracle.com/solaris/release'
2: Framework error: code: 7 reason: Failed connect to pkg.oracle.com:1008; Connection refused
URL: 'http://pkg.oracle.com/solaris/release' (happened 3 times)

I've been reconfiguring and restarting apache, sendmail etc. on this zone, but nothing (that I can think of) to do with the pkg tool.

Although the diagnostic says network error, I can successfully do
Code:
wget http://pkg.oracle.com/solaris/release

.
I have another zone under this same ldom, and the pkg search works fine there.

The outputs of svcs and pkg publisher from both the zones are identical:
Code:
lzone1 $ svcs \*pkg\*
STATE          STIME    FMRI
disabled       Aug_18   svc:/application/pkg/server:default
disabled       Aug_18   svc:/application/pkg/dynamic-mirror:default
online         Aug_18   svc:/system/pkgserv:default
online         Aug_18   svc:/application/pkg/zones-proxy-client:default

lzone1 $ pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris        (syspub)     origin   online T <system-repository>

The output from the global zone is:
Code:
global $ svcs \*pkg\*
STATE          STIME    FMRI
disabled       Aug_12   svc:/application/pkg/server:default
disabled       Aug_12   svc:/application/pkg/dynamic-mirror:default
online         Aug_12   svc:/system/pkgserv:default
online         Aug_12   svc:/application/pkg/system-repository:default
online         Aug_12   svc:/application/pkg/zones-proxyd:default

global $ pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://pkg.oracle.com/solaris/release/

What did I do wrong, and how to correct it?

I'm using Solaris 11.1 on T4.

Thanks for your help.
# 2  
Old 08-29-2013
in the effected zone do
Code:
svccfg -s application/pkg/server setprop pkg/port=correct port number

that will correct it.

to verify the current setting on a working zone do
Code:
 svccfg -s application/pkg/server listprop |grep pkg/port

The output should appear like this:
Code:
pkg/port                                                      count       80

This User Gave Thanks to os2mac For This Post:
# 3  
Old 08-30-2013
in the affected zone, it was 80
Code:
$  svccfg -s application/pkg/server listprop |grep pkg/port
pkg/port                                                      count       80

Even though it showed 80, I again ran the setprop, verified using listprop, but it is still not working, still is trying to get to port 1008 Smilie
# 4  
Old 08-30-2013
firewall? IP forwarding? Proxy server?
This User Gave Thanks to os2mac For This Post:
# 5  
Old 08-30-2013
I didn't change anything for firewall, ip forwarding or proxy in this or any other zone, though I might have done something inadvertently

I can successfully do wget on pkg.oracle.com, pkg.oracle.com/solaris/release as well as on all sites I tried (eg wikipedia, cnn etc) Smilie

---------- Post updated at 04:59 PM ---------- Previous update was at 04:50 PM ----------

[resolved]

stopped all services that came up with svcs \*pkg\* and restarted them, and that appears to have cleared whatever was causing the port issue,
now pkg search is working as expected

thanks for your help
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to remove pkg from zone in newly created boot environment?

fyi, I already have SR opened with Oracle. We are looking to upgrade from S11.3 to S11.4 with the latest SRU. Create new BE; success Mount new BE; success pkg -R /mnt update the updating of the global went fine until it touched local zone. pkg: update failed (linked image... (2 Replies)
Discussion started by: samthewildone
2 Replies

2. Solaris

Pkg update 11.2

Got a repo server with a combined 11.2/11.3 repository. I want to update latest security patches on server A (which is 11.2). I dont want to upgrade to 11.3 (app reasons). If I do pkg update all - is there any danger this will happen? If so, how to proceed? (2 Replies)
Discussion started by: psychocandy
2 Replies

3. Solaris

Global zone has an older version of package: pkg://Solaris/system/library

I try to install php-56 in a zone, but I have the following problem: pkg install php-56 Creating Plan (Running solver): \ pkg install: No solution was found to satisfy constraints maintained incorporations: None Creation Plan: dependency error (s) in proposed packages: Not... (0 Replies)
Discussion started by: ymk369
0 Replies

4. Solaris

# pkg publisher gives bash: pkg: command not found

This is the operating system im using Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC I need to install some packages by setting local repository While i run the below command # pkg publisher command returns bash: pkg: command not found while looking for /usr/bin/pkg i get bash:... (2 Replies)
Discussion started by: babinlonston
2 Replies

5. Debian

Program compile problem (glib pkg-config)

I need to compile a program which uses glib-2.0. I installed the package libglib2.0-0 but the configure script can't find it because the libglib package doesn't provide a .pc file which pkg-config looks for. How can I resolve this? Debian 6.0 (SPARC) (3 Replies)
Discussion started by: snorkack59
3 Replies

6. Solaris

How extract SUNWexplo.7.1.pkg & SUNWexplu.7.1.pkg from install_stb.sh?

Hi all, Could please guideas how to extract SUNWexplo.7.2.pkg & SUNWexplu.7.2.pkg from install_stb.sh. I need to upgrade my Sun Explorer to 7.2 version from 7.1 . This what written in read me file about its installation: The Lightweight Availability Collection Tool (LWACT) is no... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

7. Solaris

137481-02 pkg

can anyone download this solaris pkg and email to me, it wont let me download it anymore from sunsolve. 137481-02 (1 Reply)
Discussion started by: dan7225
1 Replies

8. Solaris

pkg-get errors

To day i installed boltpkg, hiow ever when i run either a pkg-get install or a pkg-get -u pkg-get re turns the following errors. pkg-get -u WARNING: no catalog file for site ftp.sunfreeware.com Updating catalog file first Getting catalog... ld.so.1: wget: fatal: libssl.so.0.9.8: open... (3 Replies)
Discussion started by: FloridaBSD
3 Replies

9. Shell Programming and Scripting

Unix call to Oracle PL/SQL pkg/store.proc

HI, I'm trying to get this right, please can you help. In my unix korn shell script, I call an oracle stored proc within a package and I specify 3 parameters, 2 of which are IN OUT parameters (i.e. I expect the stored proc to change them and return them back to me). Does the unix code... (7 Replies)
Discussion started by: csong2
7 Replies

10. Solaris

pkgadd pkg to an new directory

hi guys, I am wondering instead installing to the default directory, how can I install a package using pkgadd command to a specified directory? I am using solaris 9, thanks (1 Reply)
Discussion started by: fedora
1 Replies
Login or Register to Ask a Question