Skip to content

When downloading in a detached screen session the --quiet option must be used. #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
Hi,

Thanks for the helpful utility! This isn't really a bug, but I can't edit the 
wiki so I thought I'd mention it here.

What steps will reproduce the problem?
1. Start a new screen session:
  screen
2. Start downloading from Gauge Connection with qcdutils:
  ./qcdutils.py download_link
3. Detach the screen session:
  [Ctrl]+a d
4. Re-attach to the screen session:
  screen -R

What is the expected output? What do you see instead?
I expected the download to continue. Instead, qcdutils crashes with the 
following output:

punnett@copper:/scratch$ ./punnett/GC/qcdutils_get.py 
http://qcd.nersc.gov/nersc/api/files.json/2b0d4dc0-f0f9-4686-b49b-6149b59482a8/c
onfigs/MILC/2064f21b679m020m050/u_MILC_2064f21b679m020m050.nnnnn


 #######   ######  ########     ##     ## ######## #### ##        ######
##     ## ##    ## ##     ##    ##     ##    ##     ##  ##       ##    ##
##     ## ##       ##     ##    ##     ##    ##     ##  ##       ##
##     ## ##       ##     ##    ##     ##    ##     ##  ##        ######
##  ## ## ##       ##     ##    ##     ##    ##     ##  ##             ##
##    ##  ##    ## ##     ##    ##     ##    ##     ##  ##       ##    ##
 ##### ##  ######  ########      #######     ##    #### ########  ######
Created by Massimo Di Pierro - License GPL2 - all-to-all convertion utility
For the latest source and documentation: http://code.google.com/p/qcdutils/

http://qcd.nersc.gov/nersc/api/files.json/2b0d4dc0-f0f9-4686-b49b-6149b59482a8/c
onfigs/MILC/2064f21b679m020m050/u_MILC_2064f21b679m020m050.nnnnn
target folder: u_MILC_2064f21b679m020m050.nnnnn
total files to download: 264
downloading u_MILC_2064f21b679m020m050.1002
Traceback (most recent call last):3% |####                                 | 
ETA:  00:03:36 394.93 K/s
  File "./punnett/GC/qcdutils_get.py", line 1328, in <module>
    if __name__ == '__main__': main()
  File "./punnett/GC/qcdutils_get.py", line 1293, in main
    download(data.get('token','none'),data['files'],target_folder,options)
  File "./punnett/GC/qcdutils_get.py", line 1181, in download
    data = input.read(MAXBYTES)
  File "/usr/lib/python2.6/socket.py", line 353, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.6/httplib.py", line 538, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.6/socket.py", line 353, in read
    data = self._sock.recv(left)
socket.error: [Errno 4] Interrupted system call

What version of the product are you using? On what operating system?

Linux (Ubuntu 10.04)

Original issue reported on code.google.com by andrew.p...@gmail.com on 16 Oct 2011 at 9:13

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions