Symantec Encryption Product Community

 View Only
  • 1.  Error 3124

    Posted Mar 18, 2013 12:28 PM

    We're getting a "PGP Encryption failed. Exit code was 3124.(3124:permission denied)"  We proceed to perform encryption of a text file, but when doing the trace shows Error 3124 apparently after encrypt data, the folder where the file is hosted all permits and file also. Will the folder permissions to PGP? Even what I did on the folder that has predefined but neither

    Can anybody help?

    Testing>pgp -e /home_usr/batchs/Jarias/RECCargaLotes/codigo.txt -r "XXXXXXX" --output /home_usr/batchs/Jarias/RECCargaLotes/codigo.txt.pgp -v

    pgp:encrypt (3157:current local time 2013-03-14T11:03:05-05:00)

    /home_usr/batchs/.pgp/pubring.pkr:open keyrings (1006:public keyring)

    /home_usr/batchs/.pgp/secring.skr:open keyrings (1007:private keyring)

    0x3F627E86:encrypt (1030:key added to recipient list)

    /home_usr/batchs/Jarias/RECCargaLotes/codigo.txt:encrypt (3048:data encrypted with cipher AES-128)

    /home_usr/batchs/Jarias/RECCargaLotes/codigo.txt:encrypt (3124:permission denied)

     

    Testing>pgp -e /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt -r "XXXXXXX" --output /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt.pgp -v

    pgp:encrypt (3157:current local time 2013-03-14T11:15:16-05:00)

    /home_usr/batchs/.pgp/pubring.pkr:open keyrings (1006:public keyring)

    /home_usr/batchs/.pgp/secring.skr:open keyrings (1007:private keyring)

    0x3F627E86:encrypt (1030:key added to recipient list)

    /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt:encrypt (3048:data encrypted with cipher AES-128)

    /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt:encrypt (3124:permission denied)

     

     Testing> pgp -e /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt -r "Recaudo XXXXXXX. <recaudo@endesacolombia.com.co" --output /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt.pgp -v

    pgp:encrypt (3157:current local time 2013-03-14T11:16:17-05:00)

    /home_usr/batchs/.pgp/pubring.pkr:open keyrings (1006:public keyring)

    /home_usr/batchs/.pgp/secring.skr:open keyrings (1007:private keyring)

    0xE8AA8F80:encrypt (1030:key added to recipient list)

    /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt:encrypt (3048:data encrypted with cipher AES-128)

    /home_usr/batchs/malfonso/pgp/PruebaCifrado6.txt:encrypt (3124:permission denied)



  • 2.  RE: Error 3124
    Best Answer

    Posted Mar 18, 2013 12:53 PM

    Hi,

    I'm sorry you are having this problem.

    PGP Command Line uses the current working directory as a "temporary directory" used to store the output of the in-progress encryption. Do you have write permission to this directory?  If not, try adding the option "--temp-dir" and point to another directory, e.g.

    "--temp-dir /home_usr/batchs/Jarias/RECCargaLotes"

    or whatever might be appropriate for each invocation.

    Regards,

     



  • 3.  RE: Error 3124

    Posted Aug 06, 2013 01:41 PM

    Hi,

    i am also seeing the same error. but this is not happening for all the pgp encription file. this intermitent it proceses one file and fails the another one. the user running this pgp commandline is an System admin in the VM server.

    Could you please help me in fixing this issue.


         There was an error encrypting the file.
    Error: pgp:encrypt (3157:current local time 2013-08-05T16:43:53-06:00)
    C:\Program Files\PGP Corporation\PGP Command Line\pubring.pkr:open keyrings (1006:public keyring)
    C:\Program Files\PGP Corporation\PGP Command Line\secring.skr:open keyrings (1007:private keyring)
    xxxx:encrypt (1030:key added to recipient list)
     unhandled event 1
     unhandled event 2
    done
    Encoding d:\FEPSPRCO.ALL.20130802.01.ULTI.TXT...
    d:\\FEPSPRCO.ALL.20130802.01.ULTI.TXT:encrypt (3048:data encrypted with cipher AES-128)
    Encode complete
    d:\FEPSPRCO.ALL.20130802.01.ULTI.TXT.pgp:encrypt (3087:could not remove file, No such file or directory)
    DisposeFile failed for overwrite with error: -11991
    Wiping d:\Payroll\Export\pgp-3880-0.tmp...
    Wipe done
    d:\pgp-3880-0.tmp:encrypt (3124:permission denied)
    d:\FEPSPRCO.ALL.20130802.01.ULTI.TXT:encrypt (3083:could not create output file d:\FEPSPRCO.ALL.20130802.01.ULTI.TXT.pgp)
     - 8/5/2013 4:43:54 PM



  • 4.  RE: Error 3124

    Posted Aug 06, 2013 01:58 PM

    This also looks like a file or directory permissions issue, that should be resolvable by changing file and directory permissions, setting a specific folder for temporary files, and/or setting a different folder for holding the output.

     



  • 5.  RE: Error 3124

    Posted Aug 06, 2013 05:02 PM

    The PGP command line used in the code is PGP.Exe --encrypt “fileFullPath” -–recipient "publicKeyName" --overwrite remove --temp-dir "filefullpath”