Opened 15 years ago
Closed 15 years ago
#8913 closed defect (fixed)
Failed to create environment under Vista
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11.7 |
Component: | admin/console | Version: | 0.11.6 |
Severity: | blocker | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Freshly installed Trac 0.11.6
C:\~env\Python26\Scripts\trac-admin.exe env4devplug initenv
Path to repository [/path/to/repos]> Creating and Initializing Project Initenv for 'M:\p\trac\env4devplug' failed. Failed to create environment. (6832, 'This object is not allowed to be opened in a transaction.') Traceback (most recent call last): File "C:\~env\Python26\lib\site-packages\trac\admin\console.py", line 583, in do_initenv options=options) File "C:\~env\Python26\lib\site-packages\trac\env.py", line 207, in __init__ self.create(options) File "C:\~env\Python26\lib\site-packages\trac\env.py", line 337, in create self.config.save() File "C:\~env\Python26\lib\site-packages\trac\config.py", line 225, in save fileobj.close() File "C:\~env\Python26\lib\site-packages\trac\util\__init__.py", line 178, in commit rename(self._temp, self._path) File "C:\~env\Python26\lib\site-packages\trac\util\__init__.py", line 111, in rename raise ctypes.WinError() WindowsError: [Error 6832] This object is not allowed to be opened in a transaction.
Seems to be connected to #8623 fixes
Attachments (0)
Change History (8)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Milestone: | → 0.12 |
---|
Is your M:
drive a network share? We should probably have a fallback for that case. Actually, we should try each of the three rename methods on Windows, falling back to the next one in case of an error.
follow-up: 5 comment:3 by , 15 years ago
No, it is local, but has Ext2 file system, because shared between vista and other systems on the machine.
follow-up: 6 comment:5 by , 15 years ago
Milestone: | 0.12 → 0.11.7 |
---|
Replying to anatoly techtonik <techtonik@…>:
No, it is local, but has Ext2 file system, because shared between vista and other systems on the machine.
Ah, but I expect the same kind of issue with a network drive.
Are you certain to leave this without fallback fix in 0.11?
No, you're right. My bad.
comment:6 by , 15 years ago
Replying to rblank:
Ah, but I expect the same kind of issue with a network drive.
With network drive there is a different error message.
WindowsError: [Error 6805] The remote server or share does not support transacted file operations.
comment:8 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed in [8994] by trying all three variants for renaming (MoveFileTransacted
, MoveFileEx
and os.rename
) and falling back to the next one in case of failure.
python trac/util/tests/__init__.py
run ok.