HelloZeroNet / HelloZeroNet/ZeroNet

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

Abierto
#1,941 4 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
JavaScript
Estrellas
18.8k
Forks
2.3k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.