bzr: ERROR: [Errno 5] Can't open 'C:\tmp\tempfile.tmp': Zugriff verweigert ("Permission denied")

Bug #347334 reported by Daniel Hahler
4
Affects Status Importance Assigned to Milestone
subversion
Invalid
Medium
Unassigned

Bug Description

Branching a subversion repository fails with some strange "Permission denied" ("Zugriff verweigert") error:

C:\foo\bar>bzr branch https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1
bzr: ERROR: [Errno 5] Can't open 'C:\tmp\tempfile.tmp': Zugriff verweigert

The directory is writable though (i.e. "touch C:\tmp\tempfile.tmp" works).

I'm using bzr 1.13 (includes svn plugin 0.5.3) on Windows XP (with cygwin installed).

From .bzr.log:
Mo 2009-03-23 15:42:28 +0100
0.094 bzr arguments: [u'branch', u'https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1']
0.141 looking for plugins in C:/Dokumente und Einstellungen/user/Anwendungsdaten/bazaar/2.0/plugins
0.281 looking for plugins in C:/Programme/Bazaar/plugins
0.359 encoding stdout as sys.stdout encoding 'cp850'
0.375 failed to import pycurl: No module named pycurl
0.375 failed to instantiate transport <bzrlib.registry._LazyObjectGetter object at 10118f0, module='bzrlib.transport.http._pycurl' attribute='PyCurlTransport'> for 'https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1': DependencyNotPresent(Unable to import library "pycurl": No module named pycurl)
1.516 bzr-svn: using Subversion 1.5.4 ()
3.157 opening SVN RA connection to 'https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1'
5.141 creating repository in file:///C:/foo/bar/TYPO3_4-1/.bzr/.
8.235 unsupported file property 'svn:keywords'
[...]
39.583 unsupported file property 'svn:eol-style'
39.849 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 716, in exception_to_return_code
  File "bzrlib\commands.pyo", line 911, in run_bzr
  File "bzrlib\commands.pyo", line 547, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1100, in run
  File "C:/Programme/Bazaar/plugins\svn\remote.py", line 80, in sprout
  File "bzrlib\bzrdir.pyo", line 1134, in sprout
  File "bzrlib\repository.pyo", line 1133, in fetch
  File "C:/Programme/Bazaar/plugins\svn\fetch.py", line 1251, in fetch
  File "C:/Programme/Bazaar/plugins\svn\fetch.py", line 1175, in _fetch_revisions
  File "C:/Programme/Bazaar/plugins\svn\fetch.py", line 1117, in _fetch_revision_switch
OSError: [Errno 5] Can't open 'C:\tmp\tempfile.tmp': Zugriff verweigert

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

THis suggests you might not have permission to open all the files in the repository, could that be correct?

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Daniel Hahler (blueyed) wrote :

I'm not sure what you mean: the repository is read-only for me, yes.
But branching it worked fine from my server (which runs Ubuntu Hardy). I then copied the repository/.bzr directory to my Windows machine and can now update/pull from there without further problems.

Changed in bzr-svn:
status: Incomplete → New
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

subvertpy seems to generate the same path for temporary files continuously

affects: bzr-svn → subvertpy
Changed in subvertpy:
assignee: nobody → Jelmer Vernooij (jelmer)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is a bug in svn_io_open_unique_file.

affects: subvertpy → subversion
Changed in subversion:
assignee: Jelmer Vernooij (jelmer) → nobody
Revision history for this message
Chris E (cbz) wrote :

Is there an indication what the bug is ? It seems that this problem is more likely to occur over larger imports - i presume because the function itself is called more often.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This actually appears to be triggered by some virus scanners, it's not a bug in Subversion.

Changed in subversion:
status: Triaged → Invalid
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.