Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/sh: 1: ../runtime/bin/openssl: Permission denied + NO PEERS FOUND Dashboard #199

Open
slrslr opened this issue Nov 28, 2022 · 1 comment

Comments

@slrslr
Copy link

slrslr commented Nov 28, 2022

Step 1: Please describe your environment

  • ZeroNet version: 0.8.2 r4610, Python 3.9.2
  • Operating system: Debian 11
  • Web browser: More than one
  • Tor status: enabled
  • Opened port: yes

Step 2: Describe the problem:

Downloaded today from https://github.com/ZeroNetX/ZeroNet/releases/latest/download/ZeroNet-linux.zip
First and repeated zeronet start:

CONNECTING...
TRACKERS ANNOUNCING: 0, ERROR: 0, DONE: 2
NO PEERS FOUND
CONTENT.JSON DOWNLOAD FAILED

Suspection regarding this is no working "bootstrap" trackers supplied by ZNX. check this similar issue for idea how to workaround it.

# ./ZeroNet.sh
- Starting ZeroNet...
[22:32:30] - Libsecpk256k1 loaded: Lib in 0.009s
[22:32:30] - Version: 0.8.2 r4610, Python 3.9.2 (default, Feb 28 2021) 
[GCC 10.2.1 20210110], Gevent: 22.10.2
[22:32:30] - Creating FileServer....
[22:32:30] - Creating UiServer....
[22:32:30] SiteManager Loading sites... (cleanup: True, startup: True)
[22:32:30] SiteManager Added 3 sites in 0.000s
[22:32:30] Site:1NAMEz..qDNv ContentDb not initialized, load files from filesystem...
[22:32:30] Site:1Sites..ZR1k ContentDb not initialized, load files from filesystem...
[22:32:30] - Removing old SSL certs...
[22:32:30] - Starting servers....
[22:32:30] Site:1HELLo..Ri9d ContentDb not initialized, load files from filesystem...
[22:32:30] Ui.UiServer --------------------------------------
[22:32:30] Ui.UiServer Web interface: http://*:80/
[22:32:30] Ui.UiServer --------------------------------------
[22:32:30] CryptConnectionManager RSA ECC SSL CAcert generation failed, CAcert or CAkey files not exist. (/bin/sh: 1: ../runtime/bin/openssl: Permission denied)
[22:32:30] Site:1NAMEz..qDNv Announce to 2 trackers in 0.015s, failed
[22:32:30] Site:1Sites..ZR1k Announce to 2 trackers in 0.015s, failed
[22:32:30] Site:1HELLo..Ri9d Announce to 2 trackers in 0.016s, failed
[22:32:30] PeerPortchecker Checked port porthereredacted (ipv4) using checkIpfingerprints result: {'ip': 'PublicIPHereRedacted', 'opened': True} in 0.401s
[22:32:30] Ui.UiServer Added PublicIPHereRedacted as allowed host
[22:32:32] PeerPortchecker Checked port porthereredacted (ipv6) using checkMyaddr result: {'ip': 'PublicIPHereRedacted', 'opened': False} in 2.208s
[22:32:32] ConnServer Server port opened ipv4: True, ipv6: False
^C[22:32:52] - Shutting down (reason: Keyboard interrupt)...

The permission line can be prevented by setting execute permission to that files: chmod +x zeronet/runtime/bin/*
(original was 644)

but the web browsers shows above mentioned. After that debug log looks like this (login: log).

What to try, anything can be done to fix this please?

@slrslr
Copy link
Author

slrslr commented Apr 20, 2023

OpenSSL bug is removed by this Linux command executed when being in zeronet root directory:

sed -i "s|../runtime/bin/openssl|openssl|" ./core/src/Crypt/CryptConnection.py

I wish canewsin apply this change on his end.

Possible workaround for the peers issue #210 (comment)

marek22k pushed a commit to marek22k/ZeroNet that referenced this issue Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant