not valid remote file error from FTP Stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
UPS
Premium Member
Premium Member
Posts: 56
Joined: Tue Oct 10, 2006 12:18 pm
Location: New Jersey

not valid remote file error from FTP Stage

Post by UPS »

I am attempting to pull a file from HP Unix Box to DS Linux Box. Has anyone come across this error while using FTP Enterprise Stage.

FTP_Enterprise_X: uri : ftp://123.4.567.89/mypath/file.dat is not valid remote file

I can sign into linux and ftp IP using get the file with no issue.

I have scanned the forums and have had no luck.

Any help would be aprreciated,
Thanks -
johna
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Lose the ftp:// prefix.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
UPS
Premium Member
Premium Member
Posts: 56
Joined: Tue Oct 10, 2006 12:18 pm
Location: New Jersey

Re: not valid remote file error from FTP Stage

Post by UPS »

ray.wurlod

I did as you suggested and got the following:
FTP_Enterprise_X: uri is having invalid syntax. uri : 123.4.56.789/mypath/file.dat

Documentation (FTP Enterprise Stage User Guide) seems to indicate that the ftp:// prefix needs to be there, unless I am reading it incorrectly :?: .

regards-
johna
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You need to put the ftp:// back in to complete the uri for the PX ftp stage. I had issues in the past as well, and recall that I got it working by testing it out by FTP'ing a local file on the same machine. Could you try that, copying the file from the remote location to your local server and testing the PX ftp stage by accessing that local copy?
UPS
Premium Member
Premium Member
Posts: 56
Joined: Tue Oct 10, 2006 12:18 pm
Location: New Jersey

Post by UPS »

ArndW,
Will give it a try. I will let you know.

Thanks -
johna
UPS
Premium Member
Premium Member
Posts: 56
Joined: Tue Oct 10, 2006 12:18 pm
Location: New Jersey

not valid remote file error from FTP Stage

Post by UPS »

I finally got the answer.
What I did not realize that in UNIX you need to navigate back to root in order to locate a different directory other than the home it lands.

ftp://hostname/../../mypath/file.dat
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's true in DOS as well - at least back to ftproot. You gave us no inkling in your original post that the file you wanted was not in a subdirectory of the ftproot directory.

Please mark this thread as Resolved.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply