Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8913 closed defect (fixed)

Failed to create environment under Vista

Reported by: anatoly <techtonik@…> 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 anonymous, 15 years ago

python trac/util/tests/__init__.py run ok.

comment:2 by Remy Blank, 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.

comment:3 by anatoly techtonik <techtonik@…>, 15 years ago

No, it is local, but has Ext2 file system, because shared between vista and other systems on the machine.

comment:4 by anatoly techtonik <techtonik@…>, 15 years ago

Are you certain to leave this without fallback fix in 0.11?

in reply to:  3 ; comment:5 by Remy Blank, 15 years ago

Milestone: 0.120.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.

in reply to:  5 comment:6 by anatoly techtonik <techtonik@…>, 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:7 by Remy Blank, 15 years ago

Owner: set to Remy Blank

Putting this on my list.

comment:8 by Remy Blank, 15 years ago

Resolution: fixed
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.