Uploaded package not showing in my Launchpad PPA

Asked by Томица Кораћ on 2021-01-03

I created a package for Launchpad PPA and want to upload it to Launchpad. I've used dput command and this is what I get:

tomica@home:~/Desktop$ dput ppa:tomicakorac/ppa gnomenza_0.0.1_source.changes
Uploading gnomenza using ftp to ppa (host: ppa.launchpad.net; directory: ~tomicakorac/ppa)
running supported-distribution: check whether the target distribution is currently supported (using distro-info)
{'allowed': ['release'], 'known': ['release', 'proposed', 'updates', 'backports', 'security']}
running required-fields: check whether a field is present and non-empty in the changes file
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running check-debs: makes sure the upload contains a binary package
running gpg: check GnuPG signatures before the upload
Uploading gnomenza_0.0.1.dsc
Uploading gnomenza_0.0.1.tar.gz
Uploading gnomenza_0.0.1_source.buildinfo
Uploading gnomenza_0.0.1_source.changes
tomica@home:~/Desktop$

I would think that this means my upload was successful. However, when I visit my PPA, it's empty:

https://launchpad.net/~tomicakorac/+archive/ubuntu/ppa/+packages

If I try to upload my package again, this is what I get:

tomica@home:~/Desktop$ dput ppa:tomicakorac/ppa gnomenza_0.0.1_source.changes
Package gnomenza was already uploaded to ppa
If you want to upload nonetheless, use --force or remove gnomenza_0.0.1_source.ppa.upload
tomica@home:~/Desktop$

This means that my package should be visible and accessible, but it isn't. What am I doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Томица Кораћ
Solved:
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

Here's the relevant section from our logs:

2021-01-03 08:40:09 DEBUG Considering upload upload-ftp-20210103-083936-013910
2021-01-03 08:40:09 DEBUG Considering changefile ~tomicakorac/ppa/gnomenza_0.9.0_source.changes
2021-01-03 08:40:09 DEBUG Finding fresh policy
2021-01-03 08:40:09 INFO Processing upload gnomenza_0.9.0_source.changes
2021-01-03 08:40:09 DEBUG Beginning processing.
2021-01-03 08:40:09 DEBUG Verifying signature on gnomenza_0.9.0_source.changes
2021-01-03 08:40:09 DEBUG Starting new HTTP connection (1): keyserver.internal:11371
2021-01-03 08:40:09 DEBUG http://keyserver.internal:11371 "GET /pks/lookup?fingerprint=on&op=get&search=0x4D7D74BDA07FE3BE HTTP/1.1" 200 1899
2021-01-03 08:40:09 DEBUG Building recipients list.
2021-01-03 08:40:09 DEBUG Adding recipient: '=?utf-8?b?0KLQvtC80LjRhtCwINCa0L7RgNCw0Zs=?= <email address hidden>'
2021-01-03 08:40:09 DEBUG no rules relevant to 'app.mainsite_only.canonical_url'
2021-01-03 08:40:10 ERROR Exception while processing upload /srv/launchpad.net/ppa-queue/incoming/upload-ftp-20210103-083936-013910 (OOPS-089a231f7518c189dcbda10e3ed6dce4)
2021-01-03 08:40:10 INFO OOPS-fedd32c748ae61a1436ccd5273acbd33
2021-01-03 08:40:10 DEBUG Moving upload directory /srv/launchpad.net/ppa-queue/incoming/upload-ftp-20210103-083936-013910 to /srv/launchpad.net/ppa-queue/failed/upload-ftp-20210103-083936-013910

And that OOPS says:

  UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 10: ordinal not in range(128)

    Traceback (most recent call last):
  Module lp.archiveuploader.uploadprocessor, line 512, in process
    changes_file, self.processor.log))
  Module lp.archiveuploader.uploadprocessor, line 404, in processChangesFile
    upload.do_reject(notify)
  Module lp.archiveuploader.nascentupload, line 769, in do_reject
    changes_file_object=changes_file_object, logger=self.logger)
  Module lp.soyuz.model.queue, line 952, in notify
    mailer.sendAll()
  Module lp.services.mail.basemailer, line 236, in sendAll
    self.sendOne(email, recipient)
  Module lp.services.mail.basemailer, line 211, in sendOne
    ctrl = self.generateEmail(email, recipient)
  Module lp.soyuz.mail.packageupload, line 615, in generateEmail
    email, recipient, force_no_attachments=force_no_attachments)
  Module lp.services.mail.basemailer, line 114, in generateEmail
    body = self._getBody(email, recipient)
  Module lp.services.mail.basemailer, line 185, in _getBody
    body = template % params
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 10: ordinal not in range(128)

So it looks as though the package was going to be rejected for some reason, but then the rejection crashed due to a Unicode handling issue. We'll need to fix that issue before we can see what the original problem was.

Revision history for this message
Colin Watson (cjwatson) said :
#2

I've looked at the upload and I think https://bugs.launchpad.net/launchpad/+bug/1910403 captures the problem with the rejection email. As far as I can see, you should be able to work around this by correcting the syntax error in the Maintainer field in debian/control: it should include an email address as well as just a name (so, for example, for my own packages I might write "Maintainer: Colin Watson <email address hidden>" there).

Revision history for this message
Томица Кораћ (tomicakorac) said :
#3

@cjwatson many thanks for answering and reporting the bug. Here's what I've done now:

- I added another name to my OpenPGP key: Tomica Korac <email address hidden>
- I synced my modified key with Ubuntu server
- I modified my name in the Changelog file to match Tomica Korac <email address hidden>
- I re-generated <source.changes> file, and got: Successfully signed dsc, buildinfo, changes files
- I re-sent the packages to PPA with dput -f ppa:tomicakorac/ppa gnomenza_0.9.0_source.changes , this time I got:

Checking signature on .changes
gpg: /home/tomica/Desktop/gnomenza_0.9.0_source.changes: Valid signature from 4D7D74BDA07FE3BE
Checking signature on .dsc
gpg: /home/tomica/Desktop/gnomenza_0.9.0.dsc: Valid signature from 4D7D74BDA07FE3BE
Uploading to ppa (via ftp to ppa.launchpad.net):
  Uploading gnomenza_0.9.0.dsc: done.
  Uploading gnomenza_0.9.0.tar.gz: done.
  Uploading gnomenza_0.9.0_source.buildinfo: done.
  Uploading gnomenza_0.9.0_source.changes: done.
Successfully uploaded packages.

And still, my package is neither being built, nor shown in the PPA, and I'm not getting any email notifications.

Revision history for this message
Colin Watson (cjwatson) said :
#4

You mention changing the changelog, but that wasn't the file I was talking about (and I don't believe it was necessary to change it, nor to do all the stuff you mention with your OpenPGP key). Did you change, specifically, the Maintainer field in debian/control?

Revision history for this message
Томица Кораћ (tomicakorac) said :
#5

Ugh! Really sorry, I completely misunderstood your instruction. It's been a hell of a day for me. Now I realise I didn't need to do all that. So now I've changed the Modifier value in debian/control to read 'Tomica Korac <email address hidden>' (without quotes). I regenerated the source.changes file again and sent it to PPA with dput. The result seems to be the same: No email notification and still nothing uploaded.

Revision history for this message
Томица Кораћ (tomicakorac) said :
#6

I was too hasty. I got the approval email with a slight delay, and it went to 'Spam'. My package was successfully uploaded. @cjwatson many thanks for your time and patience!