Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFDirectory stopped working in Scheduled Task

Status
Not open for further replies.

kjmurphy711

Programmer
Aug 23, 2005
5
US
We recently migrated from CFMX 7.0.0/SQL2000/Windows2000 to CFMX 7.0.2/SQL2005/Windows2003x64. Just about everything is working fine, except for cfdirectory references in one scheduled tasks.

Basically we are cataloging files in certain folders to be able to search on them faster (40K+ files in a couple folders). The code I am running is:

Code:
<cfdirectory directory="\\server-name\sharename$\Images" action="list" name="DirList">
<cfoutput query="DirList">
	<cfquery datasource="datasourcename">
		INSERT INTO [File Listing Table] ( Filename, DateLastModified, Directory, FileCategory )
		VALUES ( '#Name#', #DateLastModified#, '#Directory#', 'Images')
	</cfquery>
</cfoutput>

The task doesn't seem to get past the cfdirectory. When I force the task through CF Administrator, it tells me it could be one of the following errors:

- The URL is a redirection URL.
- The URL is protected by IIS NT Challenge/Response or Apache .htaccess password. The Username and Password text fields for editing a scheduled task are intended to support Basic Authentication only.
- The Domain Name lookup failed. Try using the IP address of the domain whenever possible.
- The URL is an SSL site, but the SSL port was specified incorrectly.
- The Web site is not responding.
- The directory specified for published results does not exist
---
When I try to run this outside CF Administrator, I get a 500 error. My thought is that this is a permissions issue since I think the super-locked-down IE on the x64 server is preventing access to the network share. I have multiple cfdirectory statements on this task, some reference the server itself, while others hit other servers on the network.

Any thoughts or help? Thanks in advance.
 
Set up a real share, not an administrative share, give permission to the CF service account, and see what happens.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Not NULL-terminated yet.
 
I created a share \\server-name\sharename\ on top of the other share, gave permissions to the share and get the same thing...
 
Can you reach the share from the server desktop? What entries are in the Security event log that correspond with your attempt to run the template?

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Not NULL-terminated yet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top