Package Details: zeronet 0.7.1-1

Git Clone URL: https://aur.archlinux.org/zeronet.git (read-only, click to copy)
Package Base: zeronet
Description: Decentralized websites using Bitcoin crypto and the BitTorrent network.
Upstream URL: https://zeronet.io/
Licenses: GPL2
Submitter: redfish
Maintainer: redfish
Last Packager: redfish
Votes: 78
Popularity: 0.48
First Submitted: 2016-01-17 07:43 (UTC)
Last Updated: 2019-10-19 07:58 (UTC)

Pinned Comments

redfish commented on 2016-11-26 05:06 (UTC)

Before marking as out-of-date, please check current release at https://github.com/HelloZeroNet/ZeroNet/releases Upstream releases unconventionally: the new version is pushed to users via the ZeroNet network before that version is actually released (if you care, then please tell upstream this is not a good approach). If you want the very latest version, use the VCS package: zeronet-git

Latest Comments

Tio commented on 2020-09-21 12:39 (UTC)

I understand. Thanks!

TJM commented on 2020-09-18 07:54 (UTC) (edited on 2020-09-18 07:57 (UTC) by TJM)

@Tio cgi.parse_qsl has been deprecated since Python 3.2 and been removed in Python 3.8 This problem has been fixed in the latest commit of upstream but not yet released. https://docs.python.org/3.8/whatsnew/3.8.html#api-and-feature-removals

Tio commented on 2020-09-12 20:43 (UTC)

I get this:

[22:41:07] - UiWSGIHandler error: AttributeError: module 'cgi' has no attribute 'parse_qsl' in UiServer.py line 41 > pywsgi.py line 917 > UiServer.py line 98

I am behind a VPN. Can this be the cause? http://127.0.0.1:43110/ keeps on loading...

redfish commented on 2020-06-29 23:06 (UTC)

@slondr: patches for Py3.8 exist but are unreleased, see my message on this issue (please post there to encourage upstream to make a release): https://github.com/HelloZeroNet/ZeroNet/issues/2472

Until then, try zeronet-git package instead.

slondr commented on 2020-06-29 22:18 (UTC)

Does zeronet not support Python 3.8?

From a fresh install, I get errors (no pages load) about parse_qsl being missing from a library; quick google search says parse_qs was removed in py3.8

redfish commented on 2020-05-24 04:31 (UTC)

@blx32: this package tracks the released version (see Releases page on GitHub). If you want to install the latest source code, use zeronet-git package.

@ioan: the instructions on how to start are printed upon installation; you can also see them in zeronet.install.

ioan commented on 2020-05-21 12:08 (UTC)

there are no instruction how to start this

blx32 commented on 2020-04-15 17:07 (UTC)

Updated PKGBUILD https://pastebin.com/k445k7eB

Ergus commented on 2020-04-05 22:01 (UTC)

I cant build the package. I get this error:

build/temp.linux-x86_64-3.8/_libsecp256k1.c:541:10: fatal error: secp256k1_ecdh.h: No such file or directory 541 | #include <secp256k1_ecdh.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ==> ERROR: A failure occurred in build(). Aborting... Error making: python-coincurve

SleepingFox commented on 2020-03-31 05:07 (UTC)

Checking file conflicts...
Failed to commit transaction:
conflicting files:
gunicorn: /usr/bin/gunicorn already exists in filesystem

Any idea what this issue is about?

maxweiss commented on 2020-02-06 11:51 (UTC) (edited on 2020-02-06 12:04 (UTC) by maxweiss)

@TJM @redfish easy fix is to run:

sudo find /opt/zeronet/ -name "*.pyc" -type f -delete

And for the package build, you could simply run that on the pkgdir folder.

Additionally, the file src/Ui/UiServer.py needs to be patched to reflect the changes here: https://github.com/HelloZeroNet/ZeroNet/pull/2307/files

TJM commented on 2019-12-31 09:23 (UTC)

Upstream maintainer suggests the package owner either removing *pyc files or updating the write permissions.

TJM commented on 2019-12-24 11:01 (UTC)

Upstream issue created: https://github.com/HelloZeroNet/ZeroNet/issues/2375

redfish commented on 2019-12-13 05:16 (UTC)

@TJM: please file an issue on upstream Github for that error.

TJM commented on 2019-12-07 02:07 (UTC)

There are some problems since the last update. I cannot launch zeronet properly.

-- Logs begin at Fri 2019-10-04 22:06:41 UTC, end at Sat 2019-12-07 02:03:55 UTC. --
Dec 07 01:27:19 localhost systemd[1]: Started Decentralized websites using Bitcoin crypto and the BitTorrent network.
Dec 07 01:27:32 localhost zeronet[1566]: [17:27:32] PluginManager Plugin AnnounceBitTorrent load error: ImportError: bad magic number in 'bencode': b'\x03\xf3\r\n' in PluginManager.py line 138 > AnnounceBitTorrent/__init__.py line 1 > AnnounceBitTorrent/AnnounceBitTorrentPlugin.py line 6
Dec 07 01:27:34 localhost zeronet[1566]: [17:27:34] PluginManager Plugin Bigfile load error: ImportError: bad magic number in 'merkletools': b'\x03\xf3\r\n' in PluginManager.py line 138 > Bigfile/__init__.py line 1 > Bigfile/BigfilePlugin.py line 20
Dec 07 01:27:35 localhost zeronet[1566]: [17:27:35] - Libsecp256k1 load failed: No module named 'coincurve', try to load OpenSSL
Dec 07 01:27:35 localhost zeronet[1566]: [17:27:35] - OpenSSL load failed: No module named 'bitcoin', falling back to slow bitcoin verify
Dec 07 01:27:36 localhost zeronet[1566]: [17:27:36] - Patching sockets to tor socks proxy: 127.0.0.1:9050
Dec 07 01:27:36 localhost zeronet[1566]: [17:27:36] - Version: 0.7.0 r4206, Python 3.8.0 (default, Oct 23 2019, 18:51:26)
Dec 07 01:27:36 localhost zeronet[1566]: [GCC 9.2.0], Gevent: 1.4.0
Dec 07 01:27:42 localhost zeronet[1566]: [17:27:42] - Unhandled exception: bad magic number in 'geventwebsocket': b'\x03\xf3\r\n'
Dec 07 01:27:42 localhost zeronet[1566]: Traceback (most recent call last):
Dec 07 01:27:42 localhost zeronet[1566]:   File "zeronet.py", line 17, in main
Dec 07 01:27:42 localhost zeronet[1566]:     main.start()
Dec 07 01:27:42 localhost zeronet[1566]:   File "/opt/zeronet/src/main.py", line 537, in start
Dec 07 01:27:42 localhost zeronet[1566]:     actions.call(config.action, action_kwargs)
Dec 07 01:27:42 localhost zeronet[1566]:   File "/opt/zeronet/src/main.py", line 121, in call
Dec 07 01:27:42 localhost zeronet[1566]:     back = func(**kwargs)
Dec 07 01:27:42 localhost zeronet[1566]:   File "/opt/zeronet/src/main.py", line 129, in main
Dec 07 01:27:42 localhost zeronet[1566]:     from Ui import UiServer
Dec 07 01:27:42 localhost zeronet[1566]:   File "/opt/zeronet/src/Ui/__init__.py", line 1, in <module>
Dec 07 01:27:42 localhost zeronet[1566]:     from .UiServer import UiServer
Dec 07 01:27:42 localhost zeronet[1566]:   File "/opt/zeronet/src/Ui/UiServer.py", line 10, in <module>
Dec 07 01:27:42 localhost zeronet[1566]:     from geventwebsocket.handler import WebSocketHandler
Dec 07 01:27:42 localhost zeronet[1566]: ImportError: bad magic number in 'geventwebsocket': b'\x03\xf3\r\n'
Dec 07 01:27:42 localhost zeronet[1566]: - Starting ZeroNet...
Dec 07 01:27:42 localhost zeronet[1566]: ---
Dec 07 01:27:42 localhost zeronet[1566]: Please report it: https://github.com/HelloZeroNet/ZeroNet/issues/new?assignees=&labels=&template=bug-report.md
Dec 07 01:27:46 localhost systemd[1]: zeronet.service: Succeeded.

redfish commented on 2019-06-08 17:26 (UTC)

@theZorro266: the service file override shouldn't be needed, zeronet reacts fine to SIGTERM:

- Shutting down (reason: SIGTERM)...

The DataDirectoryGroupReadable appears to be working for me after startup, but at some later point the permissions become broken again (drwx------).

There is a Tor bug in upstream regarding dir permissions (not sure if related): https://trac.torproject.org/projects/tor/ticket/28356

Also, there were problems with this flag in the past (since fixed): https://trac.torproject.org/projects/tor/ticket/26913 https://trac.torproject.org/projects/tor/ticket/19953

theZorro266 commented on 2019-06-05 05:39 (UTC) (edited on 2019-06-05 05:42 (UTC) by theZorro266)

Just installed the package. Two things I needed to do additionally:

# chmod g+rx /var/lib/tor # (i.e. DataDirectoryGroupReadable 1 didn't work for me)

And override the zeronet.service file with:

[Service]
KillSignal=SIGINT

Because Python application

redfish commented on 2018-11-18 17:05 (UTC)

@SamuraiJack: these are shown in the install messages, but there was a bug in Tor < 0.3.3.9 that broke permissions on the data dir: https://trac.torproject.org/projects/tor/ticket/26913

SamuraiJack commented on 2018-09-08 15:52 (UTC) (edited on 2018-09-08 15:55 (UTC) by SamuraiJack)

For error "Tor Error: Status: Error ([Errno 13] Permission denied: '/var/lib/tor/control_auth_cookie')" Append to your /etc/tor/torrc file:

CookieAuthentication 1 DataDirectoryGroupReadable 1 CookieAuthFileGroupReadable 1 ExtORPortCookieAuthFileGroupReadable 1 CacheDirectoryGroupReadable 1 CookieAuthFile /var/lib/tor/control_auth_cookie

Source https://github.com/HelloZeroNet/ZeroNet/issues/1440#issuecomment-395031649

redfish commented on 2018-07-22 02:29 (UTC)

@e2546057: removed version spec. @joshirio: added note about ControlPort to install message.

e2546057 commented on 2018-07-15 19:54 (UTC)

Pacaur fails to install it with "Variable 'optdepends' has invalid characters '>='"

CupIvan commented on 2018-06-04 06:45 (UTC)

clear tor version ">=0.3.0.0" from optdepends becouse of make package error

jpic commented on 2018-05-31 19:34 (UTC)

maybe this is because they use docker ?

bm456 commented on 2018-02-02 18:44 (UTC)

https://github.com/HelloZeroNet/ZeroNet/releases/tag/v0.6.1

joshirio commented on 2017-11-19 21:23 (UTC) (edited on 2017-11-20 10:22 (UTC) by joshirio)

ControlPort 9051 is missing from torrc, zeronet can't connect to tor without it, I updated the zeronet arch wiki page, maybe you could update the .install warnings to reflect this? https://zeronet.readthedocs.io/en/latest/faq/#how-to-make-zeronet-work-with-tor-under-linux

redfish commented on 2017-11-18 21:03 (UTC)

@sirex, @skypher: added creation of /var/log/zeronet. Sorry. Should be fixed now.

sirex commented on 2017-11-15 20:51 (UTC)

When i tried to `systemctl start zeronet`, got this in `journalctl -xe`: ERROR:root:Unhandled exception: [Errno 13] Permission denied: '/var/log/zeronet' Traceback (most recent call last): File "zeronet.py", line 18, in main import main File "/opt/zeronet/src/main.py", line 32, in <module> os.mkdir(config.log_dir) OSError: [Errno 13] Permission denied: '/var/log/zeronet' - Starting ZeroNet... Traceback (most recent call last): File "zeronet.py", line 91, in <module> main() File "zeronet.py", line 64, in main traceback.print_exc(file=open(config.log_dir + "/error.log", "a")) IOError: [Errno 2] No such file or directory: '/var/log/zeronet/error.log' In order to fix that I did: sudo mkdir /var/log/zeronet && sudo chown zeronet:zeronet /var/log/zeronet

skypher commented on 2017-11-12 18:42 (UTC)

Needs to install directory /var/log/zeronet (owned by user "zeronet").

whoami commented on 2017-09-20 05:27 (UTC)

==> Validating source files with md5sums... v0.5.7.tar.gz ... FAILED zeronet.conf ... Passed zeronet.service ... Passed ==> ERROR: One or more files did not pass the validity check!

Colibris commented on 2017-05-09 16:08 (UTC)

I'm sorry, I've been a noob here. The error comes from the "logging" python package. So it's probably a Zeronet error. I'll report it on the Github page.

Colibris commented on 2017-05-09 15:34 (UTC)

Hello, this is what Zeronet tells me: t420 env[412]: - Starting ZeroNet... t420 env[412]: Traceback (most recent call last): t420 env[412]: File "zeronet.py", line 66, in <module> t420 env[412]: main() t420 env[412]: File "zeronet.py", line 50, in main t420 env[412]: traceback.print_exc(file=open("log/error.log", "a")) t420 env[412]: IOError: [Errno 2] No such file or directory: 'log/error.log' t420 systemd[1]: zeronet.service: Main process exited, code=exited, status=1 t420 systemd[1]: zeronet.service: Unit entered failed state. t420 systemd[1]: zeronet.service: Failed with result 'exit-code'. t420 systemd[1]: zeronet.service: Service hold-off time over, scheduling res t420 systemd[1]: Stopped ZeroNet: a decentralized web platform. As you can see, there is no log/error.log file, which seems to make Zeronet crash. I report it here as it seems to be a package-related issue. Thank you.

caiye commented on 2017-05-06 08:17 (UTC)

The 'description' section in zeronet.service is too long: systemd[1]: Started Decentralized websites using Bitcoin crypto and the BitTorrent network. Chaning it to simply 'Zeronet' may be more comfortable.

redfish commented on 2017-04-21 23:58 (UTC)

@Lorax: please try latest version.

Lorax commented on 2017-03-27 07:24 (UTC)

It fails to start in system.d for me. If I run sudo systemctl status zeronet I get: zeronet.service - Decentralized websites using Bitcoin crypto and the BitTorrent network Loaded: loaded (/usr/lib/systemd/system/zeronet.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2017-03-27 18:13:53 AEDT; 2min 54s ago Main PID: 12648 (code=exited, status=1/FAILURE) Mar 27 18:13:53 Helix systemd[1]: zeronet.service: Main process exited, code=exited, status=1/FAILURE Mar 27 18:13:53 Helix systemd[1]: zeronet.service: Unit entered failed state. Mar 27 18:13:53 Helix systemd[1]: zeronet.service: Failed with result 'exit-code'. Mar 27 18:13:53 Helix systemd[1]: zeronet.service: Service hold-off time over, scheduling restart. Mar 27 18:13:53 Helix systemd[1]: Stopped Decentralized websites using Bitcoin crypto and the BitTorrent network. Mar 27 18:13:53 Helix systemd[1]: zeronet.service: Start request repeated too quickly. Mar 27 18:13:53 Helix systemd[1]: Failed to start Decentralized websites using Bitcoin crypto and the BitTorrent network. Mar 27 18:13:53 Helix systemd[1]: zeronet.service: Unit entered failed state. Mar 27 18:13:53 Helix systemd[1]: zeronet.service: Failed with result 'exit-code'.

kseistrup commented on 2016-12-29 08:50 (UTC)

@BrunoSpy the gevent issue was fixed in #1791 ⌘ https://github.com/HelloZeroNet/ZeroNet/commit/9a1735f37dfc7f9a2f734783f38ca5c8a4e9cbc3

BrunoSpy commented on 2016-12-29 08:22 (UTC)

Zeronet seems to be incompatible with python2-gevent 1.2 : "ImportError: No module named coros" Add to downgrade to python2-gevent 1.1.2

redfish commented on 2016-11-26 05:06 (UTC)

Before marking as out-of-date, please check current release at https://github.com/HelloZeroNet/ZeroNet/releases Upstream releases unconventionally: the new version is pushed to users via the ZeroNet network before that version is actually released (if you care, then please tell upstream this is not a good approach). If you want the very latest version, use the VCS package: zeronet-git

ecodinom commented on 2016-09-18 17:14 (UTC)

@redfish I have that in torrc. Not yet rebooted my machine, will investigate more after the next reboot

redfish commented on 2016-09-17 23:03 (UTC)

@ecodinom: ok. strange. do you have 'CookieAuthFileGroupReadable 1' in your torrc? Heads up -- if you manually fixed permissions, the problem will re-appear when tor restarts.

ecodinom commented on 2016-09-17 22:46 (UTC)

@redfish, thanks, control_auth_cookie permissions were set to -rw-------. Solved

redfish commented on 2016-09-17 19:16 (UTC) (edited on 2016-09-17 19:17 (UTC) by redfish)

@ecodinom: how are you running it? systemctl start zeronet? make sure you are running it as 'zeronet' user and that the 'zeronet' user belongs to group 'tor'. Run these and check your output against mine: [redfish@ucube foo]$ ls -ld /var/lib/tor-auth drwxr-x--- 2 tor tor 4096 Sep 3 05:06 /var/lib/tor-auth [redfish@ucube foo]$ ls -ld /var/lib/tor-auth/control_auth_cookie -rw-r----- 1 tor tor 32 Sep 3 05:06 /var/lib/tor-auth/control_auth_cookie [redfish@ucube foo]$ groups zeronet tor zeronet

ecodinom commented on 2016-09-17 19:03 (UTC)

I followed the post-install instruction but I still get "Tor controller connect error: IOError: [Errno 13] Permission denied: u'/var/lib/tor-auth/control_auth_cookie' in TorManager.py line 165" What am I doing wrong?

redfish commented on 2016-03-15 06:41 (UTC)

MANUAL INTERVENTION REQUIRED ON UPGRADE to 0.3.5-2: data dir is now set to /var/lib/zeronet in zeronet.conf; upgrade script will create the dir, but you need to 'mv /opt/zeronet/data/* /var/lib/zeronet/' before restarting the service. Other changes: display instructions for setting up Tor and other usage tips.

redfish commented on 2016-03-07 02:07 (UTC)

@xantares: fixed provides/conflicts, thanks. Added instructions for running daemon (via systemd) and for configuring Tor to zeronet.install.

kseistrup commented on 2016-03-06 12:01 (UTC)

@xantares what kind of error messages did you get? Zeronet needs writeable …/data and …/log directories in /opt/zeronet if they're not already there.

xantares commented on 2016-03-06 11:24 (UTC) (edited on 2016-03-06 11:27 (UTC) by xantares)

these lines are useless (it's up to package alternatives (like zeronet-git) to conflict & provide): provides=(zeronet) conflicts=(zeronet zeronet-git) I couldnt run "python2 /opt/zeronet/start.py", even from "/opt/zeronet", how to launch the server ?

redfish commented on 2016-03-03 19:43 (UTC) (edited on 2016-03-03 21:06 (UTC) by redfish)

@kseistrup: removed exec bit from .service and .conf files, thanks. @American_Jesus: no symlink to /usr/bin/zeronet because (iirc) zeronet.py assumes it is invoked from its installation dir. Packaging will be improved as soon as upstream packages itself conventionally, with distools (setup.py) and uses dependencies installed in the system instead of shipping its own. @outofdate-flagger: this package is not out of date, current release is 0.3.5: https://github.com/HelloZeroNet/ZeroNet/releases You want the VCS package zeronet-git

kseistrup commented on 2016-03-01 20:55 (UTC)

@jesus, you have to cd to /opt/zeronet before running that command — that's what the service file does.

American_Jesus commented on 2016-03-01 20:49 (UTC)

python2 /opt/zeronet/start.py ... OSError: [Errno 2] No such file or directory: 'plugins' also ln -s /opt/zeronet/start.py "$pkgdir/usr/bin/zeronet"

kseistrup commented on 2016-02-28 18:25 (UTC)

Configuration file /usr/lib/systemd/system/zeronet.service is marked executable. Please remove executable permission bits.

redfish commented on 2016-02-22 03:31 (UTC)

@fratermus, @pizzaman: fixed, thanks.

fratermus commented on 2016-02-15 19:31 (UTC)

Looks like @pizzaman is on the right track; I made the install=zeronet.install change and it installed fine.

pizzaman commented on 2016-02-07 02:16 (UTC)

==> Building and installing package ==> ERROR: install should not be an array ==> ERROR: Makepgk was unable to build zeronet. install=("zeronet.install") should be install=zeronet.install

redfish commented on 2016-01-28 04:38 (UTC)

@lamarpavel: not intentional, fixed (changed to 'any'), thanks.

lamarpavel commented on 2016-01-27 15:12 (UTC)

With arch=('armv7h') your PKGBUILD will not build on x86 systems, is this intentional?