这是我运行 esky auto_update 时遇到的错误:
Traceback (most recent call last):
File "__main__.py", line 838, in <module>
File "__main__.py", line 331, in bootstrap
File "__main__.py", line 358, in chainload
File "__main__.py", line 834, in _chainload
File "my_code.py", line 49, in <module>
File "esky\__init__.pyc", line 471, in cleanup
File "esky\__init__.pyc", line 516, in _cleanup_actions
File "esky\__init__.pyc", line 465, in cleanup
File "esky\__init__.pyc", line 882, in install_version
File "esky\__init__.pyc", line 914, in _unpack_bootstrap_env
File "esky\fstransact\win32txf.pyc", line 109, in move
File "esky\fstransact\win32txf.pyc", line 118, in _move
File "esky\fstransact\win32txf.pyc", line 24, in wrapper
WindowsError: [Error 6805] The remote server or share does not support transacted file operations.
在服务器上,我看到更新请求两次。
weapon101s.ds.com - - [23/May/2013 10:47:25] "GET / HTTP/1.1" 200 -
weapon101s.ds.com - - [23/May/2013 10:47:26] "GET / HTTP/1.1" 200 -
weapon101s.ds.com - - [23/May/2013 10:47:26] "GET /hifg-1.1.1.win32.zip HTTP/1.1" 200 -
weapon101s.ds.susq.com - - [23/May/2013 10:48:08] "GET /hifg-1.1.1.win32.zip HTTP/1.1" 200 -
weapon101s.ds.susq.com - - [23/May/2013 10:49:06] "GET / HTTP/1.1" 200 -
weapon101s.ds.susq.com - - [23/May/2013 10:49:06] "GET / HTTP/1.1" 200 -
这可能是一个网络问题,因为该问题不会发生在本地网络上,而是仅在从远程站点更新时发生。关于出了什么问题以及如何解决这个问题有什么想法吗?
最佳答案
Esky 使用事务性 NTFS 在移动文件时保持数据完整性,特别是 MoveFileTransacted功能。但是,事务性 NTFS 仅适用于本地文件。
引用 Microsoft 文档,When to Use Transactional NTFS :
TxF does not support the following transaction scenarios:
- Transactions on network volumes, for example on file shares. TxF is not supported by the CIFS/SMB protocols.
- Transactions on any file system other than NTFS.
- Transacted operations against files cached by client-side caching.
- File access using object IDs.
- Any shared writer scenario.
- Any situation where a file is opened for an extended period of time (days or weeks).
除了不远程更新之外,我不确定还有什么方法可以解决这个问题。
关于python - Esky更新导致事务处理文件操作错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16803854/