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:

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

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:

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:

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.

in the effected zone do

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

 svccfg -s application/pkg/server listprop |grep pkg/port

The output should appear like this:

pkg/port                                                      count       80
1 Like

in the affected zone, it was 80

$  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 :confused:

firewall? IP forwarding? Proxy server?

1 Like

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) :confused:

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