Hi Gary,
I ran into this issue recently as well. I'm no pkg guru yet, but there
is an SMF setting for defining the location of the cfg_cache. In this
case, an empty file with the following in it would be enough to get it
started:
[publisher]
prefix = opensolaris.org
Where "opensolaris.org" is whatever prefix is desired (or needed) for
your purposes.
I agree this is not necessarily intuitive. pkg-discuss would be a good
place to send your suggestions to.
- Keith
Gary Mills wrote:
> After an upgrade from OS 0906 to snv_127, I attempted to
> start pkg/server, after setting `pkg/port=10000'. It went
> into maintenance mode, with this information in the log:
>
> [ Nov 15 08:06:37 Executing start method ("/lib/svc/method/svc-pkg-depot
> start"). ]
> Dropping net_privaddr privilege.
> ppriv -s A=basic,-file_link_any,-proc_info,-proc_session,net_privaddr -e
> /usr/lib/pkg.depotd -d /var/pkg/repo -p 10000 -s 10 -t 60
> --content-root=/usr/share/lib/pkg --log-access=none --log-errors=stderr
> --ssl-cert-file=none --ssl-dialog=smf:svc:/application/pkg/server:default
> --ssl-key-file=none
> pkg.depotd: repository configuration error: publisher.prefix is required.
> Please use the --set-property option to provide a value, or update the
> cfg_cache file for the repository to correct this.
> [ Nov 15 08:06:38 Stopping because all processes in service exited. ]
> [ Nov 15 08:06:38 Restarting too quickly, changing state to maintenance. ]
>
> There's no SMF property available to set the `--set-property' option.
> The cfg_cache file hadn't been created yet by pkg/server startup.
> My workaround was to add that option to the method script.
>
> I don't suppose that it would be worthwhile to use SMF properties to
> set all of the initial repository options. As it stands now, none of them
> can be set through SMF properties. Either the required ones need to be
> set through SMF, or a model cfg_cache should be made available so
> it can be copied and edited.
>