[opensuse-buildservice] gpg: [don't know]: 1st length byte missing

I am having trouble when signing my packages # sign /srv/obs/jobs/x86_64/hw\:\:RHEL_7\:\:test-4486c61b9673b52a1e1c930e9e958fb6\:dir/xxxx-2.10.2-1.1.x86_64.rpm gpg: [don't know]: 1st length byte missing gpg: keydb_search failed: Invalid packet gpg: skipped "xxxx@localhost": Invalid packet gpg: signing failed: Invalid packet I've tried regenerating gpg key with the same result. Helgi Waag -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Mon, Dec 19, 2016 at 11:20:50AM +0100, Helgi Waag wrote:
I am having trouble when signing my packages
# sign /srv/obs/jobs/x86_64/hw\:\:RHEL_7\:\:test-4486c61b9673b52a1e1c930e9e958fb6\:dir/xxxx-2.10.2-1.1.x86_64.rpm gpg: [don't know]: 1st length byte missing gpg: keydb_search failed: Invalid packet gpg: skipped "xxxx@localhost": Invalid packet gpg: signing failed: Invalid packet
I've tried regenerating gpg key with the same result.
Looks like your gpg pubring or secring is corrupt. That's not really an OBS issue, you should get the same error if you run gpg manually. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

I am having trouble when signing my packages
# sign /srv/obs/jobs/x86_64/hw\:\:RHEL_7\:\:test-4486c61b9673b52a1e1c930e9e958fb6\:dir/xxxx-2.10.2-1.1.x86_64.rpm gpg: [don't know]: 1st length byte missing gpg: keydb_search failed: Invalid packet gpg: skipped "xxxx@localhost": Invalid packet gpg: signing failed: Invalid packet
I've tried regenerating gpg key with the same result.
Looks like your gpg pubring or secring is corrupt. That's not really an OBS issue, you should get the same error if you run gpg manually.
The error only seems to happen if signd is started via init, and goes away if I start signd manually: linux:~ # service obssignd start linux:~ # sign -v package-name-2.10.2-1.1.x86_64-3.rpm rpm sign package-name-2.10.2-1.1.x86_64-3.rpm user xxxxx@localhost.localdomain gpg: [don't know]: 1st length byte missing gpg: keydb_search failed: Invalid packet gpg: skipped "xxxxx@localhost.localdomain": Invalid packet gpg: signing failed: Invalid packet linux:~ # service obssignd stop linux:~ # signd & [1] 7648 linux:~ # 2016-12-19 14:38:51: signd started ^C linux:~ # sign -v package-name-2.10.2-1.1.x86_64-3.rpm rpm sign package-name-2.10.2-1.1.x86_64-3.rpm user xxxxx@localhost.localdomain 2016-12-19 14:39:59: 127.0.0.1: sign xxxxx@localhost.localdomain 662ea45f1bac2065dcfeb96bf7d5ca3f8e6b7c90@005857f13f cf6bc942c9efedc49d909f9fdea3dda6b82e030e@005857f13f linux:~ # sign -v package-name-2.10.2-1.1.x86_64-3.rpm package-name-2.10.2-1.1.x86_64-3.rpm: already signed linux:~ # So I'll have a look at /etc/init.d/obssignd Helgi Waag ----- Original Message ----- From: "Michael Schroeder" <mls@suse.de> To: "Helgi Waag" <hw@casalogic.dk> Cc: "opensuse-buildservice" <opensuse-buildservice@opensuse.org> Sent: Monday, 19 December, 2016 15:27:25 Subject: Re: [opensuse-buildservice] gpg: [don't know]: 1st length byte missing On Mon, Dec 19, 2016 at 11:20:50AM +0100, Helgi Waag wrote:
I am having trouble when signing my packages
# sign /srv/obs/jobs/x86_64/hw\:\:RHEL_7\:\:test-4486c61b9673b52a1e1c930e9e958fb6\:dir/xxxx-2.10.2-1.1.x86_64.rpm gpg: [don't know]: 1st length byte missing gpg: keydb_search failed: Invalid packet gpg: skipped "xxxx@localhost": Invalid packet gpg: signing failed: Invalid packet
I've tried regenerating gpg key with the same result.
Looks like your gpg pubring or secring is corrupt. That's not really an OBS issue, you should get the same error if you run gpg manually. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Hi Helgi, Am 19.12.2016 um 15:49 schrieb Helgi Waag:
I am having trouble when signing my packages
# sign /srv/obs/jobs/x86_64/hw\:\:RHEL_7\:\:test-4486c61b9673b52a1e1c930e9e958fb6\:dir/xxxx-2.10.2-1.1.x86_64.rpm gpg: [don't know]: 1st length byte missing gpg: keydb_search failed: Invalid packet gpg: skipped "xxxx@localhost": Invalid packet gpg: signing failed: Invalid packet
I've tried regenerating gpg key with the same result.
Looks like your gpg pubring or secring is corrupt. That's not really an OBS issue, you should get the same error if you run gpg manually.
The error only seems to happen if signd is started via init, and goes away if I start signd manually:
I had some similar issue some time ago. I do not remember all details, but in the end some environment variable was not set in the init case, so it did search the gpg keyring under / instead of the correct place. ... Cheers Karsten -- Linux Consultant, Linux Kernel Developer Tel.: +49-175-7249132 Mail: keil@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Helgi Waag
-
Karsten Keil
-
Michael Schroeder