Skip to content

Photon failing to download #657

@Jacob-Lasky

Description

@Jacob-Lasky

Hi, love the tool! I'm having an issue with Photon. I want to download the global index (I travel a lot for work) but I'm having some issues. Here are what I believe are the relevant logs:

I have sufficient space to download

2026-01-08 14:40:01,066 - root - INFO - Sufficient disk space available for update
2026-01-08 14:40:01,067 - root - INFO - Downloading new index and MD5 checksum...
2026-01-08 14:40:01,761 - root - INFO - Starting download of 118.54GB to photon-db-latest.tar.bz2

But after a little while, it throws an error:

2026-01-08 15:49:26,526 - root - INFO - Download progress: 33.0% (39.18GB / 118.54GB) - 45.1 Mbps - ETA: 4h 12m
2026-01-08 15:49:32,654 - root - WARNING - Download attempt 1 failed: ('Connection broken: IncompleteRead(42145808384 bytes read, 85138677954 more expected)', IncompleteRead(42145808384 bytes read, 85138677954 more expected))
2026-01-08 15:49:32,655 - root - INFO - Retrying download (attempt 2/3)...
2026-01-08 15:49:32,656 - root - WARNING - File size mismatch, starting fresh download
2026-01-08 15:49:33,291 - root - INFO - Starting download of 118.54GB to photon-db-latest.tar.bz2

On the retry, it eventually throws another error:

2026-01-08 16:19:14,328 - root - INFO - Download progress: 13.8% (16.37GB / 118.54GB) - 32.7 Mbps - ETA: 7h 27m
2026-01-08 16:19:14,685 - root - WARNING - Download attempt 2 failed: ('Connection broken: IncompleteRead(17577934848 bytes read, 109706551490 more expected)', IncompleteRead(17577934848 bytes read, 109706551490 more expected))
2026-01-08 16:19:14,686 - root - INFO - Retrying download (attempt 3/3)...
2026-01-08 16:19:14,689 - root - WARNING - File size mismatch, starting fresh download
2026-01-08 16:19:15,487 - root - INFO - Starting download of 118.54GB to photon-db-latest.tar.bz2
2026-01-08 16:19:25,490 - root - INFO - Download progress: 0.1% (0.06GB / 118.54GB) - 52.0 Mbps - ETA: 5h 26m

and finally, it errors a third time:

2026-01-08 16:45:03,800 - root - INFO - Download progress: 15.2% (18.00GB / 118.54GB) - 74.7 Mbps - ETA: 3h 12m
2026-01-08 16:45:32,586 - root - WARNING - Download attempt 3 failed: HTTPSConnectionPool(host='r2.koalasec.org', port=443): Read timed out.
2026-01-08 16:45:32,586 - root - ERROR - Download failed after 3 attempts
Traceback (most recent call last):
  File "/photon/.venv/lib/python3.12/site-packages/urllib3/response.py", line 779, in _error_catcher
    yield
  File "/photon/.venv/lib/python3.12/site-packages/urllib3/response.py", line 904, in _raw_read
    data = self._fp_read(amt, read1=read1) if not fp_closed else b""
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/photon/.venv/lib/python3.12/site-packages/urllib3/response.py", line 887, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/http/client.py", line 479, in read
    s = self.fp.read(amt)
        ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/socket.py", line 707, in readinto
    return self._sock.recv_into(b)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/ssl.py", line 1252, in recv_into
    return self.read(nbytes, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/ssl.py", line 1104, in read
    return self._sslobj.read(len, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/photon/.venv/lib/python3.12/site-packages/requests/models.py", line 820, in generate
    yield from self.raw.stream(chunk_size, decode_content=True)
  File "/photon/.venv/lib/python3.12/site-packages/urllib3/response.py", line 1091, in stream
    data = self.read(amt=amt, decode_content=decode_content)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/photon/.venv/lib/python3.12/site-packages/urllib3/response.py", line 980, in read
    data = self._raw_read(amt)
           ^^^^^^^^^^^^^^^^^^^
  File "/photon/.venv/lib/python3.12/site-packages/urllib3/response.py", line 903, in _raw_read
    with self._error_catcher():
  File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__
    self.gen.throw(value)
  File "/photon/.venv/lib/python3.12/site-packages/urllib3/response.py", line 784, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.") from e  # type: ignore[arg-type]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='r2.koalasec.org', port=443): Read timed out.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/photon/src/downloader.py", line 498, in download_file
    return _perform_download(url, destination, resume_byte_pos, mode, start_time)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/photon/src/downloader.py", line 465, in _perform_download
    downloaded = _download_content(
                 ^^^^^^^^^^^^^^^^^^
  File "/photon/src/downloader.py", line 394, in _download_content
    for chunk in response.iter_content(chunk_size=chunk_size):
  File "/photon/.venv/lib/python3.12/site-packages/requests/models.py", line 826, in generate
    raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='r2.koalasec.org', port=443): Read timed out.
2026-01-08 16:45:32,598 - root - CRITICAL - FATAL: Update process failed with an error: Failed to download index from https://r2.koalasec.org/public/photon-db-planet-0.7OS-latest.tar.bz2
2026-01-08 16:45:32,599 - root - CRITICAL - Aborting script.
2026-01-08 16:45:32,667 - root - ERROR - Setup failed!

I'm on UnRAID 7.2.2 using your image dedicatedcode/reitti:latest with the recommended photon image rtuszik/photon-docker:1.2.1.

The only change I made to the docker-compose is the volume path:

    volumes:
     - /mnt/user/appdata/reitti/reitti-data:/data/

Everything else is working perfectly!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions