DevHeads.net

Problem uploading to lookaside cache

I'm trying to update perl-IO-Multiplex to 1.11 but I can't upload the
tarball to the lookaside cache. "fedpkg new-sources" reports success but
hasn't actually worked:

$ fedpkg new-sources IO-Multiplex-1.11.tar.gz
Uploading: 7db84e16c24579865c9044843880962a IO-Multiplex-1.11.tar.gz
########################################################################
100.0%
Uploaded and added to .gitignore: IO-Multiplex-1.11.tar.gz
Source upload succeeded. Don't forget to commit the sources file

$ mv IO-Multiplex-1.11.tar.gz IO-Multiplex-1.11.tar.gz.orig

$ fedpkg sources
Downloading IO-Multiplex-1.11.tar.gz
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
curl: (22) The requested URL returned error: 404
Could not download sources: Command '['curl', '-H', 'Pragma:', '-o',
'IO-Multiplex-1.11.tar.gz', '-R', '-S', '--fail', '--show-error',
'http://pkgs.fedoraproject.org/repo/pkgs/perl-IO-Multiplex/IO-Multiplex-1.11.tar.gz/7db84e16c24579865c9044843880962a/IO-Multiplex-1.11.tar.gz']'
returned non-zero exit status 22

It appears that the upload CGI is reporting success despite having
failed. Here's a manual attempt at running it with curl in verbose mode:

$ PACKAGE_NAME=perl-IO-Multiplex
$ SOURCE_FILE_NAME=IO-Multiplex-1.11.tar.gz
$ MD5_SUM_OF_SOURCE_FILE=$(cut -d" " -f1 < sources)
$ cat sources
7db84e16c24579865c9044843880962a IO-Multiplex-1.11.tar.gz
$ curl -v -k --cert ~/.fedora.cert -F "name=${PACKAGE_NAME}" -F
"md5sum=${MD5_SUM_OF_SOURCE_FILE}" -F "file=@${SOURCE_FILE_NAME}"
<a href="https://pkgs.fedoraproject.org/repo/pkgs/upload.cgi" title="https://pkgs.fedoraproject.org/repo/pkgs/upload.cgi">https://pkgs.fedoraproject.org/repo/pkgs/upload.cgi</a>
* About to connect() to pkgs.fedoraproject.org port 443 (#0)
* Trying 209.132.181.4... connected
* Connected to pkgs.fedoraproject.org (209.132.181.4) port 443 (#0)
* Initializing NSS with certpath: /etc/pki/nssdb
* warning: ignoring unsupported value (1) of ssl.verifyhost
* Certificate is signed by an untrusted issuer:
'E= ... at fedoraproject dot org,CN=Fedora Project CA,OU=Fedora Project
CA,O=Fedora Project,L=Raleigh,ST=North Carolina,C=US'
* SSL certificate verify ok.
* NSS: client certificate: PEM Token #1:.fedora.cert
* subject: E=paul@city-fan.org,CN=pghmcfc,OU=Fedora User Cert,O=Fedora
Project,ST=North Carolina,C=US
* start date: Feb 12 10:59:43 2011 GMT
* expire date: Aug 11 10:59:43 2011 GMT
* common name: pghmcfc
* issuer: E= ... at fedoraproject dot org,CN=Fedora Project CA,OU=Fedora
Project CA,O=Fedora Project,L=Raleigh,ST=North Carolina,C=US
* SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
* subject:
E= ... at fedoraproject dot org,CN=pkgs.fedoraproject.org,OU=Package
SCM,O=Fedora Project,ST=North Carolina,C=US
* start date: Jul 27 16:12:45 2010 GMT
* expire date: Jul 24 16:12:45 2020 GMT
* common name: pkgs.fedoraproject.org
* issuer: E= ... at fedoraproject dot org,CN=Fedora Project CA,OU=Fedora
Project CA,O=Fedora Project,L=Raleigh,ST=North Carolina,C=US
Any idea what's up?

Paul.

Comments

Re: Problem uploading to lookaside cache

By Daniel P. Berrange at 02/21/2011 - 08:58

On Mon, Feb 21, 2011 at 12:25:44PM +0000, Paul Howarth wrote:
[snip]

I've no idea, but it isn't just you. I'm seeing exactly the same problem
trying to provide new sources for virt-viewer. Upload "succeeds" according
to fedpkg, but the file doesn't exist on the server when you try to fetch
it again

Regards,
Daniel

Re: Problem uploading to lookaside cache

By Toshio Kuratomi at 02/21/2011 - 12:42

On Mon, Feb 21, 2011 at 12:58:57PM +0000, Daniel P. Berrange wrote:
-Toshio

Re: Problem uploading to lookaside cache

By Paul Howarth at 02/21/2011 - 12:52

On 21/02/11 16:42, Toshio Kuratomi wrote:
Probably because the script is returning a "200 OK" HTTP status.

Paul.

Re: Problem uploading to lookaside cache

By Jesse Keating at 02/21/2011 - 19:33

On 2/21/11 8:52 AM, Paul Howarth wrote:
Which in turn probably makes curl return 0 instead of non-zero. Fedpkg
is just calling out to curl at this point, rather than duplicating all
the UI to make the upload look pretty :)

Re: Problem uploading to lookaside cache

By Petr Pisar at 02/21/2011 - 08:57

On 2011-02-21, Paul Howarth <paul@city-fan.org> wrote:
-- Petr