Error while uploading keys to keyservers

Bug #192112 reported by Adna rim
6
Affects Status Importance Assigned to Milestone
gpa (Debian)
Fix Released
Unknown
gpa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,
one can't upload a key to a keyserver using gpa. It always comes the error-msg: "Invalid Argument.". Tested on Gutsy.

The problem exists because gpa uses gpgkeys_ldap and gpgkeys_hkp to upload the keys and gnupg needs to be compiled with these plugins to make it work. At the moment gnupg is compiled without them.

greets

Adna rim (adnarim)
description: updated
Revision history for this message
Michael Bienia (geser) wrote :

Can you test if it also fails if you try with gpg to upload the key to the same keyserver?

Revision history for this message
Adna rim (adnarim) wrote :

Yes with gpg everything works fine. I'm using the cmdl for uploading keys because gpa is not working for me. I also configured a keyserver (keyserver.noreply.org or hkp://keyserver.ubuntu.com) in my gpg.conf and gpa also tries to send to it but as I told I always get the error "Invalid Argument." and sometimes it crashes then. There doesn't appear any error in the console but I have made a strace:

poll([{fd=3, events=POLLIN}], 1, 0) = 0
gettimeofday({1203093744, 782291}, NULL) = 0
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1203093744, 782442}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
write(3, "5\30\4\0\346\2\240\1\211\2\240\1\201\0\33\0\236\4\5\0\347"..., 1784) = 1784
ioctl(3, FIONREAD, [0]) = 0
gettimeofday({1203093744, 784021}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 499) = 1
ioctl(3, FIONREAD, [160]) = 0
read(3, "\10\0\353\27e\255\371\35\211\0\0\0\214\2\240\1\0\0\0\000"..., 160) = 160
gettimeofday({1203093744, 998108}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
gettimeofday({1203093744, 998813}, NULL) = 0
gettimeofday({1203093744, 998893}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
gettimeofday({1203093744, 999209}, NULL) = 0
gettimeofday({1203093744, 999288}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
write(3, "\22\0\7\0\211\2\240\1\2\1\0\0\6\0\0\0 \4\5\0\1\0\0\0e\255"..., 28) = 28
ioctl(3, FIONREAD, [32]) = 0
read(3, "\34\7\354\27\211\2\240\1\2\1\0\0g\255\371\35\0\1\0\0\2"..., 32) = 32
poll([{fd=3, events=POLLIN}], 1, 0) = 0
ioctl(3, FIONREAD, [0]) = 0
ioctl(3, FIONREAD, [0]) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
write(3, "5\30\4\0\350\2\240\1\211\2\240\1\201\0\33\0\236\4\5\0\351"..., 1764) = 1764
ioctl(3, FIONREAD, [0]) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
ioctl(3, FIONREAD, [32]) = 0
read(3, "\5\1\6\30\232\255\371\35\211\0\0\0\214\2\240\1\0\0\0\000"..., 32) = 32
write(4, "VERSION 1\nSCHEME hkp\nHOST keyser"..., 135) = 135
exit_group(1) = ?
Process 5529 detached

Revision history for this message
Adna rim (adnarim) wrote :

Still unfixed in Hardy

Changed in gpa:
status: New → Confirmed
Revision history for this message
Stefan Lesicnik (stefanlsd) wrote :

Gpa 0.7.6 was recently added to Ubuntu Intrepid. Is it possible to test with this version and let us know if this is still a bug for you? Thanks!

Revision history for this message
Rorschach (r0rschach) wrote :

I can confirm this bug with gpa 0.7.6 rev 777

Revision history for this message
Duncan Bayne (dhgbayne) wrote :

I can confirm this bug in Ubuntu Jaunty as well; it still uses GPA 0.7.6 777. Open for over a year :-(

Presumably the fix to this is to ship a GPG binary that's compiled with gpgkeys_ldap and gpgkeys_hkp? How do we go about co-ordinating that? Presumably the GPG package maintainers would need to be notified?

Revision history for this message
Duncan Bayne (dhgbayne) wrote :

That said, I'm not sure that the fix is as simple as compiling with gpgkeys_ldap and gpgkeys_hkp. I have installed the libldap2-dev package, and I can see the following in the output from "./configure" on the latest (1.4.9) GPG source:

checking whether LDAP via "-lldap" is present and sane... yes
checking for ldap_get_option... yes
checking for ldap_set_option... yes
checking for ldap_start_tls_s... yes
checking for ldap_start_tls_sA... no
checking whether HKP keyserver support is requested... yes

Having built and installed GPG from source with (AFAICT) LDAP and HKP enabled, I can use gpg from the CLI to send my key to an HKP server:

$ gpg --send-keys DXXXXXXX
gpg: sending key DXXXXXXX to hkp server keys.gnupg.net

... but GPA still crashes with "Invalid argument".

Revision history for this message
lpad-r61 (lpad-r61) wrote :

It's still a problem in Ubuntu 9.10.

Revision history for this message
Daniel Leidert (dleidert-deactivatedaccount) wrote :

Fixed in gpa 0.9.0.

Changed in gpa (Ubuntu):
status: Confirmed → Fix Released
Changed in gpa (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.