signer: bad header size, build is stuck

Hello, I have a big package that is in the sign phase of the build but the signer has an issue and the package never leaves this stage. This is a part from the log: 2021-01-29 09:36:17: [1439] signer started waiting for an event... signing x86_64/<package> /srv/obs/jobs/x86_64/<package>.src.rpm: bad header size (3757400034) sign failed: 256 - checking digest /srv/obs/jobs/x86_64/<package>:dir/<package>.src.rpm: digests OK sign failed: sign /srv/obs/jobs/x86_64/<package>:dir/<package>.src.rpm failed I tried to find out if I can restart the signing or the build process, but the restart build button does not restart the build here. I rebooted the server which results in the same issue... The only thing I can think of now is to delete and recreate the package, wait 3hours for the build and hope the signer then works... What can I do to get past the sign stage? There is no hope to get the package smaller btw. Best regards, Mark

Hm, even after deleting the package, the signer process still exists :-/ -----Ursprüngliche Nachricht----- Von: Morschhäuser, Mark [mailto:Mark.Morschhaeuser@dsa.de] Gesendet: Freitag, 29. Januar 2021 09:47 An: 'buildservice@lists.opensuse.org' <buildservice@lists.opensuse.org> Betreff: signer: bad header size, build is stuck Hello, I have a big package that is in the sign phase of the build but the signer has an issue and the package never leaves this stage. This is a part from the log: 2021-01-29 09:36:17: [1439] signer started waiting for an event... signing x86_64/<package> /srv/obs/jobs/x86_64/<package>.src.rpm: bad header size (3757400034) sign failed: 256 - checking digest /srv/obs/jobs/x86_64/<package>:dir/<package>.src.rpm: digests OK sign failed: sign /srv/obs/jobs/x86_64/<package>:dir/<package>.src.rpm failed I tried to find out if I can restart the signing or the build process, but the restart build button does not restart the build here. I rebooted the server which results in the same issue... The only thing I can think of now is to delete and recreate the package, wait 3hours for the build and hope the signer then works... What can I do to get past the sign stage? There is no hope to get the package smaller btw. Best regards, Mark

On Fri, Jan 29, 2021 at 08:46:48AM +0000, Morschhäuser, Mark wrote:
I have a big package that is in the sign phase of the build but the signer has an issue and the package never leaves this stage. This is a part from the log:
2021-01-29 09:36:17: [1439] signer started waiting for an event... signing x86_64/<package> /srv/obs/jobs/x86_64/<package>.src.rpm: bad header size (3757400034) sign failed: 256 - checking digest /srv/obs/jobs/x86_64/<package>:dir/<package>.src.rpm: digests OK sign failed: sign /srv/obs/jobs/x86_64/<package>:dir/<package>.src.rpm failed
I tried to find out if I can restart the signing or the build process, but the restart build button does not restart the build here. I rebooted the server which results in the same issue... The only thing I can think of now is to delete and recreate the package, wait 3hours for the build and hope the signer then works... What can I do to get past the sign stage?
The easiest way is to just remove the job result, i.e. do a rm -rf /srv/obs/jobs/x86_64/<package>:*
There is no hope to get the package smaller btw.
Ok, but that 'bad header size' error is really weird. The header in the rpm package cannot be that big. So I think this hits some bad corner case in the sign tool. (Having said this, the sign tool seems to have a rpm size limitation of 4 GByte.) Can you please send my the first 10k of the rpm? (dd if=your_rpm.rpm of=first_10k.rpm size=10k count=1) Cheers, Michael. -- Michael Schroeder SUSE Software Solutions Germany GmbH mls@suse.de GF: Felix Imendoerffer HRB 36809, AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}

On Fri, Jan 29, 2021 at 09:07:05AM +0000, Michael Schroeder wrote:
Ok, but that 'bad header size' error is really weird. The header in the rpm package cannot be that big. So I think this hits some bad corner case in the sign tool.
(Having said this, the sign tool seems to have a rpm size limitation of 4 GByte.)
Can you please send my the first 10k of the rpm?
(dd if=your_rpm.rpm of=first_10k.rpm size=10k count=1)
No need to do that, I think I know what's happening. You're really running into that 4G limit. This needs to be fixed in the sign tool. Cheers, Michael. -- Michael Schroeder SUSE Software Solutions Germany GmbH mls@suse.de GF: Felix Imendoerffer HRB 36809, AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}

On Fri, Jan 29, 2021 at 09:13:48AM +0000, Michael Schroeder wrote:
On Fri, Jan 29, 2021 at 09:07:05AM +0000, Michael Schroeder wrote:
Ok, but that 'bad header size' error is really weird. The header in the rpm package cannot be that big. So I think this hits some bad corner case in the sign tool.
(Having said this, the sign tool seems to have a rpm size limitation of 4 GByte.)
Can you please send my the first 10k of the rpm?
(dd if=your_rpm.rpm of=first_10k.rpm size=10k count=1)
No need to do that, I think I know what's happening. You're really running into that 4G limit. This needs to be fixed in the sign tool.
Ok, the fix is pushed to git and also into the obs-signd package in OBS:Server:Unstable on build.opensuse.org. So it should work if you update the obs-signd package once it's built. Cheers, Michael. -- Michael Schroeder SUSE Software Solutions Germany GmbH mls@suse.de GF: Felix Imendoerffer HRB 36809, AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}

Hello, thanks for the very fast response. I updated the signer and see what happens. Best regards, Mark -----Ursprüngliche Nachricht----- Von: Michael Schroeder [mailto:mls@suse.de] Gesendet: Freitag, 29. Januar 2021 10:46 An: Morschhäuser, Mark <Mark.Morschhaeuser@dsa.de> Cc: 'buildservice@lists.opensuse.org' <buildservice@lists.opensuse.org> Betreff: Re: signer: bad header size, build is stuck On Fri, Jan 29, 2021 at 09:13:48AM +0000, Michael Schroeder wrote:
On Fri, Jan 29, 2021 at 09:07:05AM +0000, Michael Schroeder wrote:
Ok, but that 'bad header size' error is really weird. The header in the rpm package cannot be that big. So I think this hits some bad corner case in the sign tool.
(Having said this, the sign tool seems to have a rpm size limitation of 4 GByte.)
Can you please send my the first 10k of the rpm?
(dd if=your_rpm.rpm of=first_10k.rpm size=10k count=1)
No need to do that, I think I know what's happening. You're really running into that 4G limit. This needs to be fixed in the sign tool.
Ok, the fix is pushed to git and also into the obs-signd package in OBS:Server:Unstable on build.opensuse.org. So it should work if you update the obs-signd package once it's built. Cheers, Michael. -- Michael Schroeder SUSE Software Solutions Germany GmbH mls@suse.de GF: Felix Imendoerffer HRB 36809, AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
participants (2)
-
Michael Schroeder
-
Morschhäuser, Mark