novell share can't find file after renaming it

Bug #338220 reported by Metin Akat
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned

Bug Description

bzr version is 1.12

S:\Bespoke\Cashless Vending\Cashless Vending\Database\trunk>bzr add
adding createdatabase_dump.sql
bzr: ERROR: No such file: u'S:/Bespoke/Cashless Vending/Cashless Vending/Databas
e/trunk/.bzr/checkout/lock/releasing.n0oxup06wmyexxs1agxg.tmp/info': [Error 3] T
he system cannot find the path specified: u'S:/Bespoke/Cashless Vending/Cashless
 Vending/Database/trunk/.bzr/checkout/lock/releasing.n0oxup06wmyexxs1agxg.tmp/in
fo'

bzr log says:

Thu 2009-03-05 15:07:11 +0200
0.219 bzr arguments: [u'add']
0.219 looking for plugins in C:/Documents and Settings/MetinAkat/Application Data/bazaar/2.0/plugins
0.219 looking for plugins in C:/Program Files/Bazaar/plugins
0.360 encoding stdout as sys.stdout encoding 'cp866'
4.907 opening working tree 'S:/Bespoke/Cashless Vending/Cashless Vending/Database/trunk'
11.172 skip control directory '.bzr'
13.391 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 896, in run_bzr_catch_errors
  File "bzrlib\commands.pyo", line 842, in run_bzr
  File "bzrlib\commands.pyo", line 542, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 531, in run
  File "bzrlib\mutabletree.pyo", line 54, in tree_write_locked
  File "bzrlib\workingtree_4.pyo", line 1162, in unlock
  File "bzrlib\lockable_files.pyo", line 290, in unlock
  File "bzrlib\lockdir.pyo", line 312, in unlock
  File "bzrlib\transport\local.pyo", line 426, in delete
  File "bzrlib\transport\__init__.pyo", line 307, in _translate_error
NoSuchFile: No such file: u'S:/Bespoke/Cashless Vending/Cashless Vending/Database/trunk/.bzr/checkout/lock/releasing.rzuaxbk0mmsp39hiqx3k.tmp/info': [Error 3] The system cannot find the path specified: u'S:/Bespoke/Cashless Vending/Cashless Vending/Database/trunk/.bzr/checkout/lock/releasing.rzuaxbk0mmsp39hiqx3k.tmp/info'

Windows Explorer can't see anything in the lock directory (even when "show hidden files" is on)
When using dir from a dos prompt, the mentioned file is there... Probably this isn't a bazaar issue at all.

here is the IRC conversation:

<loxs> http://dpaste.com/6962/ --- this happens when I try to use bzr on a network drive. Everything is fine when I use it on a local drive. Any ideas?
<mneptok> loxs: sorry, haven't used Windows in >10 years
* gabriele has quit ("Leaving.")
<loxs> me too... :(
<mneptok> not that it's a Windows issue per se, but backslashes and drive letters make me run away in fright. :)
<spiv> loxs: not sure, but what sort of network drive?
* guilhembi has quit (Read error: 110 (Connection timed out))
* guilhembi (n=guilhemb@nat/sun/x-c6a90657465ba773) has joined #bzr
<loxs> spiv, it's a novell share
<spiv> loxs: it looks like the problem is something like a network drive where "mkdir mydir; touch mydir/myfile; mv mydir foo; cat foo/myfile" isn't reliable
<loxs> the strange thing is that it worked till yesterday (before reinstall of the system)
<spiv> loxs: i.e. bzr has renamed a lock directory, then gone to read the info file out of that directory (to make sure it really is the lock this process owns), and suddenly the info file is gone.
<spiv> loxs: it's quite likely to be an intermittent issue if I'm right; i.e. if you try again a couple of times it might work.
<spiv> loxs: also
<spiv> loxs: it would be interesting to know if S:/Bespoke/Cashless Vending/Cashless
<spiv> Vending/Database/trunk/.bzr/checkout/lock/releasing.n0oxup06wmyexxs1agxg.tmp/in
<spiv> fo
<spiv> still exists.
<loxs> spiv, nothing in the lock directory
<spiv> loxs: hmm, interesting!
<spiv> loxs: I don't know what could cause that. It's possible that it's due to wacky network filesystem semantics, but I struggle to imagine plausible network drive behaviour that would cause that.
<loxs> you are probably right... as it used to work yesterday
<spiv> loxs: a bug report would be appreciated, though.
<loxs> spiv, what kind of information should I supply for this?
<spiv> loxs: the error message, the traceback from the bzr log file (see 'bzr version' for its location), the fact its a network share, and that the info file isn't there when you look manually
<spiv> loxs: oh, and of course that it's *novell* share :)
<loxs> ok, I'll do it now
<spiv> loxs: plus anything else you think interesting, but we can always ask for more info if necessary.
<spiv> loxs: feel free to just paste this IRC conversation into the bug report if that makes your life easier ;)
<loxs> thanks :)
<loxs> hm, spiv... in the log file... before the error you saw, there it says that it's some kind of translate error File "bzrlib\transport\__init__.pyo, line 307, in _translate_error
<loxs> yesterday, the locales of my workstation were different
<spiv> loxs: that's not related to locales
<spiv> loxs: that's code for turning errors accessing files and directories from platform-specific into bzr-internal error codes.

Metin Akat (akat-metin)
description: updated
Revision history for this message
Andrew Bennetts (spiv) wrote :

So, the info file exists, but bzr got a NoSuchFile error when it tried to read it just after renaming the containing directory.

It sounds likely that the Novell share has weird behaviour when reading a file just after renaming a directory, rather than this being a bzr fault. A bit of Googling about Novell shares isn't turning up any relevant info, though.

Revision history for this message
Metin Akat (akat-metin) wrote :

Do you think it's possible that this is because of the Novell share being too slow (several thousand km away)?

Revision history for this message
Martin Pool (mbp) wrote :

Yes, it does seem quite possible that there is a cache so that we don't see the rename straight away. In that case we could poll for a while waiting for it to complete, but if the filesystem is inconsistent probably many bzr things will raise strange errors.

So I'm going to close this as just being a Novell bug, but if somebody has a specific idea we can reopen it.

Changed in bzr:
status: New → Invalid
summary: - bzr fails on a novell share on windows
+ novell share can't find file after renaming it
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.