You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "genericqa (JIRA)" <ji...@apache.org> on 2018/07/10 20:31:00 UTC

[jira] [Commented] (HADOOP-15590) Use gpg2 and add set GPG_AGENT_INFO for hadoop release

    [ https://issues.apache.org/jira/browse/HADOOP-15590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16539200#comment-16539200 ] 

genericqa commented on HADOOP-15590:
------------------------------------

(!) A patch to the testing environment has been detected. 
Re-executing against the patched versions to perform further tests. 
The console is at https://builds.apache.org/job/PreCommit-HADOOP-Build/14872/console in case of problems.


> Use gpg2 and add set GPG_AGENT_INFO for hadoop release
> ------------------------------------------------------
>
>                 Key: HADOOP-15590
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15590
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Yongjun Zhang
>            Assignee: Yongjun Zhang
>            Priority: Major
>         Attachments: HADOOP-15590.001.patch
>
>
> When doing 3.0.3 release, by running command
> dev-support/bin/create-release --asfrelease --docker --dockercache
> documented in
> https://wiki.apache.org/hadoop/HowToRelease
> I hit the following problems:
> 1. 
> {quote}
> starting gpg agent ERROR: Unable to launch or acquire gpg-agent. Disable signing.
> {quote}
> The script expect GPG_AGENT_INFO env being set with needed info by the gpg-agent. However, it was not. This is because of changes made in gpg-agent. I found the workaround is to add the following line to dev-support/bin/create-release script right after starting gpg-agent:
> {quote}
> export GPG_AGENT_INFO="~/.gnupg/S.gpg-agent:$(pgrep gpg-agent):1"
> {quote}
> 2.
> {quote}
> gpg: can't connect to `~/.gnupg/S.gpg-agent': invalid value
> {quote}
> I found that this is caused by unmatching gpg-agent and gpg versions installed via Docker. I modified dev-support/docker/Dockerfile to install gnupg2 instead of gnupg. This made gpg and gpg-agent both 2.1.11 instead of one on 2.1.11 the other on 1.14. And this solved the above problem. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org