Forum Discussion

pkumar0208's avatar
pkumar0208
Regular Visitor
1 year ago
Solved

Decryption failure in fabric notebook. Error: potential problem: ERROR: pkdecrypt_failed 67108876

In our fabric environment, we use pyspark(Python) to decrypt the pgp files that is placed in fabric lakehouse. When we try to decrypt the files from fabric notebook via below command, we are unable to decypt the pgp file that is encrypted.


with open(pgp_file_path, 'rb') as pgp_file:
    decrypted_data = gpg.decrypt_file(pgp_file, passphrase=passphrase, output=output_file_path )

Error Message:
potential problem: ERROR: pkdecrypt_failed 67108876
gpg returned a non-zero error code: 2

Note:
1. We are able to decrypt the file manually in windows using pgp tool
2. We are able to decrypt the pgp file when the same code is ran in our local machine
3. We are using python-gnupg version of 0.5.1 tried upgrading to 0.5.3 version still same error

Any suggestion or thoughts on this?
  • Per microsoft, issue is resolved in below runtime and configuration. 

     

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi pkumar0208 ,

     

    decrypted_data = gpg.decrypt_file(pgp_file, passphrase=passphrase, output=output_file_path )
    How do you initialize gpg in the pyspark environment of fabric, I'm stuck here.
    If anyone else would like to suggest something, please feel free to do so here.

    Best Regards,
    Gao

    Community Support Team
    • pkumar0208's avatar
      pkumar0208
      Regular Visitor

      Hi Anonymous  - Thanks for the response. In our fabric/power bi workspace under worskpace spark setting, we had uploaded the 0.5.1 gnupg package. 

       

       

       

       

  • pkumar0208's avatar
    pkumar0208
    Regular Visitor

    Per microsoft, issue is resolved in below runtime and configuration.