Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-18T14:56:51Z
Hello,

I had 2 PGP decryption tasks in 5.5.5 that were working correctly but once i installed 5.5.9 i am getting the two following errors:

PGP File decryption error: Could not find a part of the path '\\10.xxx.xxx.xx\D$\ASPData\AAA\Files\positions\Me\TBF\CPT5443T.aaaPSNFL.asc.10.05.18_02.37.txt\CPT5443T.aaaPSNFL.asc.10.05.18_02.37.txt\CPT5443T.aaaPSNFL.asc.10.05.18_02.37.txt'.

and

PGP File decryption error: Unexpected end of data



The first error is weird cause my output path is:

\\10.xxx.xxx.xx\D$\ASPData\AAA\Files\positions\Me\TBF\

With a Destination file mask of {USERVAR(AAAMEPOSFileName)}.txt

and the value of that variable is:

CPT5443T.aaaPSNFL.asc.10.05.18_02.37

So VC is looking like it is trying to append the variable 3 times when finding the directory.


The second error i am not sure what might be going on, I manually decrypt the file using a different program and the same key and it decrypts fine. Looking in the data there are no special characters other than a ~ but it has always been like this.

let me know what you think.
Sponsor
Forum information
ErikC
2010-05-18T15:04:20Z
JRaf wrote:

I had 2 PGP decryption tasks in 5.5.5 that were working correctly but once i installed 5.9.9 i am getting the two following errors:



5.5.9 right, not 5.9.9

Please change the title.

Regards
Erik

Uses Visualcron since 2006.
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-18T15:11:37Z
ErikC wrote:



5.5.9 right, not 5.9.9




Correct, sorry about that. changed it
Support
2010-05-18T23:12:34Z
The reason for the first error, is most probably, that you need a Credential - or that the Credential that you use for the path does not have the valid access rights - or wrong password is used.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-18T23:51:22Z
Support wrote:

The reason for the first error, is most probably, that you need a Credential - or that the Credential that you use for the path does not have the valid access rights - or wrong password is used.




i tried to reenter the passphrase for the pgp key and still nothing. As far as the credentials they are set and they are currently in use with many other jobs that are not failing right now so it doesn't seem that would be the cause...
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-18T23:58:59Z
also this job worked fine up until we installed 5.5.9 and we didn't change any settings when this started to break.

now we did jump from 5.5.5 to 5.5.9 so i could have been any of the fixes between the 2 i guess...
Support
2010-05-19T12:40:05Z
Let's solve the problem. I guess, like in my previous post, that this is something about a missing or wrong password in a Credential.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-19T13:45:53Z
Support wrote:

Let's solve the problem. I guess, like in my previous post, that this is something about a missing or wrong password in a Credential.



Ok, I have gone in and checked the credential's used by the task that is failing AND all of the creds used by the other taskes in the job. I have reset and entered the passwords and made sure all locations are accessable by this credential.

I have again reset the GPG key tested the passphase and successfully decrypted the file manually outside of VC. Loaded the Private and Public key and reentered the passphrase for this task and i am still getting the same error on the PGP decrypt task:

PGP File decryption error: Could not find a part of the path '\\xx.xxx.xxx.xx\D$\ASPData\AAA\Files\Transactions\ME\TBI\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt'.


For fun i decided to create the directory it was looking for:

\\xx.xxx.xxx.xx\D$\ASPData\AAA\Files\Transactions\ME\TBI\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt\

and once i did this the job completed successfully however from the screenshot you will see i do NOT have this file name in the path only in the filemask.

Something in the PGP job is trying to add the variable file mask to the path as a folder before adding the destination file mask.

let me know if you need anything else.
File Attachment(s):
Screenshot for VC.bmp (1,059kb) downloaded 58 time(s).
Support
2010-05-19T13:47:33Z
The keys have nothing to do with this problem.

1. What exactly is wrong with this path? '\\xx.xxx.xxx.xx\D$\ASPData\AAA\Files\Transactions\ME\TBI\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt'
2. What is the value of the USERVARIABLE?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-19T14:16:55Z
The problem with the path is it should only be:

'\\xx.xxx.xxx.xx\D$\ASPData\AAA\Files\Transactions\ME\TBI\'

With the file being the value of the user variable:

'aaa_2010-5-18_Trades_DVP.txt2.gpg'

with an added extension of

.txt



Support
2010-05-19T14:51:46Z
What if you remove the ending slash in the custom folder text box?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2010-05-19T15:04:14Z
For testing, try typing the the name manually instead of using the Variable.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-19T15:24:06Z
ok! now we are getting somewhere!

if i remove the "/" from the end of the custom folder path and test with the file name manually i get the second error:

PGP File decryption error: Unexpected end of data

At this point at least it shows the two are connected in way.

just for the forums knowledge my current work around has been to

Check to see if the directory the PGP task is looking for (custom path\filename\) exists
if not create the folder
do the decryption (which works and places it into this new path)
Rename the folder (as Windows won't let you copy a file into a path if a folder exists with the same name)
Copy the file to the correct custom path
delete the temp folder.

I have 20 jobs doing decryption so i am going through the process of adding these taskes to each, but if there is a better solution let me know cause it is tedious!!!!
Support
2010-05-19T15:45:03Z
Which was the problem? I suspect that the Variable contains some illegal characters or other dirt.

What if you test this on a local folder instead, just to simplify the test?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-19T15:53:00Z
not sure the actual problem at this point,

but the error message changed from
PGP File decryption error: Could not find a part of the path '\\xx.xxx.xxx.xx\D$\ASPData\AAA\Files\Transactions\ME\TBI\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt'.


to

PGP File decryption error: Unexpected end of data

When i removed the "/" from the custom path.

Then when i took out the variable and replaced it with the file name manually i got the same:

PGP File decryption error: Unexpected end of data

I also tried using the "same folder as source" option and also got:

PGP File decryption error: Unexpected end of data

Seems the problem is in the PGP task and how it is looking at the destination path and filemask
Support
2010-05-19T15:54:42Z
Please test with a local folder just to rule out anything else. Just copy the encrypted file to a local folder then decrypt it to another local folder.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
JRaf
  •  JRaf
  • No customer Topic Starter
2010-05-19T16:08:22Z
yup. tested on the c local drive, got the same error with the "\" in teh custom path:

PGP File decryption error: Could not find a part of the path 'C:\Testing\Done\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt'.

this time however when i attempted to remove the "\" i got the same error:

PGP File decryption error: Could not find a part of the path 'C:\Testing\Done\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt'.

instead of the previous one:

PGP File decryption error: Unexpected end of data

and when using the source path instead i got:

PGP File decryption error: Could not find a part of the path 'C:\Testing\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt\aaa_2010-5-18_Trades_DVP.txt2.gpg.txt'.

what this means i have no clue other than thinking that since it is an UNC path it doesn't automatically attempt to put the "\" in when it is missing?

either way, getting the same error with the path even on local...
Support
2010-05-19T16:11:04Z
This is just too strange but probably something very simple. I suggest we do some screen sharing over Yuuguu. Please download Yuuguu and add user visualcron@gmail.com
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top