Skip to content

KeyError on Debian GNU/Linux 8 at launch #631

@ghost

Description

Hi.

I am running on Debian GNU/Linux 8 "Jessie".
I clone the repo and installed python-msgpack and python-gevent.

I tried to start ZeroNet:

$ ./zeronet.py - Starting ZeroNet...
[12:36:23] - OpenSSL loaded, version: 01000114F
[12:36:23] - Version: 0.4.1 r1536, Python 2.7.9 (default, Jun 29 2016, 13:08:31) 
[GCC 4.9.2], Gevent: 1.0.1
[12:36:23] - Creating FileServer....
[12:36:23] TorManager Tor controller connect error: error: [Errno 111] Connection refused in TorManager.py line 154 > socket.py line 342
[12:36:23] ConnServer Error: Unsupported msgpack version: (0, 1, 10) (<0.4.0), please run `sudo apt-get install python-pip; sudo pip install msgpack-python --upgrade`
[12:36:23] Site:1Name2..hM9F Content.json not exist: data/1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F/content.json

On Debian 8, the version of python-msgpack is 0.4.2, so it was strange. https://packages.debian.org/jessie/python-msgpack
I decided to give a try to the version of Debian 9 "Stretch" (aptitude install python-msgpack/stretch) that is 0.4.8. https://packages.debian.org/stretch/python-msgpack

I have now this error:

$ ./zeronet.py
- Starting ZeroNet...
[12:39:13] - OpenSSL loaded, version: 01000114F
[12:39:13] - Version: 0.4.1 r1536, Python 2.7.9 (default, Jun 29 2016, 13:08:31) 
[GCC 4.9.2], Gevent: 1.0.1
[12:39:13] - Creating FileServer....
[12:39:13] TorManager Tor controller connect error: error: [Errno 111] Connection refused in TorManager.py line 154 > socket.py line 342
[12:39:13] - Creating UiServer....
[12:39:13] SiteManager Deleting orphan site from content.db: 1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F
Traceback (most recent call last):
  File "./zeronet.py", line 16, in main
    main.start()
  File "./src/main.py", line 420, in start
    actions.call(config.action, action_kwargs)
  File "./src/main.py", line 120, in call
    func(**kwargs)
  File "./src/main.py", line 130, in main
    ui_server = UiServer()
  File "./src/Ui/UiServer.py", line 61, in __init__
    self.sites = SiteManager.site_manager.list()
  File "./src/Site/SiteManager.py", line 130, in list
    self.load()
  File "plugins/Zeroname/SiteManagerPlugin.py", line 17, in load
    super(SiteManagerPlugin, self).load(*args, **kwargs)
  File "plugins/MergerSite/MergerSitePlugin.py", line 301, in load
    super(SiteManagerPlugin, self).load(*args, **kwags)
  File "./src/Site/SiteManager.py", line 53, in load
    ContentDb.getContentDb().deleteSite(row["address"])
  File "./src/Content/ContentDb.py", line 65, in deleteSite
    site_id = self.site_ids[site_address]
KeyError: u'1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F'

Apparently, it is now an error in the code of ZeroNet. I tried with the version of the commit 4ac933f (19 13:19:32 2016 -0700).

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions