fHDHR / fHDHR_plugin_origin_ceton

Do What The F*ck You Want To Public License
1 stars 4 forks source link

Upgraded fHDHR and Plugins with git pull, doesn't work again #13

Closed JSylvia007 closed 3 years ago

JSylvia007 commented 3 years ago

Hey guys... Back again...

All that I did was a git pull for the main fHDHR repo, and the 3 plugin repos that I use (fHDHR_plugin_interface_hdhr, fHDHR_plugin_origin_ceton, and fHDHR_plugin_stream_ffmpeg), and now it won't start again. I then ran the pip command to install the requirements, and got a little farther. I think what I'm seeing now is that something is missing from my config, but I can't decipher exactly what's missing... here's the crashlog...

Checking and Installing Core Dependencies.
[2021-03-06 10:41:07,061] NOOB - Loading fHDHR v0.9.0-beta with fHDHR_web v0.9.0-beta
Traceback (most recent call last):
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/opt/fHDHR/lib/python3.8/site-packages/gevent/_socketcommon.py", line 230, in getaddrinfo
    addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags)
  File "/opt/fHDHR/lib/python3.8/site-packages/gevent/resolver/thread.py", line 63, in getaddrinfo
    return self.pool.apply(_socket.getaddrinfo, args, kwargs)
  File "/opt/fHDHR/lib/python3.8/site-packages/gevent/pool.py", line 161, in apply
    return self.spawn(func, *args, **kwds).get()
  File "src/gevent/event.py", line 305, in gevent._gevent_cevent.AsyncResult.get
  File "src/gevent/event.py", line 335, in gevent._gevent_cevent.AsyncResult.get
  File "src/gevent/event.py", line 323, in gevent._gevent_cevent.AsyncResult.get
  File "src/gevent/event.py", line 303, in gevent._gevent_cevent.AsyncResult._raise_exception
  File "/opt/fHDHR/lib/python3.8/site-packages/gevent/_compat.py", line 65, in reraise
    raise value.with_traceback(tb)
  File "/opt/fHDHR/lib/python3.8/site-packages/gevent/threadpool.py", line 142, in __run_task
    thread_result.set(func(*args, **kwargs))
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.8/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/lib/python3.8/http/client.py", line 950, in send
    self.connect()
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6949da2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fHDHR/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/opt/fHDHR/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='none', port=80): Max retries exceeded with url: /stream_request.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6949da2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fHDHR/fHDHR/main.py", line 27, in <module>
    sys.exit(run.main(SCRIPT_DIR, fHDHR_web, deps))
  File "/opt/fHDHR/fHDHR/fHDHR/cli/run.py", line 129, in main
    returned_code = start(args, script_dir, fHDHR_web, deps)
  File "/opt/fHDHR/fHDHR/fHDHR/cli/run.py", line 109, in start
    return run(settings, logger, db, script_dir, fHDHR_web, plugins, versions, web, scheduler, deps)
  File "/opt/fHDHR/fHDHR/fHDHR/cli/run.py", line 32, in run
    fhdhr = fHDHR_OBJ(settings, logger, db, plugins, versions, web, scheduler, deps)
  File "/opt/fHDHR/fHDHR/fHDHR/__init__.py", line 42, in __init__
    self.fhdhr.origins = Origins(self.fhdhr)
  File "/opt/fHDHR/fHDHR/fHDHR/origins/__init__.py", line 25, in __init__
    self.origin_selfadd()
  File "/opt/fHDHR/fHDHR/fHDHR/origins/__init__.py", line 43, in origin_selfadd
    self.origins_dict[method] = self.fhdhr.plugins.plugins[plugin_name].Plugin_OBJ(plugin_utils)
  File "/opt/fHDHR/fHDHR/plugins/fHDHR_plugin_origin_ceton/origin/__init__.py", line 15, in __init__
    self.startstop_ceton_tuner(i, 0)
  File "/opt/fHDHR/fHDHR/plugins/fHDHR_plugin_origin_ceton/origin/__init__.py", line 87, in startstop_ceton_tuner
    StartStopUrlReq = self.plugin_utils.web.session.post(StartStopUrl, StartStop_data)
  File "/opt/fHDHR/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/opt/fHDHR/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/fHDHR/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/fHDHR/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='none', port=80): Max retries exceeded with url: /stream_request.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6949da2e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
deathbybandaid commented 3 years ago

Looks like trouble connecting to your Ceton device.

@DanAustinGH will add some better handling for the error.

However, nothing should* have changed to effect the ceton plugin. My instincts are that something has changed with your network, or your access to your Ceton device.

JSylvia007 commented 3 years ago

SONOFAB**CH... Somehow my config got moved when I did the update...