Cron <tresorier@gestion> cd ~/gestion/controle_cotisation && ./main.py 1> /dev/null #28

Closed
opened 2024-08-14 13:21:52 +02:00 by neox · 1 comment
Owner

Suite à la panne sur le site de Fontainebleau (cominfra/infra-generale#195) la forge était inaccessible, entraînant l'erreur suivante :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 704, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1045, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 467, in connect
    _match_hostname(cert, self.assert_hostname or server_hostname)
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 540, in _match_hostname
    match_hostname(cert, asserted_hostname)
  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_match_hostname.py", line 155, in match_hostname
    raise CertificateError("hostname %r doesn't match %r" % (hostname, dnsnames[0]))
urllib3.util.ssl_match_hostname.CertificateError: hostname 'forge.a-lec.org' doesn't match 'leparc.libre-en-communs.org'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 788, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='forge.a-lec.org', port=443): Max retries exceeded with url: /api/v1/repos/cominfra/mail/issues?access_token=59a366c0dd0331b09dd68df57eac501523f2351e&state=open&labels=968&q=Cr%C3%A9ation+d%27un+compte+courriel+membre+n%C2%B039 (Caused by SSLError(CertificateError("hostname 'forge.a-lec.org' doesn't match 'leparc.libre-en-communs.org'")))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 456, in <module>
    main()
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 437, in main
    check_expired_unpaid()
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 330, in check_expired_unpaid
    if notify_unpaid(record):
       ^^^^^^^^^^^^^^^^^^^^^
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 226, in notify_unpaid
    if not check_email_created(member):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 188, in check_email_created
    answer1 = git_mail_ticket_read(request)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tresorier/gestion/controle_cotisation/./main.py", line 65, in git_mail_ticket_read
    response: requests.Response = requests.get('https://forge.a-lec.org/api/v1/repos/{}/{}/issues?access_token={}'.format("cominfra", "mail", git_get_secret()), params=req)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 563, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='forge.a-lec.org', port=443): Max retries exceeded with url: /api/v1/repos/cominfra/mail/issues?access_token=59a366c0dd0331b09dd68df57eac501523f2351e&state=open&labels=968&q=Cr%C3%A9ation+d%27un+compte+courriel+membre+n%C2%B039 (Caused by SSLError(CertificateError("hostname 'forge.a-lec.org' doesn't match 'leparc.libre-en-communs.org'")))

Cette erreur a été reçue par courriel pendant plusieurs jours, jusqu'à migration de la forge sur le site Le Parc

Suite à la panne sur le site de Fontainebleau (https://forge.a-lec.org/cominfra/infra-generale/issues/195) la forge était inaccessible, entraînant l'erreur suivante : ``` Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 704, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request self._validate_conn(conn) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1045, in _validate_conn conn.connect() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 467, in connect _match_hostname(cert, self.assert_hostname or server_hostname) File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 540, in _match_hostname match_hostname(cert, asserted_hostname) File "/usr/lib/python3/dist-packages/urllib3/util/ssl_match_hostname.py", line 155, in match_hostname raise CertificateError("hostname %r doesn't match %r" % (hostname, dnsnames[0])) urllib3.util.ssl_match_hostname.CertificateError: hostname 'forge.a-lec.org' doesn't match 'leparc.libre-en-communs.org' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 788, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='forge.a-lec.org', port=443): Max retries exceeded with url: /api/v1/repos/cominfra/mail/issues?access_token=59a366c0dd0331b09dd68df57eac501523f2351e&state=open&labels=968&q=Cr%C3%A9ation+d%27un+compte+courriel+membre+n%C2%B039 (Caused by SSLError(CertificateError("hostname 'forge.a-lec.org' doesn't match 'leparc.libre-en-communs.org'"))) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/tresorier/gestion/controle_cotisation/./main.py", line 456, in <module> main() File "/home/tresorier/gestion/controle_cotisation/./main.py", line 437, in main check_expired_unpaid() File "/home/tresorier/gestion/controle_cotisation/./main.py", line 330, in check_expired_unpaid if notify_unpaid(record): ^^^^^^^^^^^^^^^^^^^^^ File "/home/tresorier/gestion/controle_cotisation/./main.py", line 226, in notify_unpaid if not check_email_created(member): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/tresorier/gestion/controle_cotisation/./main.py", line 188, in check_email_created answer1 = git_mail_ticket_read(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/tresorier/gestion/controle_cotisation/./main.py", line 65, in git_mail_ticket_read response: requests.Response = requests.get('https://forge.a-lec.org/api/v1/repos/{}/{}/issues?access_token={}'.format("cominfra", "mail", git_get_secret()), params=req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 563, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='forge.a-lec.org', port=443): Max retries exceeded with url: /api/v1/repos/cominfra/mail/issues?access_token=59a366c0dd0331b09dd68df57eac501523f2351e&state=open&labels=968&q=Cr%C3%A9ation+d%27un+compte+courriel+membre+n%C2%B039 (Caused by SSLError(CertificateError("hostname 'forge.a-lec.org' doesn't match 'leparc.libre-en-communs.org'"))) ``` Cette erreur a été reçue par courriel pendant plusieurs jours, jusqu'à migration de la forge sur le site Le Parc
neox added the
bogue
label 2024-08-14 13:21:52 +02:00
Author
Owner

L'erreur ne se produit plus depuis le 13 août 2024 23:22:06, considéré résolu

L'erreur ne se produit plus depuis le 13 août 2024 23:22:06, considéré résolu
neox added the
résolu
label 2024-08-14 13:22:33 +02:00
neox closed this issue 2024-08-20 10:19:29 +02:00
Sign in to join this conversation.
No description provided.