Hi Sasa.

See http://defect.opensolaris.org/bz/show_bug.cgi?id=10010 .

Try setting the timeout value high:

export PKG_CLIENT_TIMEOUT=900

-- Alan

Alexander Vlasov wrote:
Hello,

Recently we started to experience problems with our IPS testing tool, scruffy. Namely, any attempt to download large file results in error message like that:

% ./scruffy -c /var/tmp/scruffy.cache deps SUNWsongbird
Traceback (most recent call last):
  File "/export/home/zulu/testsuites/scruffy/scruffy", line 23, in ?
    helpers.factory.factory(action)(options).run(args)
File "/export/home/zulu/testsuites/scruffy/tests/deps.py", line 22, in run
    filedep_set = self.file_deps(pkgname)
File "/export/home/zulu/testsuites/scruffy/tests/deps.py", line 84, in file_deps
    pkg.misc.gunzip_from_stream(opener(), fd)
File "/usr/lib/python2.4/vendor-packages/pkg/misc.py", line 310, in gunzip_from_stream
    buf = gz.read(64 * 1024)
File "/usr/lib/python2.4/vendor-packages/pkg/client/transport/fileobj.py", line 81, in read
    while self.__fill_buffer():
File "/usr/lib/python2.4/vendor-packages/pkg/client/transport/fileobj.py", line 238, in __fill_buffer
    raise s[0]
pkg.client.transport.exception.TransportFrameworkError: Framework error: code: 28 reason: Operation timed out after 30000 milliseconds with 3079684 out of 13350703 bytes received

URL: 'http://pkg.opensolaris.org/dev/file/0/caa1f4dc9b53964c9bb5301e52c61667778249c3'.

the code (scruffy part) looks like

for action in self.actions(pkgname):
  if action.name == "file":
    opener = action.get_remote_opener(self.image(), package)
    if action.attrlist("elfarch"):
      handle, tmppath = tempfile.mkstemp()
      fd = os.fdopen(handle, "w")
      pkg.misc.gunzip_from_stream(opener(), fd)
      fd.close()

(comments removed)

The problem is reliably reproducible with every large file being processed.
Repository being used is http://ipkg.sfbay/dev/

The problem being observed only from Prague, Czech Republic, when ipkg.sfbay mirror is is use; the problem is not observed on US-based machines.

Is this a problem with incorrect way of downloading files in scruffy code or is it more generic problem in transport module?

Regards,
Sasa
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to