"Upload to ohloh fails"



Hi there,

I've got my builds to automtically upload the binaries and instruct files, but somehow they don't get processed.

Here's the resulting log file: 2009-04-01 07:25:20 18567 Instruct file '/home/chroot/projects/o/openrasta/instructs/ohloh.xml' running. 2009-04-01 07:25:20 18567 Error: #/usr/lib/ruby/1.8/net/http.rb:2097:in error!'./script/../lib/fup/poster.rb:31:inpost'./script/../lib/fup/instruct.rb:79:in accept!'script/fup_instruct:50:inaccept'script/fupinstruct:48:in each'script/fup_instruct:48:inaccept'./script/../lib/fup/pidfile.rb:22:in lock'./script/../lib/fup/pid_file.rb:19:inopen'./script/../lib/fup/pidfile.rb:19:in lock'script/fup_instruct:47:inaccept'script/fupinstruct:80:in send'script/fup_instruct:80:inrun!'script/fup_instruct:93 2009-04-01 07:25:20 18567 Instruct file '/home/chroot/projects/o/openrasta/instructs/ohloh.xml' failed.

Is there something I'm going wrong on my side or is the upload service b0rked?

Avatar

serialseb

about 4 years ago
 

Hi serialseb,

Sorry for the complications; this can be difficult to debug when things go wrong.

The answer is that things were a little bit borked on both ends. I was able to get the submission to go through by making the following two changes:

First, I removed the namespace declaration xmlns="urn:schemas-ohloh:instructfule" from the XML file. Even without the spelling error, our system doesn't know what this is, and the XML file won't validate.

Second, it looks like we have a case-sensitivity issue in our code. Because the project URL on Ohloh was OpenRasta, but the upload directory was named openrasta, the two did not match and the upload was not completed.

I was able to get the upload to complete by changing the URL on Ohloh to openrasta and resubmitting the job.

For various technical reasons, this is a lot more complicated than simply changing our code to do a case-insensitive lookup. This will be a complicated bug to fix. In the near term, if you want to keep using the scripted uploader, then the URL name on Ohloh will have to remain the lowercase openrasta.

Let me know if you have any more troubles with the uploader.

Thanks, Robin

Avatar

Robin Luckey

about 4 years ago
 

Robin,

thanks for the answer. The xmlns instruction wasn't there originally. Should've thought it would get borked.

So it was just because the URIs are case-sensitive!

Thanks a lot for that, it explains it. You should just update the documentation :)

Off to do my official beta1 release!

Avatar

serialseb

about 4 years ago
 



 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.