Page 1 of 1

Decrypting issue with GPG

Posted: Thu Jul 12, 2012 7:06 pm
by suresh.narasimha
Hi

I'm facing some issues with decrypting files using GPG4Win 2.1.0

I have an execute command activity that triggers a windows batch file in server.

some error messages listed below,

************************

Decryptnavtech..JobControl (@Execute_Command_0): Executed: E:\Data\Engineering-Test\Scripts\gpgdecrypt.bat
Reply=2
Output from command ====>
gpg: encrypted with 2048-bit RSA key, ID B66BF0A9, created 2011-07-11
"Navtech (Navtech Encryption) <qantas.ifsmetrics@tcs.com>"
gpg: Fatal: zlib inflate problem: invalid code -- missing end-of-block

************************

Decryptnavtech..JobControl (@Execute_Command_0): Executed: E:\Data\Engineering-Test\Scripts\gpgdecrypt.bat
Reply=2
Output from command ====>
gpg: [don't know]: invalid packet (ctb=70)

************************

I don't have any clue why this error is thrown. So, i have replicated the same solution in my desktop and I was able to decrypt successfully.

The script is a straight forward one ,

**************** gpg --batch --passphrase-file E:\Data\Engineering-Test\Scripts\passphrase.txt --output E:\Data\Engineering-Test\Scripts\NJS197212YPPHA.xml --decrypt E:\Data\Engineering-Test\Scripts\data\NJS197212YPPHA.gpg ****************

My desktop is a Windows 7 Professional.

DataStage server is Windows 2000 NT Server Edition.

Since, this is a freeware these is no product support.

Please advise what can be the issue.

Thanks
Suresh

Posted: Thu Jul 12, 2012 9:02 pm
by ray.wurlod
Error code 2 usually means "file not found". Unfortunately your error message provides no clue as to which file was not found. Is PATH the same when you're executing DataStage as when you're executing from the operating system? How about the shared libaray search list LIBPATH?

Posted: Fri Jul 13, 2012 12:38 am
by ArndW
Is Drive "E" a mounted one? Note that paths are always relative the machine that the DataStage server is installed on, not the client; so perhaps as seen from the server your file isn't on "E\".

n.B. there is no "freeware" version of DataStage that I know of :roll:

Posted: Fri Jul 13, 2012 7:05 am
by chulett
I'm assuming that the freeware being mentioned is GPG4Win. And you can certainly get support for it, it's just all of the peer-to-peer kind via their own forums.

Posted: Tue Jul 17, 2012 1:17 am
by suresh.narasimha
Thanks All for your responses.

I'm not sure about the resolution of this issue. It was resolved automatically.
Now I'm able to decrypt all files. I didn't do any changes at all.

@Chulett : I have posted the issue in GPG forum, but it's already a month now, I didn't receive any suggestions.

Have a great day!!