HelloZeroNet / HelloZeroNet/ZeroNet

AttributeError on sitePublish on Linux

Open
#2,387 3 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

```
- Libsecpk256k1 loaded: CompiledLib in 0.028s
- Version: 0.7.1 r4206, Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0], Gevent: 1.4.0
SiteManager Deleting orphan site from content.db: 1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F
SiteManager Deleting orphan site from content.db: 1DvxA4WP2jbBaZbTebV1RufMLhTTqDhVUQ
- Loading site...
- Unhandled exception: 'NoneType' object has no attribute 'settings'
Traceback (most recent call last):
File "/builds/wizardforcel/zeronet-uploader/ZeroNet-linux-dist-linux64/core/zeronet.py", line 17, in main
main.start()
File "/builds/wizardforcel/zeronet-uploader/ZeroNet-linux-dist-linux64/core/src/main.py", line 537, in start
actions.call(config.action, action_kwargs)
File "/builds/wizardforcel/zeronet-uploader/ZeroNet-linux-dist-linux64/core/src/main.py", line 121, in call
back = func(**kwargs)
File "/builds/wizardforcel/zeronet-uploader/ZeroNet-linux-dist-linux64/core/src/main.py", line 381, in sitePublish
site.settings["serving"] = True # Serving the site even if its disabled
AttributeError: 'NoneType' object has no attribute 'settings'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in core/src/main.py at sitePublish, around line 381, and trace how the site object is obtained before its settings are accessed. Reproduce the sitePublish action on Linux with the reported environment and determine why it is None; done means the action completes without this AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.