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.