오류 - gpg: cannot open '/dev/tty': PGP 키를 사용하여 암호화/해독할 때 해당 디바이스 또는 주소가 없음
오류를 수정하려면 "gpg: cannot open '/dev/tty': No such device or address"
pgp 키를 사용하여 암호화하거나 해독하는 동안 시스템이 출력하려는 단계를 우회합니다. /dev/tty
를 추가하여 --no-tty
(GPG 명령 내)
설명 description
환경
- Campaign Classic
- Campaign
- Campaign Standard
문제/증상
암호화 후 처리 명령 또는 해독 전 처리 명령을 사용할 때 다음 오류가 발생합니다.
gpg: cannot open '/dev/tty': No such device or address
해상도 resolution
위에서 언급한 오류를 수정하려면 시스템이 /dev/tty
로 출력하려는 단계를 우회해야 합니다(파일 시스템에 없거나 Neolane 사용자에게 이 디렉터리에 대한 권한이 없음). GPG 명령에서 --no-tty
을 추가하여 이 단계를 건너뜁니다. 예:
<etl>
<preProcessCommand command="gpg --decrypt --no-tty --recipient <b></b><b></b> "$fileName"" label="Decryption GPG" name="GPGdecrypt"/>
<postProcessCommand command="gpg --encrypt --no-tty --recipient <b></b><b>* "$fileName"" label="Encryption GPG" name="GPGencrypt" suffix="gpg"/>
</etl>
원인
이 오류는 시스템이 로 출력하려고 하기 때문에 발생합니다. /dev/tty
: 파일 시스템에 없거나 neolane 사용자에게 이 디렉터리에 대한 권한이 없습니다.
또한, preProcessCommand
의 암호 여부를 확인합니다. 암호가 누락된 경우에도 이 오류가 발생할 수 있습니다.
<etl>
<preProcessCommand name="GPGdecrypt" label ="Decryption GPG" command="gpg --decrypt --passphrase passphrase --recipient CampaignOperations@adobe.com "$fileName""/>
<postProcessCommand name="GPGencrypt" label ="Encryption GPG" command="gpg --encrypt --recipient comp_ops@xxx.com.au "$fileName"" suffix="gpg"/>
</etl>
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f