Decrypting issue with GPG

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
suresh.narasimha
Premium Member
Premium Member
Posts: 81
Joined: Mon Nov 21, 2005 4:17 am
Location: Sydney, Australia
Contact:

Decrypting issue with GPG

Post 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
SURESH NARASIMHA
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
suresh.narasimha
Premium Member
Premium Member
Posts: 81
Joined: Mon Nov 21, 2005 4:17 am
Location: Sydney, Australia
Contact:

Post 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!!
SURESH NARASIMHA
Post Reply