[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] Problem: writing to shared drive on XP



Dear Condor gurus,

I have just successfully installed Condor on my 2 XP machines. I am able
to distribute some very simple programs using condor. Unfortunatley, it
seems that condor has difficulty executing programs that write to shared
drive.

I wrote this simple test program, which prints out the hostname to a
file.


#include <stdio.h>
#include <Winsock2.h>

void print(char* arg) {
	WORD wVersionRequested;
	WSADATA wsaData;
	wVersionRequested = MAKEWORD( 2, 2 ); 
	WSAStartup( wVersionRequested, &wsaData );

	char hostname[512];
	int err = gethostname(hostname, 512);
	err = WSAGetLastError();

	char output[512];
	sprintf(output, "\\\\SHAREDDRIVE\\Public\\output_%s_%s.txt",
hostname, arg); //don't work
	//sprintf(output, "C:\\Public\\output_%s_%s.txt", hostname,
arg); //OK
	//sprintf(output, "output_%s_%s.txt", hostname, arg); //OK

	FILE* fp = fopen(output, "w");
	fprintf(fp, "hostname: %s\n", hostname);
	fclose(fp);
}

int
main(int argc, char** argv) {
	print(argv[1]);
}


Among the 3 sprintf statements, the last 2 ones work wihtout problem
(writing to a local drive). However, when I want to write to a shared
drive named SHAREDDRIVE\Public (SHAREDDRIVE is the machine name in a
LAN), it fails very often.

To be exact, here is my configuration file:


Executable = testCondor2.exe
Universe = vanilla
Log= testCondor2.log
error = testCondor2.error
output = testCondor2.output

Arguments = 1
Queue 

Arguments = 2
Queue 

Arguments = 3
Queue 

Arguments = 4
Queue 

Arguments = 5
Queue 

Arguments = 6
Queue 

Arguments = 7
Queue 

Arguments = 8
Queue 

Arguments = 9
Queue 

Arguments = 10
Queue 


It is able to produce output file for the first 6 jobs. Then last 4
expected output files are missing. I got an error message poped up
saying assertion failed for fprintf. (My executable is compiled in debug
mode with MSVC.net 2003. So, a debug diaglox box pops up on error.) By
the way, if I limit the number of tasks to 6 in the config file, condor
always succeeds.

In a nut shell, my little task writing to a shared drive works some
times but not always when using condor. (When I ran the task outside
condor, there is no problem at all, regardless of how many times I ran
it.) Incidentally, the error file from condor reports nothing.


My configuration:

EUP WinXP on Intel Xeon CPU 2.8GHz. 3GB of RAM. XP professional version
2002, SP 1.
I have enabled "Full Control" for "Everyone" for the shared
drive/folder.
I am running Condor installed from condor-6.6.10-winnt50-x86.exe.

Can someone shed some light for a poor soul please?

Thanks very much,
Haksun


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.