Service Is Not Available
Error message: http protocol error: code: 503 reason: Service Unavailable
Use the pkg publisher
command to find the location of the package repository that you are trying to use, and examine SMF services on that system. Use the following command to identify any package repository SMF service instances that are enabled but not running and any instances that are preventing another enabled instance from running:
$ svcs -xv pkg/server
svc:/application/pkg/server: default (image packaging repository)
State: online since July 25, 2013 07:53:50 AM PDT
See: /var/svc/log/application-pkg-server:default.log
Impact: None.
If any service is reporting a problem, check the log file listed in the svcs
output to determine the specific problem.
Make sure that the inst_root
property, the port
property, and other properties are set correctly.
$ svcprop -p pkg pkg/server:default $ svcprop -p pkg/inst_root -p pkg/port pkg/server:default /var/share/pkgrepos/solaris 80
If necessary, use the svccfg
command to reset property values, as shown in the following example:
$ svccfg -s pkg/server:default setprop pkg/port=1008
Use the svcadm
command to clear, refresh, restart, and enable the service instance as necessary.