Uploaded image for project: 'CPE Infrastructure'
  1. CPE Infrastructure
  2. CPE-3993

EPERM in flatpak-indexer

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Testable

      https://pagure.io/fedora-infrastructure/issue/12694

      1. Describe what you would like us to do:
        The flatpak-indexer app, which was just reinstated today following the DC move, is having permission issues with its permanent storage, however no significant change was made to the deployment since before the move that would explain the difference:

      ```
      2025-07-31 19:00:09,967:INFO:flatpak_indexer.indexer:Storing icon: /var/www/flatpaks/icons/ea/9c8d668f6ffd3859733e5f135b6b1d8fd5deccc122ade01888fdff9c702609.png
      2025-07-31 19:00:09,968:ERROR:flatpak_indexer.cli:Failed to create index
      Traceback (most recent call last):
      File "/opt/app-root/lib64/python3.9/site-packages/flatpak_indexer/cli.py", line 68, in daemon
      indexer.index(registry_data)
      File "/opt/app-root/lib64/python3.9/site-packages/flatpak_indexer/indexer.py", line 261, in index
      index_writer.find_images()
      File "/opt/app-root/lib64/python3.9/site-packages/flatpak_indexer/indexer.py", line 130, in find_images
      self.add_image(repository_name, image)
      File "/opt/app-root/lib64/python3.9/site-packages/flatpak_indexer/indexer.py", line 106, in add_image
      self.extract_icon(image.labels, 'org.freedesktop.appstream.icon-64')
      File "/opt/app-root/lib64/python3.9/site-packages/flatpak_indexer/indexer.py", line 79, in extract_icon
      uri = self.icon_store.store(value)
      File "/opt/app-root/lib64/python3.9/site-packages/flatpak_indexer/indexer.py", line 47, in store
      with open(fullpath, 'wb') as f:
      PermissionError: [Errno 13] Permission denied: '/var/www/flatpaks/icons/ea/9c8d668f6ffd3859733e5f135b6b1d8fd5deccc122ade01888fdff9c702609.png'
      ```

      1. When do you need this to be done by? (YYYY/MM/DD)
        ASAP

      /cc @otaylor

              Unassigned Unassigned
              cle_bot CLE bot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: