Hi, Experts,
I am doing our local pkg server, and the pkg.depotd(1m) advise
me to run "--refresh-index", and it seems like it tries
to update index directory on IPS repo. But when I run the
command:
# pkg.depotd -d <my/repo> --refresh-index.
I found the process will exit immediately after I run it, but
it tries to fork millions of times of "--refresh-index". All
the commands(new processes) exit immediately.
My question are:
- What's usage of "--refresh-index", I could not find it in manual.
- Why does the above command fork so much times on itself? Maybe one
running time would be enough. If the command fails, it should
print detailed information other than repeatedly fork itself.
What's the output of "pkg version"?
I suspect you have encountered a bug that was fixed in a more recent
version.
# pkg version
475bc7b954a3
One more question,
Right now, the "pkg.depotd -d <my/ips/repo> --refresh-index could create
a directory "TMP"
on "index" directory, and create some files as following.
# cd /my/repo/index/TMP
# ls
__at_depend __at_set
__st_legacy_pkg sort.0 sort.7
__at_directory __st_None
__st_license sort.1 sort.8
__at_driver __st_alias
__st_path sort.10 sort.9
__at_file __st_basename
__st_srcpkgs sort.2 token_byte_offset.v1
__at_hardlink __st_content
__st_variant.arch sort.3
__at_legacy __st_description
__st_variant.zone sort.4
__at_license __st_driver_name
main_dict.ascii.v2 sort.5
__at_link __st_info.classification
pkg sort.6
Then I tried to restart IPS server manual, it shows errors.
# usr/lib/pkg.depotd -d /my/repo -p 10000
[26/Mar/2009:14:25:09] ENGINE Listening for SIGHUP.
[26/Mar/2009:14:25:09] ENGINE Listening for SIGTERM.
[26/Mar/2009:14:25:09] ENGINE Listening for SIGUSR1.
[26/Mar/2009:14:25:09] ENGINE Bus STARTING
[26/Mar/2009:14:25:09] ENGINE Started monitor thread '_TimeoutMonitor'.
[26/Mar/2009:14:25:09] ENGINE Serving on 0.0.0.0:10000
[26/Mar/2009:14:25:09] ENGINE Bus STARTED
[26/Mar/2009:14:25:12] INDEX Updating search indices
[26/Mar/2009:14:25:14] INDEX Index corrupted, remove all files and
rebuild from scratch by clearing out /ips/repo/repo/index and
restarting the depot.
[26/Mar/2009:14:25:14] INDEX ERROR building search database, exit code: 1
Right now, the IPS server could start, but tt hints the "Index
corrupted", is that an issue or obstacle for "pkg install/image-update"?
If yes, how can I fix it?
Thanks
Jason
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss