Cannot commit via SFTP - file is locked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I set up an SFTP server using WinSSHD (free version). My client is able to status/
For example, this works fine:
c:\blah> bzr checkout sftp://
But this does not work:
c:\blah>bzr commit -m "checking in some edits"
Error message:
Authentication (publickey) successful!
Secsh channel 1 opened
Committing to: sftp://
modified test.txt
bzr: ERROR: the file could not be opened because it is locked by another process.
I cannot think of why/how anything on the server side is locked? Even a reboot of the server does not 'free' things up - same error message. The server is not running any anti-virus programs, and WinSSHD seems to have proper read/write access (for example I'm able to write over files when I SFTP into the server using the SFTP client program Tunnelier).
Here are the detailed results from the .bzr.log file:
Sun 2010-05-02 14:23:38 +0800
0.035 bazaar version: 2.1.1
0.035 bzr arguments: [u'commit', u'-m', u'commit from dave pc']
0.038 looking for plugins in C:/Users/
0.038 looking for plugins in C:/Program Files/Bazaar/
0.109 encoding stdout as sys.stdout encoding 'cp437'
0.139 opening working tree 'C:/Program Files/Bazaar/
0.197 bzr-svn: using Subversion 1.6.6 ()
0.210 falling back to default implementation
0.210 failed to load system host keys: [Errno 2] No such file or directory: 'C:\\SPB_
[ 3728] 2010-05-02 14:23:38.223 INFO: Connected (version 2.0, client 1.04)
0.315 Trying SSH agent key 03B2CD139EDCCA0
[ 3728] 2010-05-02 14:23:38.361 INFO: Authentication (publickey) successful!
[ 3728] 2010-05-02 14:23:38.390 INFO: Secsh channel 1 opened.
[ 3728] 2010-05-02 14:23:38.461 INFO: [chan 1] Opened sftp connection (server version 3)
0.505 preparing to commit
[ 3728] 2010-05-02 14:23:38.645 INFO: Committing to: sftp://
0.635 Selecting files for commit with filter None
[ 3728] 2010-05-02 14:23:38.654 INFO: modified One.txt
[ 3728] 2010-05-02 14:23:38.654 INFO: modified Two.txt
0.714 Using fetch logic to copy between CHKInventoryRep
0.714 fetch up to rev {dave@davepc-
0.754 Raising exception with args ('The file could not be opened because it is locked by another process.',)
0.775 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\fetch.pyo", line 83, in __init__
File "bzrlib\fetch.pyo", line 109, in __fetch
File "bzrlib\fetch.pyo", line 137, in _fetch_
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\knit.pyo", line 3370, in get_raw_records
File "bzrlib\pack.pyo", line 221, in make_readv_reader
File "bzrlib\
File "bzrlib\
File "bzrlib\
IOError: The file could not be opened because it is locked by another process.
0.775 Transferred: 3KiB (8.3K/s r:3K w:0K)
0.775 return code 3
tags: | added: check-for-breezy |
Thanks for the report and traceback. I see we're getting the error when we're trying to read, not write. The problem here may be that bzr has got separate ssh file handles open for reading and writing and something about this environment is making them conflict with each other?