Zeronet: sitePublish fails with a KeyError

Created on 14 Aug 2016  路  6Comments  路  Source: HelloZeroNet/ZeroNet

Hi there,

Using ZeroNet from git's master branch, when I try to publish my zeronet site, I get the following error:

Traceback (most recent call last):
  File "zeronet.py", line 16, in main
    main.start()
  File "src/main.py", line 418, in start
    actions.call(config.action, action_kwargs)
  File "src/main.py", line 118, in call
    func(**kwargs)
  File "src/main.py", line 301, in sitePublish
    site = SiteManager.site_manager.list()[address]
KeyError: '<zeronet site address is here>'

Any advice would be greatly appreciated!

Most helpful comment

Ah okay, we have to go to http://127.0.0.1:43110/zeronetsiteaddress at least once before we run the sitePublish command. That worked fine. Thanks for the great help!

All 6 comments

Are you sure data/yoursiteaddress directory is exists? Please try using siteSign eg.: zeronet.py siteSign 1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D --publish

Hi :smile:

The issue was that I hadn't published for the first time. A good fix for this would be to check to see if the user has run the zeronet.py server since creating the site.

Hi johnhamelink,

I'm having the same issue. I was able to create and sign my site but when I come to run the sitePublish command then the same error occurs. Could you expand on how you fixed this?

Thank you.

@TheMediaGiant you have to just run python zeronet.py - the sitePublish command is only for updating. The docs don't make it all that clear 馃槃

Ah okay, we have to go to http://127.0.0.1:43110/zeronetsiteaddress at least once before we run the sitePublish command. That worked fine. Thanks for the great help!

I had that problems: #544.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenMcLean picture BenMcLean  路  39Comments

HelloZeroNet picture HelloZeroNet  路  42Comments

komachi picture komachi  路  56Comments

imachug picture imachug  路  92Comments

HelloZeroNet picture HelloZeroNet  路  140Comments