Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2000-10-26
08:20 • Closed ticket [218335ffff]: file delete doesn't work & issues error ... artifact: 0bd8d0ca72 user: welch
00:56 • New ticket [218335ffff]. artifact: 31ce0bc204 user: nobody

file delete doesn't work & issues error

Closed / Fixed218335ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:22
OriginalBugID: 3953 Bug
Version: 8.2.2
SubmitDate: '1999-12-28'
LastModified: '2000-03-30'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 95
OSVersion: Don't know the rev. of w95 we're using
Machine: Compaq deskpro, P2-400, 128 Mb RAM, 6.4Gb disk
FixedDate: '2000-10-25'
ClosedDate: '2000-03-30'


Name: Howard Pierce

Comments:
I've dutifully searched the web and Tcl/Tk FAQs for this error, but it seems not to have occurred before.

ReproducibleScript:
file exists K:/techcom/maps/database/en/locks/944768159AB
1

file delete K:/techcom/maps/database/en/locks/944768159AB
no such file or directory. (error returned by "catch")

file exists K:/techcom/maps/database/en/locks/944768159AB
1

ObservedBehavior:
The file is not removed and it should be.  Also, page 98 of "Practical Programming in Tcl and Tk" (second edition) states, "It is NOT an error if the files do not exist."

No stack trace.

Thinking this might be some timing/network issue, I put in a while loop that counted up to 50, sleeping one second each time and then trying again to delete the file.  No dice.  The file is on a server (NT probably) and made available to the PC client via a Novell network.

DesiredBehavior:
The file should be deleted.  The error message directly contradicts the (correct) results of the "file exists" command immediately preceding.

Some nasty workarounds I can think of are sending email to the admin account on the server which could have an email filter (triggered by subject line) that would invoke a process on the server to delete the file.  Otherwise, the client script could zero out the file and then a daemon on the server could "watch" that directory for zero-length files and remove them.



I'm having problems (read: can't) reproducing this on Windows.
This seems to be some sort of magical lock file, that some
server might be doing magic with.  Tcl, like other languages,
can get fooled by odd (file) servers that do non-standard things
with files.  Something as simple as Samba causes confusion about
file permissions (not something that can be worked around), but
I've not seen the above before.  It may help to know really what
kind of server is on the other end, and what magic may be
occuring on the "lock" files (some systems have flock'ing that
isn't really file-based, but spoofs it). 
-- 01/23/2000 hobbs
The user notes that this is on a special server, where they've
seen other weirdness.  At this point, without reproducability,
this is getting closed. 
-- 03/30/2000 hobbs
welch Closed ticket [218335ffff]. [History diff]2000-10-26 08:20:07
Log in (anonymous is fine) to add a comment.