2007-04-23 15:33:26 |
Guilherme Salgado |
description |
Mirror-prober hanging with the following message:
Unhandled error in Deferred:
Traceback (most recent call last):
Failure: canonical.launchpad.scripts.distributionmirror_prober.UnknownURLScheme: The mirror prober doesn't know how to check URLs with an '' scheme.
This is repeated 6 times.
Can be run manually, and if you hit control+C it will continue probing other mirrors. Sometimes it continues to completion, and sometimes it fails after a few mirror updates with:
Traceback (most recent call last):
File "./cronscripts/distributionmirror-prober.py", line 152, in ?
script.lock_and_run()
File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/canonical/launchpad/scripts/base.py", line 213, in lock_and_run
implicit_begin=implicit_begin)
File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/canonical/launchpad/scripts/base.py", line 195, in run
self.main()
File "./cronscripts/distributionmirror-prober.py", line 128, in main
self._create_probe_record(mirror, logfiles[mirror.id])
File "./cronscripts/distributionmirror-prober.py", line 46, in _create_probe_record
file=logfile, contentType='text/plain')
File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/canonical/launchpad/database/librarian.py", line 147, in create
fid = client.addFile(name, size, file, contentType, expires, debugID)
File "/srv/launchpad.net/production/launchpad/lib/canonical/librarian/client.py", line 85, in addFile
raise UploadFailed('Invalid length: %d' % size)
canonical.librarian.interfaces.UploadFailed: Invalid length: 0 |
Some mirrors may redirect us and give a relative URL in the Location header, causing the mirror prober to fail as it expects it to be an absolute URL. Although this has only been a problem for a mirror (https://launchpad.net/ubuntu/+mirror/mymirror.asiaosc.org) that was turned into a link farm website, we need to fix this at some valid mirrors could use relative URLs in the Location header as well. |
|