Error while committing via ftp

Alexander Belchenko bialix at ukr.net
Fri Apr 4 20:59:49 BST 2008


Andreas Deininger пишет:
> Hi,
> 
> using bazaar version 1.3, I successfully checked out a branch via ftp
> from a Windows server.
> I'm now trying to commit my changes, however, I ran into the following error:
> 
> Any help is highly appreciated.
> 
> From .bzr.log:
> 
> 0.093  encoding stdout as sys.stdout encoding 'cp437'
> 0.093  bzr arguments: [u'commit']
> 0.093  looking for plugins in C:/Documents and
> Settings/Andreas/Application Data/bazaar/2.0/plugins
> 0.093  looking for plugins in C:\Program
> Files\Python25\lib\site-packages\bzrlib\plugins
> 0.093  Plugin name __init__ already loaded
> 0.093  Plugin name __init__ already loaded
> 0.203  encoding stdout as sys.stdout encoding 'cp437'
> 0.280  opening working tree 'E:/xampp-1.6.6/htdocs/Stiegele.eu'
> 0.312  preparing to commit
> 0.327  FTP get: /BZR-Repo/Stiegele.eu/.bzr/branch-format
> 0.327  Constructing FTP instance against ('xx.x.xx.xxx', None,
> 'BlaUser', '********', False)
> 0.343  encoding stdout as sys.stdout encoding 'cp437'
> 7.372  FTP get: /BZR-Repo/Stiegele.eu/.bzr/branch/format
> 7.575  FTP stat: /BZR-Repo/Stiegele.eu/.bzr/branch
> 7.575  FTP get: /BZR-Repo/Stiegele.eu/.bzr/repository/format
> 7.575  FTP get: /BZR-Repo/.bzr/branch-format
> 7.762  FTP get: /BZR-Repo/.bzr/repository/format
> 7.980  FTP stat: /BZR-Repo/.bzr/repository
> 7.995  FTP get: /BZR-Repo/.bzr/repository/pack-names
> 8.198  FTP has check: shared-storage => /BZR-Repo/.bzr/repository/shared-storage
> 8.214  FTP has: /BZR-Repo/.bzr/repository/shared-storage
> 8.214  FTP get: /BZR-Repo/Stiegele.eu/.bzr/branch/branch.conf
> 8.432  FTP get: /BZR-Repo/.bzr/repository/pack-names
> 8.634  FTP get: /BZR-Repo/Stiegele.eu/.bzr/branch/last-revision
> 8.853  FTP get: /BZR-Repo/.bzr/repository/pack-names
> 9.071  FTP mkd: /BZR-Repo/Stiegele.eu/.bzr/branch/lock/unuon292uq.tmp
> 9.086  FTP put: /BZR-Repo/Stiegele.eu/.bzr/branch/lock/unuon292uq.tmp/info
> 9.305  unable to understand error for path:
> /BZR-Repo/Stiegele.eu/.bzr/branch/lock/unuon292uq.tmp/info: 550
> /BZR-Repo/Stiegele.eu/.bzr/branch/lock/unuon292uq.tmp/info: Das System
> kann die angegebene Datei nicht finden.
> 9.305  Traceback (most recent call last):
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\commands.py", line 834, in
> run_bzr_catch_errors
>     return run_bzr(argv)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\commands.py", line 790, in
> run_bzr
>     ret = run(*run_argv)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\commands.py", line 492, in
> run_argv_aliases
>     return self.run(**all_cmd_args)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\builtins.py", line 2355, in
> run
>     author=author)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\decorators.py", line 165, in
> write_locked
>     return unbound(self, *args, **kwargs)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\workingtree_4.py", line 246,
> in commit
>     result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\decorators.py", line 165, in
> write_locked
>     return unbound(self, *args, **kwargs)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\mutabletree.py", line 187, in
> commit
>     revprops=revprops, *args, **kwargs)
>   File "C:\Program Files\Python25\lib\site-packages\bzrlib\commit.py",
> line 292, in commit
>     self._check_bound_branch()
>   File "C:\Program Files\Python25\lib\site-packages\bzrlib\commit.py",
> line 475, in _check_bound_branch
>     self.master_branch.lock_write()
>   File "C:\Program Files\Python25\lib\site-packages\bzrlib\branch.py",
> line 1327, in lock_write
>     token = self.control_files.lock_write(token=token)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\lockable_files.py", line 234,
> in lock_write
>     token_from_lock = self._lock.lock_write(token=token)
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\lockdir.py", line 563, in
> lock_write
>     return self.wait_lock()
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\lockdir.py", line 492, in
> wait_lock
>     return self.attempt_lock()
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\lockdir.py", line 458, in
> attempt_lock
>     return self._attempt_lock()
>   File "C:\Program
> Files\Python25\lib\site-packages\bzrlib\lockdir.py", line 225, in
> _attempt_lock
>     raise LockFailed(self, e)
> LockFailed: Cannot lock
> LockDir(ftp://SdsFtpUser@172.16.51.198/BZR-Repo/Stiegele.eu/.bzr/branch/lock):
> Generic path error:
> '/BZR-Repo/Stiegele.eu/.bzr/branch/lock/unuon292uq.tmp/info': : unable
> to rename to u'/BZR-Repo/Stiegele.eu/.bzr/branch/lock/unuon292uq.tmp/tmp.info.1207302630.983000000.5568.60b194t6gn':
> 550 /BZR-Repo/Stiegele.eu/.bzr/branch/lock/unuon292uq.tmp/info: Das
> System kann die angegebene Datei nicht finden. )
> 
> 9.305  return code 3
> -------
> 
> "Das System kann die angegebene Datei nicht finden" translates to
> "The system cannot find the file specified."


Your problem seems similar to https://bugs.launchpad.net/bugs/129786
Bazaar does not understand response from your server. It seems like the server want to report
FileNotFound error in some non-standard way. You need provide new handler for ftp transport in bzr.
Could you tell us what the name/version of your ftp server is?




More information about the bazaar mailing list