#12694 EPERM in flatpak-indexer
Closed: Fixed by yselkowitz. Opened by yselkowitz.

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'

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

ASAP

/cc @otaylor


If necessary, it would not appear to be much of a loss if the existing content in /var/www/flatpaks be moved out of the way.

@otaylor was able to fix this.

Metadata Update from @yselkowitz:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata