HamedElgizery / grass-addons

GRASS GIS Addons Repository (Manuals: https://grass.osgeo.org/grass-stable/manuals/addons/ | Linux-logs: https://grass.osgeo.org/addons/grass8/logs/ | Windows logs: https://wingrass.fsv.cvut.cz/grass83/addons/grass-8.3.1/logs/)
GNU General Public License v2.0
1 stars 4 forks source link

OSError: [Errno 28] No space left on device #9

Closed HamedElgizery closed 4 months ago

HamedElgizery commented 5 months ago

In some cases, after downloading a product (with id), and when we try to extract it... it gives the following error

File "/home/hamed/grass-addons/src/imagery/i.eodag/./i.eodag.py", line 384, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/hamed/grass-addons/src/imagery/i.eodag/./i.eodag.py", line 280, in main
    download_by_ids(ids_set)
  File "/home/hamed/grass-addons/src/imagery/i.eodag/./i.eodag.py", line 189, in download_by_ids
    download_by_id(product_id)
  File "/home/hamed/grass-addons/src/imagery/i.eodag/./i.eodag.py", line 159, in download_by_id
    dag.download(product[0])
  File "/home/hamed/genv/lib/python3.11/site-packages/eodag/api/core.py", line 2093, in download
    path = product.download(
           ^^^^^^^^^^^^^^^^^
  File "/home/hamed/genv/lib/python3.11/site-packages/eodag/api/product/_product.py", line 365, in download
    fs_path = self.downloader.download(
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hamed/genv/lib/python3.11/site-packages/eodag/plugins/download/http.py", line 394, in download
    fs_path, record_filename = self._prepare_download(
                               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hamed/genv/lib/python3.11/site-packages/eodag/plugins/download/base.py", line 256, in _prepare_download
    self._finalize(fs_path, progress_callback=progress_callback, **kwargs),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hamed/genv/lib/python3.11/site-packages/eodag/plugins/download/base.py", line 400, in _finalize
    zfile.extract(
  File "/usr/lib/python3.11/zipfile.py", line 1660, in extract
    return self._extract_member(member, path, pwd)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/zipfile.py", line 1732, in _extract_member
    shutil.copyfileobj(source, target)
  File "/usr/lib/python3.11/shutil.py", line 200, in copyfileobj
    fdst_write(buf)
OSError: [Errno 28] No space left on device

Suspecting that it might be the file that is corrupted, because there is plenty of disk space.. needs more investigation.

To replicate try to download the product with the following command:

./i.eodag.py id=S2B_MSIL2A_20240526T080609_N0510_R078_T37SDD_20240526T094753 provider=cop_dataspace output="download_here/here" -e
HamedElgizery commented 4 months ago

Turned out, it was a network issue... closing...