Timeout bei cloud backup

Fragen zur Nutzung, Features, usw..
Antworten
masi79
Beiträge: 74
Registriert: Fr Dez 11, 2020 7:17 am

Timeout bei cloud backup

Beitrag von masi79 »

Ich habe seit ca. 2 Wochen ein neues Problem beim cloud backup und aktualisiere regelmäßig den master. Das Skript läuft auf einen timeout. Das liegt an der Anbindung per DLAN, was ziemlich lahm ist... Kann es sein, dass hier der timeout kürzer gesetzt wurde in den neuesten Releases?

Code: Alles auswählen

Bei der Verarbeitung des Befehls 'createCloudBackup' mit den Parametern '[object Object]' ist ein Fehler aufgetreten:
Es ist ein interner Fehler aufgetreten: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.9/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1049, in _send_output
    self.send(chunk)
  File "/usr/lib/python3.9/http/client.py", line 971, in send
    self.sock.sendall(data)
  File "/usr/lib/python3.9/ssl.py", line 1204, in sendall
    v = self.send(byte_view[count:])
  File "/usr/lib/python3.9/ssl.py", line 1173, in send
    return self._sslobj.write(data)
socket.timeout: The write operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/command.py", line 127, in on_message
    func(connection_id, payload)
  File "/var/www/html/openWB/packages/helpermodules/command.py", line 686, in createCloudBackup
    SubData.system_data["system"].create_backup_and_send_to_cloud()
  File "/var/www/html/openWB/packages/helpermodules/system.py", line 97, in create_backup_and_send_to_cloud
    self.backup_cloud.update(backup_filename, data)
  File "/var/www/html/openWB/packages/modules/common/configurable_backup_cloud.py", line 15, in update
    self.__component_updater(backup_filename, backup_file)
  File "/var/www/html/openWB/packages/modules/backup_clouds/nextcloud/backup_cloud.py", line 36, in updater
    upload_backup(config.configuration, backup_filename, backup_file)
  File "/var/www/html/openWB/packages/modules/backup_clouds/nextcloud/backup_cloud.py", line 25, in upload_backup
    req.get_http_session().put(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 602, in put
    return self.request('PUT', url, data=data, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', timeout('The write operation timed out'))
LutzB
Beiträge: 3801
Registriert: Di Feb 25, 2020 9:23 am
Has thanked: 4 times
Been thanked: 26 times

Re: Timeout bei cloud backup

Beitrag von LutzB »

Der Timeout tritt schon bei dem Verbindungsaufbau auf. Das hat nichts mit "lahmer Verbindung" zu tun, sondern mit "keine Antwort vom Server". Angepasst wurde da nichts.
Antworten