How to debug package upload failures without error messages?

Asked by Matt Amos

I'm trying to upload a package to be built. I've uploaded previous versions of this package to my own PPA (https://launchpad.net/~zerebubuth/+archive/ubuntu/openstreetmap-cgimap) without problems, but am now trying to upload to a different PPA (https://launchpad.net/~osmadmins/+archive/ubuntu/ppa). I have uploaded several versions of the package, each without error from `dput`, but I haven't received a single accepted or rejected email. How is it possible to debug what's going wrong?

There are several previous issues where people have reported similar problems, so I have checked:

* My package builds okay, with only one Lintian note.
* The signatures are okay, and the signing key is available to Launchpad.
* The release is available on GitHub, and a detached signature is attached.
* I've tried uploading both with and without the `.orig.tar.gz` (`-sa / -sd`).

Here's the output of dput:

```
$ dput ppa:osmadmins/ppa openstreetmap-cgimap_0.5.0-0ubuntu2ppa1~xenial5_source.changes
Checking signature on .changes
gpg: Signature made Mon 03 Oct 2016 11:30:55 BST using RSA key ID 5C5EFDD3
gpg: Good signature from "Matt Amos <email address hidden>"
Good signature on /home/matt/Programming/OSM/build-area/openstreetmap-cgimap_0.5.0-0ubuntu2ppa1~xenial5_source.changes.
Checking signature on .dsc
gpg: Signature made Mon 03 Oct 2016 11:30:55 BST using RSA key ID 5C5EFDD3
gpg: Good signature from "Matt Amos <email address hidden>"
Good signature on /home/matt/Programming/OSM/build-area/openstreetmap-cgimap_0.5.0-0ubuntu2ppa1~xenial5.dsc.
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to ppa (via ftp to ppa.launchpad.net):
  Uploading openstreetmap-cgimap_0.5.0-0ubuntu2ppa1~xenial5.dsc: done.
  Uploading openstreetmap-cgimap_0.5.0.orig.tar.gz: done.
  Uploading openstreetmap-cgimap_0.5.0-0ubuntu2ppa1~xenial5.debian.tar.xz: done.
  Uploading openstreetmap-cgimap_0.5.0-0ubuntu2ppa1~xenial5_source.changes: done.
Successfully uploaded packages.
```

What can I do to debug this further?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Matt Amos
Solved:
Last query:
Last reply:
Revision history for this message
William Grant (wgrant) said :
#1

Did you manually alter openstreetmap-cgimap_0.5.0-0ubuntu2ppa1~xenial5_source.changes and then re-sign it? The Date field is mandatory but missing from the file you uploaded, and I've never known a Debian tool to omit that field. dpkg-buildpackage invokes dpkg-genchanges, which does the right thing.

Revision history for this message
Matt Amos (zerebubuth) said :
#2

I didn't manually alter it. I used the following command to generate it:

  gbp buildpackage --git-pristine-tar-commit --git-keyid=5C5EFDD3 --git-dist=xenial --git-debian-branch=ubuntu/xenial -D --git-builder="debuild -S -sa" --git-verbose -S -sa

Using gbp from git-buildpackage 0.7.2, which seems to be the latest available in xenial. My gbp config and build log are available at: https://gist.github.com/zerebubuth/4db686ee0769fca72dc94590a1f7ef01

(Apologies if there's a way to attach them to this post - it wasn't immediately obvious to me how.)

Looking through the logs, there's a warning about "trailing line" which includes the date - perhaps that is somehow causing the missing Date field? I'll see if I can fix the warning.

Revision history for this message
Matt Amos (zerebubuth) said :
#3

That fixed it! Turns out I was missing a comma in my changelog entries. (fix: https://github.com/zerebubuth/openstreetmap-cgimap/commit/f0158344073fb78feda0c028f26fb9b083999473)

Thank you!

Revision history for this message
William Grant (wgrant) said :
#4

Ah, that was easy. For the future, you can use the "dch" tool to easily add new, correctly formatted changelog entries.