gpg: failed to create temporary file

David Shaw dshaw at jabberwocky.com
Tue Feb 3 22:58:23 CET 2009


On Tue, Feb 03, 2009 at 08:28:49PM +0000, lee_andre at bellsouth.net wrote:
> Good Afternoon,
> 
> I am currently trying to decrypt a file through an automated process that is called by a webservice called BPEL.  Now in my development environment it works great but in my test enviroment I receive the following errors:
> 
> Error string = gpg: failed to create temporary file `~/.gnupg/.#lk0x552ac57230.tst-dataexch.19415': No such file or directory 
> 
> or
> 
> Error string = gpg: failed to create temporary file `~/.gnupg/.#lk0x552ac57230.tst-dataexch.19127': No such file or directory gpg: fatal: ~/.gnupg: can't create directory: No such file or directory secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768 
> 
> My system admin and I did the following troublshooting steps:
> The application runs as the user oracle and in the oracle profile there /.gnupg does exist in its home directory
> We open up permissions on the /.gnupg directory to 777 but received the same issues.
> We then found that my dev and test environment were different, Dev is running red hat 5.0 and test red hat  4.7, so the gpg versions were different.  On the dev GPG version is 1.4.5 and the test is 1.2.6.
> We've upgraded the version in the test environment to 1.4.5 the same as Dev.  But I produce the same results.
> I am able to decrypt the file manually by typing in the command but not throught the application.
> We also added GNUPGHOME in the oracle user bash profile but still no luck.  

What is GNUPGHOME set to?  Is it fully qualified or is there a ~ in
there?

David



More information about the Gnupg-users mailing list