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

[WIP - do not merge] Adding specter warden to the raspiblitz #1678

Open
wants to merge 4 commits into
base: v1.6
Choose a base branch
from

Conversation

holgern
Copy link
Contributor

@holgern holgern commented Oct 16, 2020

  • fix issue Adding specter_warden #1675
  • installs specter-warden 0.01 in /home/bitcoin/.specter using the same python environment from specter
  • creates a wsgi gateway for gunicorn
  • creates a service
  • creates a menu entry for installation

@rootzoll
Copy link
Collaborator

rootzoll commented Oct 18, 2020

Looks like a great addition. Test didnt worked ... so PR is a bit too hot for last minute addition to v1.6.1 release. Will push to v1.7 milestone - gives us a bit more time to get this right.

@rootzoll rootzoll added this to the 1.7 Release milestone Oct 18, 2020
@openoms
Copy link
Collaborator

openoms commented Oct 18, 2020

Tested too. Made it work although took a long time to load the first time. Great feature, but feels very much like an alpha state. Agree to delay merging to the next version.
Errors in the log sudo journalctl -n 100 -fuspecter-warden:

Oct 18 18:04:41 DIY gunicorn[18909]: OSError: [Errno 0] Error
Oct 18 18:04:41 DIY gunicorn[18909]: [2020-10-18 18:04:41 +0100] [18897] [ERROR] Socket error processing request.
Oct 18 18:04:41 DIY gunicorn[18909]: Traceback (most recent call last):
Oct 18 18:04:41 DIY gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 133, in handle
Oct 18 18:04:41 DIY gunicorn[18909]:     req = next(parser)
Oct 18 18:04:41 DIY gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/http/parser.py", line 41, in __next__
Oct 18 18:04:41 DIY gunicorn[18909]:     self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count)
Oct 18 18:04:41 DIY gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/http/message.py", line 186, in __init__
Oct 18 18:04:41 DIY gunicorn[18909]:     super().__init__(cfg, unreader)
Oct 18 18:04:41 DIY gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/http/message.py", line 53, in __init__
Oct 18 18:04:41 DIY gunicorn[18909]:     unused = self.parse(self.unreader)
Oct 18 18:04:41 DIY gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/http/message.py", line 198, in parse
Oct 18 18:04:41 DIY gunicorn[18909]:     self.get_data(unreader, buf, stop=True)
Oct 18 18:04:41 DIY gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/http/message.py", line 189, in get_data
Oct 18 18:04:41 DIY gunicorn[18909]:     data = unreader.read()
Oct 18 18:04:41 DIY gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/http/unreader.py", line 37, in read
Oct 18 18:04:41 rpi gunicorn[18909]:     d = self.chunk()
Oct 18 18:04:41 rpi gunicorn[18909]:   File "/home/bitcoin/.specter/.env/lib/python3.7/site-packages/gunicorn/http/unreader.py", line 64, in chunk
Oct 18 18:04:41 rpi gunicorn[18909]:     return self.sock.recv(self.mxchunk)
Oct 18 18:04:41 rpi gunicorn[18909]:   File "/usr/lib/python3.7/ssl.py", line 1037, in recv
Oct 18 18:04:41 rpi gunicorn[18909]:     return self.read(buflen)
Oct 18 18:04:41 rpi gunicorn[18909]:   File "/usr/lib/python3.7/ssl.py", line 913, in read
Oct 18 18:04:41 rpi gunicorn[18909]:     return self._sslobj.read(len)
Oct 18 18:04:41 rpi gunicorn[18909]: OSError: [Errno 0] Error

@holgern holgern changed the title Adding specter warden to the raspiblitz [WIP - do not merge] Adding specter warden to the raspiblitz Nov 30, 2020
@rootzoll
Copy link
Collaborator

@holgern can you rebase the PR on the dev branch?

@holgern
Copy link
Contributor Author

holgern commented Mar 18, 2021

Yes I can do this and I will also update to 0.91
I shortly tested specter warden 0.91 with specter desktop 1.2.2 and there are some problems with valid SSL certificates

@rootzoll
Copy link
Collaborator

We will have a next lightning hacksprint on 27/28th this month. If you like you can finalize the PR and get help on the SSL cert on that weekend: https://wiki.fulmo.org/wiki/Lightning_HackSprint_March_2021

@rootzoll
Copy link
Collaborator

@holgern should I add the "Specter Warden" project to the challenges for the Hacksprint this weekend?
https://wiki.fulmo.org/wiki/Lightning_HackSprint_March_2021

You dont need to be around all time, but being reachable (over the fulmo mattermost and responsible here on GitHub) would be optimal. I can prepare this PR to be testable on the v1.7RC1 for the event.

@rootzoll rootzoll modified the milestones: 1.7 Release, 1.7.1 Release Mar 23, 2021
@rootzoll rootzoll modified the milestones: 1.7.1 Release, 1.8.1 Release Apr 7, 2021
@nyxnor
Copy link
Contributor

nyxnor commented May 3, 2021

@holgern Do you plan to continue this PR? If not, I will give it a try.

I shortly tested specter warden 0.91 with specter desktop 1.2.2 and there are some problems with valid SSL certificates

The hidden service works fine and just the specter desktop app is not working?

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

Successfully merging this pull request may close these issues.

None yet

4 participants