HelloZeroNet / HelloZeroNet/ZeroNet

ContentDbPlugin.py - loadFilesOptional - KeyError: u'siteaddress'

Offen
#1,932 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
18.8k
Forks
2.3k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Step 1: Please describe your environment

* ZeroNet version: 3853
* Operating system: Linux
* Special configuration: Bootstrapper plugin, multiuser local plugin; Python 2.7.12

### Step 2: Describe the problem:

When i try to download any site:
python ../zeronet.py --silent siteDownload "15mQd6kBRzriaVEjdELujex2YKFfWaA8JQ"

it returns this:

```
- Unhandled exception
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/root/ZeroNet-master/plugins/OptionalManager/ContentDbPlugin.py", line 97, in loadFilesOptional
site = self.sites[site_address]
KeyError: u'1GrwWFTmrKgUGQsGxrKSsRbb2dt8UJaBPN'
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/root/ZeroNet-master/plugins/OptionalManager/ContentDbPlugin.py", line 97, in loadFilesOptional
site = self.sites[site_address]
KeyError: u'1GrwWFTmrKgUGQsGxrKSsRbb2dt8UJaBPN'
```

The KeyError is always about site "1GrwWFTmrKgUGQsGxrKSsRbb2dt8UJaBPN".

The memory usage rise like 100MB or more due to siteDownload command and as a result the primary zeronet that is running crash. Also i see 2 same siteDownload processes for same site at same time, which is strange, then like 30 seconds later i see 5+ same processes of siteDownload (for same site) showing like 40% RAM usage. Then the siteDownload command gets killed.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.