SeattleTestbed / softwareupdater

Software updater daemon
MIT License
1 stars 6 forks source link

Webserver broken or incompatible with the software updater tests. #5

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

Running test_update_local.py on OSX results in the following:

Writing initial metainfo... Copying files to /var/folders/OF/OFxw4o5RGmKUU50to4TMKU+++TI/-Tmp-/tmpJ4xD5W/noup folder... Copying files to wronghash directory Changing nmmain... Writing updated nmmain.py metainfo... Warning, 'nmmain.py' has only a hash or file size change but not both (how odd). Copying files to /var/folders/OF/OFxw4o5RGmKUU50to4TMKU+++TI/-Tmp-/tmpJ4xD5W/updatenmmain folder... Copying files to corruptmeta folder... Writing badly signed metainfo Copying files to /var/folders/OF/OFxw4o5RGmKUU50to4TMKU+++TI/-Tmp-/tmpJ4xD5W/badkeysig folder... Changing softwareupdater Writing updated softwareupdater.py metainfo Warning, 'softwareupdater.py' has only a hash or file size change but not both (how odd). Copying files to /var/folders/OF/OFxw4o5RGmKUU50to4TMKU+++TI/-Tmp-/tmpJ4xD5W/updater folder... Changing nmmain... Writing metainfo with new valid key Warning, 'nmmain.py' has only a hash or file size change but not both (how odd). Copying files to /var/folders/OF/OFxw4o5RGmKUU50to4TMKU+++TI/-Tmp-/tmpJ4xD5W/updater_new folder... Copying back files from noup folder... Generating key... Writing config file... Writing vessel dictionary... listening for connection on: 192.168.1.127 client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out /var/folders/OF/OFxw4o5RGmKUU50to4TMKU+++TI/-Tmp-/tmpJ4xD5W/noup/ client timed out Test type: -x URL: http://192.168.1.127:12345/ [ FAIL ] Unexpected Rsync Exception :( Traceback (most recent call last): File "test_rsync.py", line 107, in test_rsync File "/Users/adadgar/Projects/seattle/trunk/soft/softwareupdater.py", line 1795, in do_rsync IOError: 2 No such file or directory: '/var/folders/OF/OFxw4o5RGmKUU50to4TMKU+++TI/-Tmp-/tmpzF-PlC/metainfo'

client timed out client timed out listening for connection on: 192.168.1.127 client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out client timed out Traceback (most recent call last): File "test_updater_local.py", line 379, in main() File "test_updater_local.py", line 254, in main runRsyncTest('-e', tmpserver + '/wronghash/') File "test_updater_local.py", line 124, in runRsyncTest webserver = run_webserver(updatefolder) File "test_updater_local.py", line 224, in run_webserver raise Exception('Webserver exitted with code ' + str(webserver.poll())) Exception: Webserver exitted with code 4

Also the error message should be changed from "client timed out" to something which actually describes the problem.

choksi81 commented 10 years ago

Author: justinc There are still problems. Here is the mac traceback when running with r2238

testbed-mac:seattle_repy gribble$ python test_updater_local.py Writing initial metainfo... Copying files to /tmp/tmpewGlnr/noup folder... Copying files to wronghash directory Changing nmmain... Writing updated nmmain.py metainfo... Warning, 'nmmain.py' has only a hash or file size change but not both (how odd). Copying files to /tmp/tmpewGlnr/updatenmmain folder... Copying files to corruptmeta folder... Writing badly signed metainfo Copying files to /tmp/tmpewGlnr/badkeysig folder... Changing softwareupdater Writing updated softwareupdater.py metainfo Warning, 'softwareupdater.py' has only a hash or file size change but not both (how odd). Copying files to /tmp/tmpewGlnr/updater folder... Changing nmmain... Writing metainfo with new valid key Warning, 'nmmain.py' has only a hash or file size change but not both (how odd). Copying files to /tmp/tmpewGlnr/updater_new folder... Copying back files from noup folder... Generating key... Writing config file... Writing vessel dictionary... listening for connection on: 128.95.2.107 /tmp/tmpewGlnr/noup/ Test type: -x URL: http://128.95.2.107:12345/ [ PASS ]

Traceback (most recent call last): File "test_updater_local.py", line 379, in main() File "test_updater_local.py", line 251, in main runRsyncTest('-x', tmpserver + '/noup/') File "test_updater_local.py", line 135, in runRsyncTest kill_webserver(webserver.pid, updateurl) File "test_updater_local.py", line 179, in kill_webserver " :: url == " + str(url)) Exception: Could not kill the webserver. pid == 41192 :: url == http://128.95.2.107:12345/

choksi81 commented 10 years ago

Author: justinc When running on testbed-mac, here is the latest set of issues:

/tmp/tmpMZlqd_/updater_new/ Test type: -u URL: http://128.95.2.107:12345/ [ PASS ]

listening for connection on: 128.95.2.107 Initial ps out: 59871 ttys006 0:00.04 /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python softwareupdater.py

Traceback (most recent call last): File "test_updater_local.py", line 379, in main() File "test_updater_local.py", line 325, in main raise Exception("First software updater never died.") Exception: First software updater never died.

choksi81 commented 10 years ago

Author: justinc This is only broken when running preparetest.py -t I'll open a new ticket for this problem.