[indiana-discuss] pkg install fails with "timed out"
Aubrey Li
aubrey at blastwave.org
Wed Jun 4 07:50:54 PDT 2008
On Tue, Jun 3, 2008 at 8:22 PM, Seema Alevoor <Seema.Alevoor at sun.com> wrote:
> Hi,
>
> I have installed OpenSolaris 2008.05. I'm trying to get SUNWapch22 package using
> 'pfexec pkg install SUNWapch22' but every time it fails midway (it is very erratic - sometimes fails after getting 180 files,
> sometimes after 300 files) with the following msg.
> I tried installing a smaller package (SUNWnetcat) and it goes through fine.
>
> -------------------
> $ pfexec pkg install SUNWapch22
> DOWNLOAD PKGS FILES XFER (MB)
> SUNWapch22 0/1 80/876 1.47/12.29pkg: An unexpected error happened during installation: timed out
> The Boot Environment opensolaris failed to be updated. A snapshot was taken before the failed attempt and is mounted here /tmp/tmpF-FIhv.
> Use 'beadm activate opensolaris_static:-:2008-06-03-11:39:05 and reboot if you wish to boot to this BE.
>
> Traceback (most recent call last):
> File "/usr/bin/pkg", line 1440, in ?
> ret = main_func()
> File "/usr/bin/pkg", line 1406, in main_func
> return install(img, pargs)
> File "/usr/bin/pkg", line 469, in install
> img.imageplan.execute()
> File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 394, in execute
> p.preexecute()
> File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 242, in preexecute
> flist.get_files()
> File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 147, in get_files
> for info in tar_stream:
> File "/usr/lib/python2.4/tarfile.py", line 1856, in next
> tarinfo = self.tarfile.next()
> File "/usr/lib/python2.4/tarfile.py", line 1590, in next
> buf = self.fileobj.read(BLOCKSIZE)
> File "/usr/lib/python2.4/tarfile.py", line 437, in read
> buf = self._read(size)
> File "/usr/lib/python2.4/tarfile.py", line 445, in _read
> return self.__read(size)
> File "/usr/lib/python2.4/tarfile.py", line 467, in __read
> buf = self.fileobj.read(self.bufsize)
> File "/usr/lib/python2.4/socket.py", line 295, in read
> data = self._sock.recv(recv_size)
> File "/usr/lib/python2.4/httplib.py", line 480, in read
> s = self.fp.read(amt)
> File "/usr/lib/python2.4/socket.py", line 295, in read
> data = self._sock.recv(recv_size)
> timeout: timed out
> -------------------
>
> How do I resolve this issue ?
>
I believe this is a very good question. Actually I encountered this
issue many times.
The only way to resolve it is try it again and again till install completed.
IPS package should offer another way to download, just like SVR4 package, we can
download by http/ftp/etc..., and install it from localhost.
Or pkg install should support downloading from the point last time failed
Any thoughts?
Thanks,
-Aubrey
More information about the indiana-discuss
mailing list