HelloZeroNet / HelloZeroNet/ZeroNet

Question: hanging fileWrite - verify failed - download failed

未关闭
#1,391 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

### Step 1: Please describe your environment

* ZeroNet version: 0.6.2 (3408)
* Operating system: ubuntu 16.04
* Web browser: chrone
* Tor status: disabled
* Opened port: no
* Special configuration: using same certificate 1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF in the different ZeroNet clients for same site. Merger site.

### Step 2: Describe the problem:

fileWrite 44fb40d546-i.1524133183764 is hanging. New optional file. Using unix timestamp (here 1524133183764) as extension.
UI notification: This file still in sync, if you write it now, then the previous content may be lost.

Checked UI-server log. Looks like fileWrite cmd is waiting for other peers. Why?

7 download failed errors for new optional file in UI server log:
[12:19:44] WorkerManager:1W3Et1..V2Ft 185.230.124.53:22014: Verify failed: data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/44fb40d546-i.1524133183764, error: Download failed, failed peers: 0, workers: 0
[12:19:44] WorkerManager:1W3Et1..V2Ft 107.181.189.86:57108: Verify failed: data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/44fb40d546-i.1524133183764, error: Download failed, failed peers: 1, workers: 0
[12:19:44] WorkerManager:1W3Et1..V2Ft 185.230.124.51:22014: Verify failed: data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/44fb40d546-i.1524133183764, error: Download failed, failed peers: 2, workers: 0
[12:19:46] WorkerManager:1W3Et1..V2Ft 172.83.40.24:37394: Verify failed: data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/44fb40d546-i.1524133183764, error: Download failed, failed peers: 3, workers: 0
[12:20:28] WorkerManager:1W3Et1..V2Ft 192.38.140.232:0: Verify failed: data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/44fb40d546-i.1524133183764, error: Download failed, failed peers: 4, workers: 0
[12:20:36] WorkerManager:1W3Et1..V2Ft 172.83.40.24:37394: Verify failed: data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/44fb40d546-i.1524133183764, error: Download failed, failed peers: 5, workers: 1
[12:20:36] WorkerManager:1W3Et1..V2Ft 185.230.124.51:22014: Verify failed: data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/44fb40d546-i.1524133183764, error: Download failed, failed peers: 6, workers: 0

[127.0.0.1-1524135236587.log](https://github.com/HelloZeroNet/ZeroNet/files/1927999/127.0.0.1-1524135236587.log)

Update 1: repeated test with ZeroNet port open. Same problem with fileWrite and This file still in sync, if you write it now, then the previous content may be lost

Update 2: did a OK siteSign 1W3Et1D5BnqfsXfx2kSx8T61fTPz5V2Ft --inner_path data/users/1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF/content.json --remove_missing_optional --publish to "cleanup" any problems with 1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF user directory. Repeated test with ZeroNet port open. Same result.

Update 3: changed certificate to 18DbeZgtVCcLghmtzvg4Uv8uRQAwR8wnDQ (jro@zeroid.bit). No problem with this certificate.

Update 4: changed back to 1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF. Still problem with hanging fileWrite.

Update 5: edit sites.json file and removed 2 1CCiJ97XHgVeJrkbnzLgfXvYRr8QEWxnWF bad files for site 1W3Et1D5BnqfsXfx2kSx8T61fTPz5V2Ft. Restarted UI server and tested OK without hanging fileWrite cmd. So removing bad files helped .... ?

贡献指南

这个仓库没有索引到贡献指南

调研方向

先从 UI-server 中关于挂起的 fileWrite 和受影响的可选文件的日志条目开始,然后检查 site 1W3Et1D5BnqfsXfx2kSx8T61fTPz5V2Ft 的 sites.json 条目。检查 siteSign 命令和文件同步路径;完成的标准是受影响的 fileWrite 不再挂起,并且可选文件能够在没有所报告错误的情况下完成验证和下载。

由索引模型根据 Issue 内容生成。

评估

领域
distributed-systems, networking
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
20/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。