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

Problem connecting Arris Connectbox #3

Open
guyke01 opened this issue May 14, 2020 · 4 comments
Open

Problem connecting Arris Connectbox #3

guyke01 opened this issue May 14, 2020 · 4 comments
Labels
help wanted Extra attention is needed upstream issue Requires changes in upstream dependencies

Comments

@guyke01
Copy link

guyke01 commented May 14, 2020

When connecting to the Arris Connectbox the following error occurs in the Docker Container of Connectbox-Prometheus. See the error below:

Exception happened during processing of request from ('172.17.0.1', 41560)

Traceback (most recent call last):

 File "/usr/local/lib/python3.8/socketserver.py", line 650, in process_request_thread

    self.finish_request(request, client_address)

  File "/usr/local/lib/python3.8/socketserver.py", line 360, in finish_request

    self.RequestHandlerClass(request, client_address, self)

  File "/usr/local/lib/python3.8/socketserver.py", line 720, in __init__

    self.handle()

  File "/usr/local/lib/python3.8/http/server.py", line 427, in handle

    self.handle_one_request()

  File "/usr/local/lib/python3.8/http/server.py", line 415, in handle_one_request
�
    method()

  File "/usr/local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 152, in do_GET

    output = encoder(registry)

  File "/usr/local/lib/python3.8/site-packages/prometheus_client/openmetrics/exposition.py", line 14, in generate_latest

    for metric in registry.collect():

  File "/usr/local/lib/python3.8/site-packages/prometheus_client/registry.py", line 75, in collect

    for metric in collector.collect():

  File "/usr/local/lib/python3.8/site-packages/connectbox_prometheus-0.2.6-py3.8.egg/connectbox_exporter/connectbox_exporter.py", line 58, in collect

    connectbox.login()

  File "/usr/local/lib/python3.8/site-packages/compal/__init__.py", line 202, in login

    if res.headers["Location"].endswith("common_page/Access-denied.html"):

  File "/usr/local/lib/python3.8/site-packages/requests/structures.py", line 54, in __getitem__

    return self._store[key.lower()][1]

KeyError: 'location'

----------------------------------------

ERROR:compal:Was not redirected to login page: concurrent session?
@guyke01
Copy link
Author

guyke01 commented Jul 19, 2020

Hi, is there any update on this issue?

@mbugert
Copy link
Owner

mbugert commented Jul 29, 2020

Thanks for posting. Overall it looks like an incompatibility with this type of modem in the upstream compal library.

I assume this issue is reproducible, i.e. login always fails? Could you please post some details on the device that you are using, possibly by adding a photo of the device? I googled for it but didn't find any useful info.

@guyke01
Copy link
Author

guyke01 commented Jul 29, 2020

Hi, I am using the Arris Modem from Ziggo (Netherlands). I have the model Arris TG2492LG-ZG.
https://tweakers.net/pricewatch/789051/ziggo-connect-box/specificaties/

I found some other Github post for the Arris Modem like the following
https://github.com/andrewfraley/arris_cable_modem_stats

The error is still the same as the first post.

@mbugert
Copy link
Owner

mbugert commented Jul 29, 2020

Okay. We will need to fix it upstream in compal. I created an issue: 👉 ties/compal_CH7465LG_py#21 👈

The library in your second link seems to target a different device so I don't expect it to be helpful for this particular issue.

@mbugert mbugert added help wanted Extra attention is needed upstream issue Requires changes in upstream dependencies labels Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed upstream issue Requires changes in upstream dependencies
Projects
None yet
Development

No branches or pull requests

2 participants