Now a CFFTP problem...

2004-06-27 Thread Michael Kear
I'm not having a great day today!   (sigh)   Now I cant see why the
following code would work ok on my dev server, but when I upload it to the
production server it doesn't work.   What happens is it executes the CFFTP
Open command ok, but when it executes the next command I get the error
message: 

{quote]

An exception occurred when performing the FTP CHANGEDIR operation. 

[/quote]



Here's the code:   It's copied directly from my dev server to the production
server and I cant see why it would work in one but not the other.  (I've
checked, and CFFTP isn't disabled on the production server.  The only
difference I can see is that my dev server is CFMX6.1 standard, and the
production is MX6.1 Enterprise Edition.)   If I take out the CHANGEDIR code,
and go straight to the PUTFILE code, the same error occurs at the same
point, so it's not a syntax error in the CHANGEDIR tag.   Any ideas?

[CODE]



server="servername"  

username="username" 

password="password" 

stoponerror="Yes" 

port="21" 

   connection="hawkradio">

   

   .   Connection opened  .   

   



directory="/public_html" 

connection="hawkradio">  

   .   uploading the file .





   stoponerror="Yes"

   localfile="#request.absolutepath#\guide.htm"

   remotefile="guide.htm"

   transfermode="ASCII"

   connection="hawkradio"> 

   .   Done .





   connection="hawkradio"

   stoponerror = "Yes">

[/CODE]

Cheers

Mike Kear

AFP Webworks

Windsor, NSW, Australia

http://afpwebworks.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Now a CFFTP problem...

2004-06-27 Thread sicksick monkey
Mike,
  Not sure if you have tried this or not, but if your code seems to
work on your development server and not your production server, I
would first check the permission of the username you are trying to
connect with on your production ftp server.  Make sure the username
and password you are using have valid accounts on both the development
and production ftp servers.

-Dave

- Original Message -
From: Michael Kear <[EMAIL PROTECTED]>
Date: Sun, 27 Jun 2004 17:06:34 +1000
Subject: Now a CFFTP problem... 
To: CF-Talk <[EMAIL PROTECTED]>

I'm not having a great day today!   (sigh)   Now I cant see why the

following code would work ok on my dev server, but when I upload it to the

production server it doesn't work.   What happens is it executes the CFFTP

Open command ok, but when it executes the next command I get the error

message: 

{quote]

An exception occurred when performing the FTP CHANGEDIR operation. 

[/quote]



Here's the code:   It's copied directly from my dev server to the production

server and I cant see why it would work in one but not the other.  (I've

checked, and CFFTP isn't disabled on the production server.  The only

difference I can see is that my dev server is CFMX6.1 standard, and the

production is MX6.1 Enterprise Edition.)   If I take out the CHANGEDIR code,

and go straight to the PUTFILE code, the same error occurs at the same

point, so it's not a syntax error in the CHANGEDIR tag.   Any ideas?

[CODE]



server="servername"  

username="username" 

password="password" 

stoponerror="Yes" 

port="21" 

   connection="hawkradio">

   

   .   Connection opened  .   

   



directory="/public_html" 

connection="hawkradio">  

   .   uploading the file .





   stoponerror="Yes"

   localfile="#request.absolutepath#\guide.htm"

   remotefile="guide.htm"

   transfermode="ASCII"

   connection="hawkradio"> 

   .   Done .





   connection="hawkradio"

   stoponerror = "Yes">

[/CODE]

Cheers

Mike Kear

AFP Webworks

Windsor, NSW, Australia

http://afpwebworks.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Now a CFFTP problem...

2004-06-27 Thread Michael Kear
Thanks Dave,  I thought about that too.  Since it's the production server
that is trying unsuccessfully to ftp to a third server,   its ColdFusion
itself that has to have ftp permissions to ftp OUT of the production server.


How do I make sure that ColdFusion has permissions to ftp outwards?  (I
can't ftp into my own system because I haven't got a working inbound FTP
through my own firewall).

Cheers

Mike Kear

Windsor, NSW, Australia

AFP Webworks

http://afpwebworks.com



  _  

From: sicksick monkey [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 27 June 2004 10:47 PM
To: CF-Talk
Subject: Re: Now a CFFTP problem...

Mike,
  Not sure if you have tried this or not, but if your code seems to
work on your development server and not your production server, I
would first check the permission of the username you are trying to
connect with on your production ftp server.  Make sure the username
and password you are using have valid accounts on both the development
and production ftp servers.

-Dave
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Now a CFFTP problem...

2004-06-27 Thread sicksick monkey
Mike,
  To answer your question, the only way I can think of checking to see
if you CF Server can connect to a third party server, is to physically
get on the ftp server and check the user permissions.

If I were you though, I would do the following:

1)  Separate your code into three different sections.  It appearrs as
if you want to perform 3 different actions to the ftp server; so I
would separate them as follows.  (1)open a connection to the server,
(2) change to diff dir than home dir & (3) upload a file.

2) First test to see if you can connect to the FTP server by just
"opening a connection".  If an error does not occur here, then you
know that you are at least able to connect to the ftp server.

3) If you are able to successfully connect to the ftp server without
error, I would then simply test the other functions.  By doing this,
you can figure out exactly what permissions your cfserver user/perm.
have.  (ie (1)see if you can connect and then upload a file to your
home directory;  (2)see if you can connect, upload file to home
directory and then try to change directory)

Hope this helps.

-Dave

- Original Message -
From: Michael Kear <[EMAIL PROTECTED]>
Date: Sun, 27 Jun 2004 23:10:52 +1000
Subject: RE: Now a CFFTP problem...
To: CF-Talk <[EMAIL PROTECTED]>

Thanks Dave,  I thought about that too.  Since it's the production server

that is trying unsuccessfully to ftp to a third server,   its ColdFusion

itself that has to have ftp permissions to ftp OUT of the production server.



How do I make sure that ColdFusion has permissions to ftp outwards?  (I

can't ftp into my own system because I haven't got a working inbound FTP

through my own firewall).

Cheers

Mike Kear

Windsor, NSW, Australia

AFP Webworks

http://afpwebworks.com



  _  

From: sicksick monkey [mailto:[EMAIL PROTECTED] 

Sent: Sunday, 27 June 2004 10:47 PM

To: CF-Talk

Subject: Re: Now a CFFTP problem...


Mike,

  Not sure if you have tried this or not, but if your code seems to

work on your development server and not your production server, I

would first check the permission of the username you are trying to

connect with on your production ftp server.  Make sure the username

and password you are using have valid accounts on both the development

and production ftp servers.

-Dave
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]