algirdasc / hass-eso

ESO Energy Consumption Statistics for Home Assistant
11 stars 4 forks source link

Neateina duomenys #17

Open PsYcHLT opened 3 weeks ago

PsYcHLT commented 3 weeks ago

Sveiki,

Neateina niekaip duomenys iš ESO, palikau HA šiek tiek paveikti, nuėjau į logus ir radau tokį error. Naudoju naujausią versiją. Auth turėtų veikti, kadangi opakeitus pass į blogą išmetama kitokia klaida.

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/eso/eso_client.py:35
integration: ESO Energy Consumption (documentation, issues)
First occurred: 2:42:51 PM (1 occurrences)
Last logged: 2:42:51 PM

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 716, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 468, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 463, in _make_request
    httplib_response = conn.getresponse()
                       ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 802, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 552, in increment
    raise six.reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 716, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 468, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 463, in _make_request
    httplib_response = conn.getresponse()
                       ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/eso/__init__.py", line 87, in async_import_generation
    await hass.async_add_executor_job(client.login)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/eso/eso_client.py", line 35, in login
    response = self.session.post(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 682, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
algirdasc commented 3 weeks ago

Iš klaidos, panašu, kad ryšio problemos.

PsYcHLT commented 2 weeks ago

Na jau savaitė praėjo, duomenų vis dar 0...

algirdasc commented 2 weeks ago

Reikėtų daugiau konteksto:

  1. Kaip HA paleistas? Dockeryje? HASSOS?
  2. Ar iš to kompiuterio, kuriame sukasi HA, gali paieskti mano.eso.lt? Ką rašto paleidus komandą curl -v https://mano.eso.lt?
  3. Ar neveikė nuo pat pradžių ar po kažkurio atnaujinimo?
PsYcHLT commented 2 weeks ago
  1. Paleistas kaip proxmox VM based on debian
  2. 
    ➜  ~ curl -v https://mano.eso.lt
    * Host mano.eso.lt:443 was resolved.
    * IPv6: 2606:4700:20::681a:5e2, 2606:4700:20::ac43:49e2, 2606:4700:20::681a:4e2
    * IPv4: 104.26.4.226, 104.26.5.226, 172.67.73.226
    *   Trying 104.26.4.226:443...
    * Connected to mano.eso.lt (104.26.4.226) port 443
    * ALPN: curl offers h2,http/1.1
    * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    *  CAfile: /etc/ssl/certs/ca-certificates.crt
    *  CApath: /etc/ssl/certs
    * TLSv1.3 (IN), TLS handshake, Server hello (2):
    * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
    * TLSv1.3 (IN), TLS handshake, Certificate (11):
    * TLSv1.3 (IN), TLS handshake, CERT verify (15):
    * TLSv1.3 (IN), TLS handshake, Finished (20):
    * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
    * TLSv1.3 (OUT), TLS handshake, Finished (20):
    * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / id-ecPublicKey
    * ALPN: server accepted h2
    * Server certificate:
    *  subject: CN=eso.lt
    *  start date: Sep  4 03:25:54 2024 GMT
    *  expire date: Dec  3 03:25:53 2024 GMT
    *  subjectAltName: host "mano.eso.lt" matched cert's "*.eso.lt"
    *  issuer: C=US; O=Google Trust Services; CN=WE1
    *  SSL certificate verify ok.
    *   Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA256
    *   Certificate level 1: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384
    *   Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
    * using HTTP/2
    * [HTTP/2] [1] OPENED stream for https://mano.eso.lt/
    * [HTTP/2] [1] [:method: GET]
    * [HTTP/2] [1] [:scheme: https]
    * [HTTP/2] [1] [:authority: mano.eso.lt]
    * [HTTP/2] [1] [:path: /]
    * [HTTP/2] [1] [user-agent: curl/8.9.1]
    * [HTTP/2] [1] [accept: */*]
    > GET / HTTP/2
    > Host: mano.eso.lt
    > User-Agent: curl/8.9.1
    > Accept: */*
    > 
    * Request completely sent off
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    < HTTP/2 200 
    < date: Mon, 30 Sep 2024 18:02:44 GMT
    < content-type: text/html; charset=UTF-8
    < x-content-type-options: nosniff
    < x-content-type-options: nosniff
    < cache-control: must-revalidate, no-cache, private
    < x-drupal-dynamic-cache: UNCACHEABLE
    < content-language: lt
    < x-frame-options: SAMEORIGIN
    < expires: Sun, 19 Nov 1978 05:00:00 GMT
    < content-security-policy: report-uri /report-csp-violation
    < x-xss-protection: 1; mode=block
    < strict-transport-security: max-age=15552000
    < referrer-policy: strict-origin
    < x-drupal-cache: HIT
    < vary: Accept-Encoding
    < set-cookie: eso_cookie=rd9o00000000000000000000ffff0a0a648co80; path=/; Httponly; Secure
    < set-cookie: TS0182e471=014ec392150dbb9a668d55161c54a4635cfc2130de667f295f8b39ce28eab8eea3c44cdc1fe6887848e8c8c78ed11bfdc217b23b04; Path=/; Domain=.mano.eso.lt
    < cf-cache-status: DYNAMIC
    < report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=s9NxOfmIXClkYMYpik4iM91fqshcKx0mNy%2FK3nA5LHTGvmYxFcI%2B7R0oJQYE2s7rqnasbmREr%2F4yAks%2FGMbRhu9lnLV5A71kO0x9oNiPAGVjSV45PgxDJNAhUB2N"}],"group":"cf-nel","max_age":604800}
    < nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    < server: cloudflare
    < cf-ray: 8cb6202d1ab2cc2f-VNO
    < 
    <!DOCTYPE html>
    <html lang="lt" dir="ltr">
    <head>
    <meta charset="utf-8" />
    <script type="text/javascript" id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="3e5bf897-5c6d-4ea2-bfb0-33ef75b5b2da" async="async"></script>
    <script src="/sites/default/files/hotjar/hotjar.script.js?sjz35z" data-cookieconsent="statistics" type="text/plain"></script>
    <meta name="baggage" content="sentry-trace_id=bb803c64ae9f4d2eb294518e5d4d7e26,sentry-public_key=b6f50eb1c536419292ed95b22ac2ff92,sentry-environment=prod" />
    <meta name="sentry-trace" content="bb803c64ae9f4d2eb294518e5d4d7e26-e24855af68d14e0d" />
    <meta name="traceparent" content="00-bb803c64ae9f4d2eb294518e5d4d7e26-e24855af68d14e0d-00" />
    <meta name="MobileOptimized" content="width" />
    <meta name="HandheldFriendly" content="true" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link rel="icon" href="/themes/esos/favicon.ico" type="image/vnd.microsoft.icon" />
    
    <title>Prisijungti | ESO savitarna</title>
    <meta name="format-detection" content="telephone=no">
    <meta property="og:image" content="https://mano.eso.lt/themes/esos/images/logo.png"/>
    <meta property="og:image:width" content="320" />
    <meta property="og:image:height" content="249" />
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i&display=swap&subset=latin-ext" rel="stylesheet">
    <link rel="stylesheet" media="all" href="/sites/default/files/css/css_vMMEgE7SfsFto9vTMAxCbvidLahqqJITlr4sRMIXLfE.css?delta=0&amp;language=lt&amp;theme=esos&amp;include=eJxtTlsOwjAMu1BZj1RlrcnK2mZawspuD4IJiceP5ZdkQyXEicz3nBjmVtrQ_BOdSsxUQkXKFEpus_pfa7AJFU53NVQ_ksJBRT0XGamc1PZHjR2LcEEwYs9WPyXxtx7oQjcXReaMUcy_2b9PZ2lG_TFaMUSpizQ0e51YSLXLmsKW0YPGNS9HUoQZSa52uHcpEWeO" />
    <link rel="stylesheet" media="all" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
    <link rel="stylesheet" media="all" href="/sites/default/files/css/css_et6BFRwEbg-vcKbDnO_wustGzn441yc2LNt_rmEFrqE.css?delta=2&amp;language=lt&amp;theme=esos&amp;include=eJxtTlsOwjAMu1BZj1RlrcnK2mZawspuD4IJiceP5ZdkQyXEicz3nBjmVtrQ_BOdSsxUQkXKFEpus_pfa7AJFU53NVQ_ksJBRT0XGamc1PZHjR2LcEEwYs9WPyXxtx7oQjcXReaMUcy_2b9PZ2lG_TFaMUSpizQ0e51YSLXLmsKW0YPGNS9HUoQZSa52uHcpEWeO" />
    <link rel="stylesheet" media="all" href="/sites/default/files/css/css_JbpxToCmZzCXne3HYFgpDzpbbtRq83OkQP9mOc4IMig.css?delta=3&amp;language=lt&amp;theme=esos&amp;include=eJxtTlsOwjAMu1BZj1RlrcnK2mZawspuD4IJiceP5ZdkQyXEicz3nBjmVtrQ_BOdSsxUQkXKFEpus_pfa7AJFU53NVQ_ksJBRT0XGamc1PZHjR2LcEEwYs9WPyXxtx7oQjcXReaMUcy_2b9PZ2lG_TFaMUSpizQ0e51YSLXLmsKW0YPGNS9HUoQZSa52uHcpEWeO" />
    
    </head>
    <body>
            <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NBVSM5Z"
                  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    
    <a href="#main-content" class="visually-hidden focusable">
      Pereiti į pagrindinį turinį
    </a>
      <div class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas>
    <div class="layout-container--logged-out">
    <header role="banner">
    <div class="logged-in-header-wrapper">
    <div class="logo-cl">
      <a href="/" title="Pirmas" rel="home">
        <img src="/themes/esos/images/logo.svg" alt="Pirmas" />
      </a>
    </div>
    <div class="text-cl">
      <div class="text-wrapper">
        Energijos skirstymo operatoriaus savitarna
      </div>
    </div>
    </div>
    </header>
    <div>
    <div data-drupal-messages-fallback class="hidden"></div>
    
    </div>
    
    <main role="main">
    <a id="main-content" tabindex="-1"></a>    <div class="layout-content">
      <div class="container wrapped-container loggedout-page-wrapper">
          <div>
    <div id="block-esos-page-title">
    
    <div class="page-block-title">
    <h1>Prisijungti</h1>
    </div>
    
    </div>
    <div class="block-content-box class-system_main_block">
    <div id="block-esos-pagrindiniopuslapioturinys">
    
            <form class="user-login-form" data-drupal-selector="user-login-form" novalidate="novalidate" autocomplete="off" action="/" method="post" id="user-login-form" accept-charset="UTF-8">
    <div class="login-form-toggler">
    <div class="login-option">
      <label class="login-radio">
        <input type="radio" name="login_type" value="1" />
        <span class="radio-text">Namams</span>
      </label>
    </div>
    <div class="login-option">
      <label class="login-radio">
        <input type="radio" name="login_type" value="2" />
        <span class="radio-text">Verslui</span>
      </label>
    </div>
    </div>
    <div class="login-form-bg">
    <h2 class="login-form-title">Prisijunkite prie savitarnos</h2>
    <div class="js-form-item form-item js-form-type-email form-item-name js-form-item-name">
    <div class="form-element-layout">
        <div class="form-element-left">
                <label for="edit-name" class="js-form-required form-required">El. paštas</label>
                </div>
        <div class="form-element-right">
            <div class="input-type type-email">
        <input autocorrect="none" autocapitalize="none" spellcheck="false" autofocus="autofocus" autocomplete="username" data-drupal-selector="edit-name" aria-describedby="edit-name--description" type="email" id="edit-name" name="name" value="" size="60" maxlength="254" class="form-email required" required="required" aria-required="true" />
    
      </div>
                                <div id="edit-name--description" class="description">
          Įveskite el.pašto adresą
        </div>
          </div>
    </div>
    </div>
    <div class="js-form-item form-item js-form-type-password form-item-pass js-form-item-pass">
    <div class="form-element-layout">
        <div class="form-element-left">
                <label for="edit-pass" class="js-form-required form-required">Slaptažodis</label>
                </div>
        <div class="form-element-right">
            <div class="input-type type-password">
  </div>
                            <div id="edit-pass--description" class="description">
      Įveskite slaptažodį
    </div>
      </div>

Negaliu prisijungtiNegaliu prisijungti

        <a class="forgot-password-link" href="/user/password ">Pamiršau slaptažodį</a>

  </div>

Arba prisijunkite per:

            <div class="register-block">
      Dar neturite paskyros?
                                      <a class="btn btn-secondary" data-business-link="/user/register-initial-business-data" data-private-link="/user/register" href="/user/register">Registruotis</a>
    </div>
          </div>
</div>  </main>

<script type="application/json" data-drupal-selector="drupal-settings-json">{"path":{"baseUrl":"\/","pathPrefix":"","currentPath":"user\/login","currentPathIsAdmin":false,"isFront":true,"currentLanguage":"lt","themePath":"themes\/esos"},"pluralDelimiter":"\u0003","suppressDeprecationErrors":true,"ajaxPageState":{"libraries":"eJxtjl0OwyAMgy_EypFQClmaFQhqsrLeflW3PuznxbK_WHKiyMw4ivl4OocqIU5gvnMiPLJ6yjJCvqhtmSu9WBYiTHK3oHHh9m42UO2ypLAy9vNCIpQxGJCnXb7zADd4fMLiFlix-kOdSmTIoWBiCPsHs_qrVIO-TxYcopQmFav9K_6iwSYs6HRTw-JHUHwCnKxnjg","theme":"esos","theme_token":null},"ajaxTrustedUrl":{"form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM":true},"jquery":{"ui":{"datepicker":{"isRTL":false,"firstDay":0,"langCode":"lt"}}},"gtm":{"tagId":null,"settings":{"data_layer":"dataLayer","include_environment":false},"tagIds":["GTM-NBVSM5Z"]},"gtag":{"tagId":"","consentMode":false,"otherIds":[],"events":[],"additionalConfigInfo":[]},"eso_chat":{"api_key":"eso2568frtReWeb","auto_show_interval":300000},"raven":{"options":{"dsn":"https:\/\/b6f50eb1c536419292ed95b22ac2ff92@sentry.ignitis.lt\/3","environment":"prod","integrations":[],"autoSessionTracking":false,"sendClientReports":false},"showReportDialog":false,"browserTracingOptions":{"enableInp":false}},"cookiebot":{"message_placeholder_cookieconsent_optout_marketing_show":false,"message_placeholder_cookieconsent_optout_marketing":"\u003Cdiv class=\u0022cookiebot cookieconsent-optout-marketing\u0022\u003E\n\t\u003Cdiv class=\u0022cookieconsent-optout-marketing__inner\u0022\u003E\n\t\t\u003Cp\u003EPlease \u003Ca class=\u0022cookieconsent-optout-marketing__cookiebot-renew\u0022 href=\u0022!cookiebot_renew\u0022\u003Eaccept marketing-cookies\u003C\/a\u003E to view this embedded content from \u003Ca class=\u0022cookieconsent-optout-marketing__from-src-url\u0022 href=\u0022!cookiebot_from_src_url\u0022 target=\u0022_blank\u0022\u003E!cookiebot_from_src_url\u003C\/a\u003E\u003C\/p\u003E\n\n\t\u003C\/div\u003E\n\u003C\/div\u003E\n"},"user":{"uid":0,"permissionsHash":"0b711d2ef612f9108485c0ff1a4d41644550409ec0540738d0d1fc8f7704bdaf"}}</script>
  </body>

  1. Neveikia nuo pat pradžių.
PsYcHLT commented 3 days ago

Gal turite idėjų kas gali būti?