Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to download metainfo traceback #35

Open
choksi81 opened this issue May 24, 2014 · 1 comment
Open

failed to download metainfo traceback #35

choksi81 opened this issue May 24, 2014 · 1 comment
Assignees

Comments

@choksi81
Copy link
Contributor

The following tracebacks appear sporadically in several nodes's softwareupdater logs:

1304334016.57:PID-4243:Traceback (most recent call last):
File "softwareupdater.py", line 167, in safe_download File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/urllib.py", line 89, in urlretrieve
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/urllib.py", line 248, in retrieve
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/socket.py", line 309, in read
timeout: timed out
1304334016.57:PID-4243:[Failed to download http://seattle.cs.washington.edu/couvb/updatesite/0.1/metainfo
1304334016.57:PID-4243:do_rsync New metainfo not signed correctly. Not updating.

and

1304376470.34:PID-4243:Traceback (most recent call last):
File "softwareupdater.py", line 167, in safe_download
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/urllib.py", line 89, in urlretrieve
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/urllib.py", line 222, in retrieve
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/urllib.py", line 190, in open
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/urllib.py", line 325, in open_http
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/httplib.py", line 856, in endheaders
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/httplib.py", line 728, in _send_output
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/httplib.py", line 695, in send
File "/vservers/.vref/planetlab-f8-i386/usr/lib/python2.5/httplib.py", line 679, in connect
IOError: socket error timed out
1304376470.34:PID-4243:[Failed to download http://seattle.cs.washington.edu/couvb/updatesite/0.1/metainfo
1304376470.34:PID-4243:Traceback (most recent call last):
File "softwareupdater.py", line 830, in
File "softwareupdater.py", line 753, in main
File "softwareupdater.py", line 251, in do_rsync
File "/home/uw_seattle/seattle/seattle_repy/emulfile.py", line 144, in emulated_open
File "/home/uw_seattle/seattle/seattle_repy/emulfile.py", line 316, in init
IOError: Errno 2 No such file or directory: '/tmp/tmp7g1VKB/metainfo'

The updater should probably just log that the download timed out and not give a traceback for this sort of thing.

@choksi81
Copy link
Contributor Author

choksi81 commented Jun 3, 2014

I believe the top two are fixed. I think all that remains is:
1304376470.34:PID-4243:[safe_download] Failed to download http://seattle.cs.washington.edu/couvb/updatesite/0.1/metainfo
1304376470.34:PID-4243:Traceback (most recent call last):
File "softwareupdater.py", line 830, in
File "softwareupdater.py", line 753, in main
File "softwareupdater.py", line 251, in do_rsync
File "/home/uw_seattle/seattle/seattle_repy/emulfile.py", line 144, in emulated_open
File "/home/uw_seattle/seattle/seattle_repy/emulfile.py", line 316, in init
IOError: [Errno 2] No such file or directory: '/tmp/tmp7g1VKB/metainfo'
I think this would not be hard to change. Wrapping newmetafileobject = file(tempdir+"metainfo") will likely fix it. But I'd like to see if the problem remains on recent nodes before applying a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants