On 5/14/2018 13:51, Pavel Celba wrote:
Hi Dave,

if you are still around... did you solve this problem?

I've switched from tracd to Apache right now and the same problem with Trac.ini started to appear...

My configuration is similar to yours, I am not using antivirus.

TIA

Pavel

No, I never really solved it; I just did what I had mentioned in my followup message: "So, while it seems like using transactional NTFS *should* work, perhaps the better solution is for _rename() in trac/util/__init__.py to just use the existing MoveFileEx code and not bother with the _rename_atomic() that uses transactional NTFS?"

I commented out the call that tries to use the deprecated Transactional NTFS API so the rename would use MoveFileEx instead:

--- C:/Python27/Lib/site-packages/trac-1.2.1-py2.7.egg.orig/trac/util/__init__.py Wed Apr 26 01:07:08 2017 +++ C:/Python27/Lib/site-packages/trac-1.2.1-py2.7.egg/trac/util/__init__.py Wed Apr 26 02:32:44 2017
@@ -114,8 +114,8 @@
                 src = unicode(src, sys.getfilesystemencoding())
             if not isinstance(dst, unicode):
                 dst = unicode(dst, sys.getfilesystemencoding())
-            if _rename_atomic(src, dst):
-                return True
+#            if _rename_atomic(src, dst):
+#                return True
             return MoveFileEx(src, dst, MOVEFILE_REPLACE_EXISTING
                                         | MOVEFILE_WRITE_THROUGH)


--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to