HelloZeroNet / HelloZeroNet/ZeroNet

Question: hanging fileWrite - verify failed - download failed

Open
#1,391 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the UI-server log entries for the hanging fileWrite and the affected optional file, then inspect the sites.json entry for site 1W3Et1D5BnqfsXfx2kSx8T61fTPz5V2Ft. Review the siteSign command and file synchronization path; done means the affected fileWrite no longer hangs and the optional file completes verification and download without the reported errors.

Written by the indexing model from the issue text.

Assessment

Domain
distributed-systems, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.