HelloZeroNet / HelloZeroNet/ZeroNet

/content.json write failed: WindowsError: [Error 32] The process cannot access the file because it is being used by another process

Đang mở
#1,941 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
2.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Step 1: Please describe your environment

* ZeroNet version: 0.6.5 r3852
* Operating system: windows 7
* Web browser: Opera
* Tor status: disabled
* Opened port: yes
* Special configuration: ____

### Step 2: Describe the problem:
There is a gap in creating a new zero blog: I have “Congratulations!” but when I’m trying to publish the one (via ZeroNet.exe) I have two notifications: “Content publish failed.”; “No peers found, but your content is ready to access.” It doesn’t matter if a port is open/closed.
When I’m trying to do the same via ZeroNet.com I see in console window (after signing): "/content.json write failed: WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'C:/Portable/ZeroNet
-win-dist/data/1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS/content.json-tmpold' in helper"

#### Steps to reproduce:

1. _____
2. _____
3. _____

#### Observed Results:

- Starting ZeroNet...
[18:31:25] - OpenSSL loaded, version: 0100020CF
[18:31:25] - Version: 0.6.5 r3852, Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2
016, 20:42:59) [MSC v.1500 32 bit (Intel)], Gevent: 1.2.1
[18:31:25] - Creating FileServer....
[18:31:25] FileServer IPv6 not supported: [Errno 10051] [Error 10051] A socket o
peration was attempted to an unreachable network.
[18:31:25] - Creating UiServer....
[18:31:25] - Removing old SSL certs...
[18:31:25] - Starting servers....
[18:31:25] Ui.UiServer --------------------------------------
[18:31:25] Ui.UiServer Web interface: http://127.0.0.1:43110/
[18:31:25] Ui.UiServer --------------------------------------
[18:31:25] - Opening browser: default_browser...
[18:31:25] - RSA ECC SSL cert generation failed, cert or key files not exist.
[18:31:27] Ui.UiServer Added 127.0.0.1:43110 as allowed host
[18:31:28] PeerPortchecker Checking port 15162 (ipv4) using checkPortchecker res
ult: {'ip': 'xxx.xx.xx.xxx', 'opened': True} in 3.091s
[18:31:29] ConnServer Server port opened ipv4: True, ipv6: None
[18:34:59] Site:1GgL8E..yntS Opening site data directory: C:/Portable/ZeroNet-wi
n-dist/data/1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS/...
[18:34:59] Site:1GgL8E..yntS - [SKIPPED] content.json
[18:34:59] Site:1GgL8E..yntS - content.json-tmpnew
[18:34:59] Site:1GgL8E..yntS - content.json-tmpold
[18:34:59] Site:1GgL8E..yntS - content.json-tmpold-1553683778.34
[18:34:59] Site:1GgL8E..yntS - content.json-tmpold-1553683784.81
[18:34:59] Site:1GgL8E..yntS - content.json-tmpold-1553693589.4
[18:34:59] Site:1GgL8E..yntS - content.json-tmpold-1553703566.17
[18:34:59] Site:1GgL8E..yntS - dbschema.json
[18:35:00] Site:1GgL8E..yntS - Desktop.ini
[18:35:00] Site:1GgL8E..yntS - index.html
[18:35:00] Site:1GgL8E..yntS - alloy-editor/all.css
[18:35:00] Site:1GgL8E..yntS - alloy-editor/all.js
[18:35:00] Site:1GgL8E..yntS - css/all.css
[18:35:00] Site:1GgL8E..yntS - data/data.json
[18:35:00] Site:1GgL8E..yntS - data-default/data.json
[18:35:00] Site:1GgL8E..yntS - data-default/users/content-default.json
[18:35:00] Site:1GgL8E..yntS - img/avatar.png
[18:35:00] Site:1GgL8E..yntS - img/loading.gif
[18:35:00] Site:1GgL8E..yntS - js/all.js
[18:35:00] Site:1GgL8E..yntS - languages/de.json
[18:35:00] Site:1GgL8E..yntS - languages/es.json
[18:35:00] Site:1GgL8E..yntS - languages/fr.json
[18:35:00] Site:1GgL8E..yntS - languages/nl.json
[18:35:00] Site:1GgL8E..yntS - languages/pl.json
[18:35:00] Site:1GgL8E..yntS - languages/pt-br
[18:35:00] Site:1GgL8E..yntS - languages/zh.json
[18:35:00] Site:1GgL8E..yntS Adding timestamp and sha512sums to new content.json
...
[18:35:00] Site:1GgL8E..yntS Verifying private key...
[18:35:00] Site:1GgL8E..yntS Correct 1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS in valid
signers: ['1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS']
[18:35:00] Site:1GgL8E..yntS Signing content.json...
[18:35:00] Site:1GgL8E..yntS Saving to content.json...
[18:35:00] - File C:/Portable/ZeroNet-win-dist/data/1GgL8ErhqxXkrfvbQ9Y452ausfq2
87yntS/content.json write failed: WindowsError: [Error 32] The process cannot ac
cess the file because it is being used by another process: u'C:/Portable/ZeroNet
-win-dist/data/1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS/content.json-tmpold' in helper
.py line 30, reverting...
[18:35:00] Site:1GgL8E..yntS File content.json signed!
[18:35:14] Site:1GgL8E..yntS Opening site data directory: C:/Portable/ZeroNet-wi
n-dist/data/1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS/...
[18:35:14] Site:1GgL8E..yntS - [SKIPPED] content.json
[18:35:14] Site:1GgL8E..yntS - content.json-tmpold
[18:35:14] Site:1GgL8E..yntS - content.json-tmpold-1553683778.34
[18:35:14] Site:1GgL8E..yntS - content.json-tmpold-1553683784.81
[18:35:14] Site:1GgL8E..yntS - content.json-tmpold-1553693589.4
[18:35:14] Site:1GgL8E..yntS - content.json-tmpold-1553703566.17
[18:35:14] Site:1GgL8E..yntS - content.json-tmpold-1553704500.31
[18:35:14] Site:1GgL8E..yntS - dbschema.json
[18:35:14] Site:1GgL8E..yntS - Desktop.ini
[18:35:14] Site:1GgL8E..yntS - index.html
[18:35:14] Site:1GgL8E..yntS - alloy-editor/all.css
[18:35:14] Site:1GgL8E..yntS - alloy-editor/all.js
[18:35:14] Site:1GgL8E..yntS - css/all.css
[18:35:14] Site:1GgL8E..yntS - data/data.json
[18:35:14] Site:1GgL8E..yntS - data-default/data.json
[18:35:14] Site:1GgL8E..yntS - data-default/users/content-default.json
[18:35:14] Site:1GgL8E..yntS - img/avatar.png
[18:35:14] Site:1GgL8E..yntS - img/loading.gif
[18:35:14] Site:1GgL8E..yntS - js/all.js
[18:35:14] Site:1GgL8E..yntS - languages/de.json
[18:35:14] Site:1GgL8E..yntS - languages/es.json
[18:35:14] Site:1GgL8E..yntS - languages/fr.json
[18:35:14] Site:1GgL8E..yntS - languages/nl.json
[18:35:14] Site:1GgL8E..yntS - languages/pl.json
[18:35:14] Site:1GgL8E..yntS - languages/pt-br
[18:35:14] Site:1GgL8E..yntS - languages/zh.json
[18:35:14] Site:1GgL8E..yntS Adding timestamp and sha512sums to new content.json
...
[18:35:14] Site:1GgL8E..yntS Verifying private key...
[18:35:14] Site:1GgL8E..yntS Correct 1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS in valid
signers: ['1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS']
[18:35:14] Site:1GgL8E..yntS Signing content.json...
[18:35:14] Site:1GgL8E..yntS Saving to content.json...
[18:35:14] - File C:/Portable/ZeroNet-win-dist/data/1GgL8ErhqxXkrfvbQ9Y452ausfq2
87yntS/content.json write failed: WindowsError: [Error 32] The process cannot ac
cess the file because it is being used by another process: u'C:/Portable/ZeroNet
-win-dist/data/1GgL8ErhqxXkrfvbQ9Y452ausfq287yntS/content.json-tmpold' in helper
.py line 30, reverting...
[18:35:14] Site:1GgL8E..yntS File content.json signed!
[18:35:14] Site:1GgL8E..yntS Publishing content.json to 5/0 peers (connected: 0)
diffs: [] (0.00k)...
[18:36:01] Site:1GgL8E..yntS Publishing content.json to 5/0 peers (connected: 0)
diffs: [] (0.00k)...

* What happened? This could be a screenshot, a description, log output (you can send log/debug.log file to hello@zeronet.io if necessary), etc.

#### Expected Results:

* What did you expect to happen?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

The failure is reported in helper.py line 30 while saving data/.../content.json and references content.json-tmpold. Start by reproducing the publish flow on Windows 7 with ZeroNet 0.6.5 r3852 and inspect that save path. Done means publishing completes without the WindowsError and the content is available to peers.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
backend, operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.