Bug 11914 - gpg: signing failed due to lack of memory on nightly-oe-selftest
Summary: gpg: signing failed due to lack of memory on nightly-oe-selftest
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: High normal
Target Milestone: 2.4 M3
Assignee: Leonardo Sandoval Gonzalez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-08 21:38 UTC by Leonardo Sandoval Gonzalez
Modified: 2017-08-21 18:56 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Log taken from [1] (974.75 KB, application/octet-stream)
2017-08-08 21:38 UTC, Leonardo Sandoval Gonzalez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Sandoval Gonzalez 2017-08-08 21:38:21 UTC
Created attachment 3927 [details]
Log taken from [1]

AB build [1] is failing with following error:

NOTE: recipe shadow-securetty-4.2.1-r3: task do_package_write_rpm: Started
ERROR: base-passwd-3.5.29-r0 do_package_write_rpm: Function failed: Failed to sign RPM packages: gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: WARNING: unsafe ownership on homedir '/tmp/oeqa-signing-oklbc4za'
gpg: signing failed: Cannot allocate memory
gpg: signing failed: Cannot allocate memory
error: gpg exec failed (2)

Clearly suggesting that host machine is running out of memory and gpg is unable to sign the package.

Note also the WARNING, indicating another problem related to ownership.

[1] 
https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/431
Comment 1 Leonardo Sandoval Gonzalez 2017-08-08 22:02:33 UTC
Just realized that this is ross/mut so it may be invalid. Leaving as it is, so decision on its status is done at triage
Comment 2 Leonardo Sandoval Gonzalez 2017-08-21 18:56:05 UTC
There was a need to include file chunks, so the second patch fixing this issue

http://git.openembedded.org/openembedded-core/commit/?id=f7f78e73f1cd15f4233a231364b14438af758628