Saturday, December 13, 2008

OpenSolaris :: TIME OUT

  • doing pkg refresh always give me "time out" message

root@opensolaris:~# pkg install sunstudioexpress
Creating Plan -
pkg: Maximum (4) network retries exceeded during download. Details follow:
Transfer from 'http://pkg.opensolaris.org/release' timed out. (happened 4 times)

  • Below workaround worked for me (nevermind about root user , default is to use pfexec as normal user). There are 2 environment variable which are PKG_CLIENT_TIMEOUT and PKG_TIMEOUT_MAX

root@opensolaris:~# bash -x pkg-install.sh
+ export PKG_CLIENT_TIMEOUT=220
+ PKG_CLIENT_TIMEOUT=220
+ export PKG_TIMEOUT_MAX=100
+ PKG_TIMEOUT_MAX=100
+ pkg install SUNWjruby
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 11655/11655 9.45/9.45

PHASE ACTIONS
Install Phase 13525/13525
PHASE ITEMS
Reading Existing Index 9/9
Indexing Packages 1/1

No comments: