>
> I've updated the instructions on the wiki. Let me know if you still have
> problems.
>
> -Albert
>    
I found some other tutorials (which also advice to create a separate ZFS 
pool for the repository,  and did as follows:

pfexec svcadm disable pkg/server
pfexec zfs create -o compression=on rpool/ips
pfexec mkdir /rpool/ips/repo
pfexec svccfg -s application/pkg/server setprop 
pkg/inst_root=/rpool/ips/repo
pfexec svccfg -s application/pkg/server setprop pkg/port=10000
pfexec svcadm refresh pkg/server
pfexec svcadm enable pkg/server
pfexec svcadm restart pkg/server
pfexec pkg set-publisher -O http://localhost:10001 local

However it still fails with the same error, saying it can't connect to 
the server. In tutorials, some real repositories are copied into the 
local repo first (for example for the sake of mirroring: 
http://blogs.sun.com/observatory/entry/local_repository_mirror ). It 
uses cfg_file file with some settings like 'origin' etc. How is it 
created, or it should be added manually first?

In my case /rpool/ips/repo contains only 'file' directory with nothing 
in it, and this is what I get for server properties:

$ svcprop pkg/server
general/enabled boolean true
general/entity_stability astring Unstable
pkg/cfg_file astring ""
pkg/content_root astring /usr/share/lib/pkg
pkg/debug astring ""
pkg/log_access astring none
pkg/log_errors astring stderr
pkg/mirror boolean false
pkg/proxy_base astring ""
pkg/readonly boolean false
pkg/socket_timeout count 60
pkg/ssl_cert_file astring none
pkg/ssl_dialog astring smf
pkg/ssl_key_file astring none
pkg/threads count 10
pkg/writable_root astring ""
pkg/sort_file_max_size astring ""
pkg/inst_root astring /rpool/ips/repo
pkg/port count 10000
pkg_secure/read_authorization astring solaris.smf.read.pkg-server
pkg_secure/ssl_key_passphrase astring ""
fs/entities fmri svc:/system/filesystem/local
fs/grouping astring require_all
fs/restart_on astring none
fs/type astring service
autofs/entities fmri svc:/system/filesystem/autofs
autofs/grouping astring optional_all
autofs/restart_on astring none
autofs/type astring service
ntp/entities fmri svc:/network/ntp
ntp/grouping astring optional_all
ntp/restart_on astring none
ntp/type astring service
network/entities fmri svc:/milestone/network
network/grouping astring require_all
network/restart_on astring none
network/type astring service
startd/duration astring child
manifestfiles/var_svc_manifest_application_pkg-server_xml astring 
/var/svc/manifest/application/pkg-server.xml
manifestfiles/var_svc_manifest_application_pkg_server_xml astring 
/var/svc/manifest/application/pkg-server.xml
start/exec astring /lib/svc/method/svc-pkg-depot\ %m
start/timeout_seconds count 0
start/type astring method
stop/exec astring /lib/svc/method/svc-pkg-depot\ %m\ %{restarter/contract}
stop/timeout_seconds count 30
stop/type astring method
tm_common_name/C ustring image\ packaging\ repository
restarter/start_pid count 29660
restarter/start_method_timestamp time 1259096152.980236000
restarter/start_method_waitstatus integer 0
restarter/contract count
restarter/logfile astring /var/svc/log/application-pkg-server:default.log
restarter/auxiliary_state astring restarting_too_quickly
restarter/next_state astring none
restarter/state astring maintenance
restarter/state_timestamp time 1259096153.289574000
restarter_actions/restart integer
restarter_actions/refresh integer
restarter_actions/auxiliary_tty boolean true
restarter_actions/auxiliary_fmri astring 
svc:/application/graphical-login/gdm:default

Thanks,

Hillel.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20091124/4ed769e5/attachment.html>

Reply via email to