Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 70
Posts: 70   Pages: 7   [ Previous Page | 1 2 3 4 5 6 7 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 322209 times and has 69 replies Next Thread
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

We are definitely continuing to pursue this and sorry that we don't have anything to report in the way of a fix.

In case you are curious, the code involved is the following:

.......
// Request lock on the given file with given fd. Returns:
// 0 if we get lock
// PID (>0) if another process has lock
// -1 if error
//
int mylockf(int fd) {
struct flock fl;
fl.l_type=F_WRLCK;
fl.l_whence=SEEK_SET;
fl.l_start=0;
fl.l_len=0;
if (-1 != fcntl(fd, F_SETLK, &fl)) return 0;

// if lock failed, find out why
errno=0;
fcntl(fd, F_GETLK, &fl);
if (fl.l_pid>0) return fl.l_pid;
return -1;
}

.....
if ((pid=mylockf(fd))) {
if ( pid == -1 ) {
log_messages.printf(MSG_CRITICAL,
"handle_get_file_size(): [%s] error locking file: %s\n", file_name, strerror(errno)
);
}
// file locked by another file_upload_handler: try again later
//
close(fd);
log_messages.printf(MSG_CRITICAL,
"handle_get_file_size(): [%s] returning error\n", file_name
);
if ( pid == -1 ) {
log_messages.printf(MSG_CRITICAL,
"handle_get_file_size(): [%s] error locking file: %s\n", file_name, strerror(errno)
);
return return_error(ERR_TRANSIENT,
"[%s] error locking file", file_name
);
} else {
return return_error(ERR_TRANSIENT,
"[%s] locked by file_upload_handler PID=%d", file_name, pid
);
}
}
.....


I added some logging to get the value of errno after the fcntl(fd, F_SETLKW, &fl) call and it reported EAGAIN - "Resource temporarily unavailable"

We are trying to determine why some files are generating this message.

Apologies for the delays.
----------------------------------------
[Edit 1 times, last edit by knreed at Jul 7, 2010 7:46:48 PM]
[Jul 7, 2010 7:44:21 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

We believe that we have resolved this issue. Can someone who was experiencing the issue force a retry and let us know?

thanks,
Kevin
[Jul 7, 2010 8:23:17 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Mathilde2006
Senior Cruncher
Germany
Joined: Sep 30, 2006
Post Count: 269
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

We believe that we have resolved this issue. Can someone who was experiencing the issue force a retry and let us know?

thanks,
Kevin


Is working- upload completed.

Otherwise I would have to copy it on CD and send it with snail-mail to Harvard. wink
----------------------------------------

----------------------------------------
[Edit 1 times, last edit by Mathilde2006 at Jul 7, 2010 8:40:59 PM]
[Jul 7, 2010 8:34:39 PM]   Link   Report threatening or abusive post: please login first  Go to top 
X-Files 27
Senior Cruncher
Canada
Joined: May 21, 2007
Post Count: 391
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

We believe that we have resolved this issue. Can someone who was experiencing the issue force a retry and let us know?

thanks,
Kevin

Thats affirmative, uploads are go.
----------------------------------------

[Jul 7, 2010 8:46:25 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KWSN - A Shrubbery
Master Cruncher
Joined: Jan 8, 2006
Post Count: 1585
Status: Offline
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

Must have worked for me as well, that unit is no longer on my system. I assume it transferred automatically while I was away.

Edit: Found the result, it's uploaded and validated. I'd say we have a resolved.
----------------------------------------

Distributed computing volunteer since September 27, 2000
----------------------------------------
[Edit 1 times, last edit by KWSN - A Shrubbery at Jul 7, 2010 11:17:28 PM]
[Jul 7, 2010 11:12:42 PM]   Link   Report threatening or abusive post: please login first  Go to top 
WBT112
Cruncher
Joined: Sep 9, 2007
Post Count: 28
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

Uploaded and validated too :)

Seems to be resolved for most. I'll add a resolved to the thread title if nobody else complains 'til evening ;)
----------------------------------------

[Jul 8, 2010 6:33:24 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

It has been resolved for me as well. Should the thread be set to 'Resolved'?
[Jul 8, 2010 1:10:38 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

Uploaded and validated too :)

Seems to be resolved for most. I'll add a resolved to the thread title if nobody else complains 'til evening ;)



Me too... and according to my watch it's about 1am, zulu. :-)

Thanks, KNR!
[Jul 9, 2010 1:01:47 AM]   Link   Report threatening or abusive post: please login first  Go to top 
vlankhaar
Cruncher
Joined: Oct 31, 2008
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

It doesn't seem to work for me. I've got three or four machines that still have file transfers failing. It seems to upload some datasets properly; others it cannot seem to upload them. For instance, a computation that just finished transferred it's _4 file fine.

When it fails to upload, the log shows:
Fri 09 Jul 2010 08:50:20 AM PDT World Community Grid Started upload of E200101_172_A.19.C14H8N4S.75.set1d06_1_4
Fri 09 Jul 2010 08:50:26 AM PDT Project communication failed: attempting access to reference site
Fri 09 Jul 2010 08:50:26 AM PDT World Community Grid Temporarily failed upload of E200101_172_A.19.C14H8N4S.75.set1d06_1_4: HTTP error


I've took a sniff at what was happening to cause this error, and all I found was a TCP RST sent by the server (which, incidentally, Wireshark thinks is invalid -- it has a value in the ACK field, but the ACK flag is not set). The TCP connection was thus summarily ended. The server had ACKed a bunch of the segments, but partway through the <data> part of the transfer, instead of ACKing, it reset the connection.

I've got complete pcap traces of both a failed upload of an _4 file, and a successful up of _0, _1, _2, _3, _4, should that provide useful.
[Jul 9, 2010 4:09:53 PM]   Link   Report threatening or abusive post: please login first  Go to top 
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: "locked by file_upload_handler PID=-1" - can't upload

vlankhaar,

Please send your logs or traces you have on that to support@worldcommunitygrid.org. Please leave in IP addresses if you can.

Thanks,
-Uplinger
[Jul 9, 2010 4:41:41 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 70   Pages: 7   [ Previous Page | 1 2 3 4 5 6 7 ]
[ Jump to Last Post ]
Post new Thread