Subject: Guix Pull Failure: Git SSL Error, Directory Cleanup Error, and Software Heritage API Timeout

From: outlook user <[email-masked]>
Date: Wed, 18 Dec 2024 10:29:19 +0000

```
$ guix pull --channels=$PATH/channels.scm
_rmtree_safe_fd(dirfd, fullname, onerror)
_rmtree_safe_fd(fd, path, onerror)
_shutil.rmtree(name, onerror=onerror)
do = self.iter(retry_state=retry_state)
During handling of the above exception, another exception occurred:
File "/opt/swh/.local/lib/python3.10/site-packages/swh/core/api/__init__.py", line 196, in meth_
File "/opt/swh/.local/lib/python3.10/site-packages/swh/core/api/__init__.py", line 356, in _post
File "/opt/swh/.local/lib/python3.10/site-packages/swh/core/api/__init__.py", line 433, in raise_for_status
File "/opt/swh/.local/lib/python3.10/site-packages/swh/core/api/__init__.py", line 443, in _decode_response
File "/opt/swh/.local/lib/python3.10/site-packages/swh/storage/api/client.py", line 45, in raise_for_status
File "/opt/swh/.local/lib/python3.10/site-packages/swh/storage/proxies/retry.py", line 81, in newf
File "/opt/swh/.local/lib/python3.10/site-packages/swh/vault/cookers/base.py", line 135, in cook
File "/opt/swh/.local/lib/python3.10/site-packages/swh/vault/cookers/git_bare.py", line 155, in prepare_bundle
File "/opt/swh/.local/lib/python3.10/site-packages/swh/vault/cookers/git_bare.py", line 168, in prepare_bundle
File "/opt/swh/.local/lib/python3.10/site-packages/swh/vault/cookers/git_bare.py", line 418, in load_objects
File "/opt/swh/.local/lib/python3.10/site-packages/swh/vault/cookers/git_bare.py", line 647, in load_directories
File "/opt/swh/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 185, in reraise
File "/opt/swh/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 336, in wrapped_f
File "/opt/swh/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 376, in iter
File "/opt/swh/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 418, in exc_check
File "/opt/swh/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 475, in __call__
File "/opt/swh/.local/lib/python3.10/site-packages/tenacity/__init__.py", line 478, in __call__
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 451, in result
File "/usr/local/lib/python3.10/shutil.py", line 658, in _rmtree_safe_fd
File "/usr/local/lib/python3.10/shutil.py", line 662, in _rmtree_safe_fd
File "/usr/local/lib/python3.10/shutil.py", line 664, in _rmtree_safe_fd
File "/usr/local/lib/python3.10/shutil.py", line 725, in rmtree
File "/usr/local/lib/python3.10/tempfile.py", line 864, in _rmtree
File "/usr/local/lib/python3.10/tempfile.py", line 878, in __exit__
File "/usr/local/lib/python3.10/tempfile.py", line 882, in cleanup
guix pull: erreur : Erreur Git : SSL error: error:0A000119:SSL routines::decryption failed or bad record mac
guix pull: erreur : Erreur Git : SSL error: syscall failure: Connexion ré-initialisée par le correspondant
Mise à jour du canal « $CANAL » depuis le dépôt Git « https://$PATH.git »...
onerror(os.rmdir, fullname, sys.exc_info())
os.rmdir(entry.name, dir_fd=topfd)
OSError: [Errno 39] Directory not empty: 'c7'
Over $NUMBER remaining
raise exception from None
raise retry_exc.reraise()
raise self._exception
raise self.last_attempt.result()
raw_manifests = self.storage.directory_get_raw_manifest(obj_ids)
réception des objets  $NUMBER% ▕█▍  ▏
result = action(retry_state)
result = fn(*args, **kwargs)
return copy(f, *args, **kw)
return getattr(storage, attribute_name)(*args, **kwargs)
return self.__get_result()
return self._decode_response(response)
return self._post(meth._endpoint_path, post_data)
self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)
self.cleanup()
self.load_directories(directory_ids)
self.load_objects()
self.prepare_bundle()
self.raise_for_status(response)
super().raise_for_status(response)
SWH vault: failure: Internal Server Error. This incident will be reported.
SWH vault: Processing...
SWH vault: Processing... $NUMBER objects processed
SWH vault: requested bundle cooking, waiting for completion...
SWH vault: retrying...
SWH: found revision $HASH with directory at 'https://archive.softwareheritage.org/api/1/directory/$HASH2/'
swh.core.api.RemoteException: <RemoteException 500 ReadTimeout: ['Error from server: code=1200 [Coordinator node timed out waiting for replica nodes\' responses] message="Operation timed out - received only 0 responses." info={\'consistency\': \'LOCAL_QUORUM\', \'required_responses\': 2, \'received_responses\': 0}']>
The full error was:
Traceback (most recent call last):
with tempfile.TemporaryDirectory(prefix="swh-vault-gitbare-") as workdir:
```