Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flatpak-builder error with ubuntu-24.04 image #11359

Open
1 of 16 tasks
equeim opened this issue Jan 13, 2025 · 2 comments
Open
1 of 16 tasks

flatpak-builder error with ubuntu-24.04 image #11359

equeim opened this issue Jan 13, 2025 · 2 comments

Comments

@equeim
Copy link

equeim commented Jan 13, 2025

Description

After Ubuntu runners were updated to 24.04 I started getting strange error when running flatpak-builder (this is an excerpt from the end of the log):

Renaming org.equeim.Tremotesf.appdata.xml to share/metainfo/org.equeim.Tremotesf.metainfo.xml
Running appstreamcli compose
Only accepting components: org.equeim.Tremotesf, org.equeim.Tremotesf.desktop
Processing directory: /home/runner/work/tremotesf2/tremotesf2/.flatpak-builder/rofiles/rofiles-9SZRjw/files
Composing metadata...
Refer to the generated issue report data for details on the individual problems.
Run failed, some data was ignored.
Errors were raised during this compose run:
general
  E: filters-but-no-output

org.equeim.Tremotesf
  E: file-read-error
Error: ERROR: appstreamcli compose failed: Child process exited with code 1
Error: Process completed with exit code 1.

Here is the workflow job: https://github.com/equeim/tremotesf2/blob/6b1076f9a23376c42608cd7c34c714a6254a6c82/.github/workflows/main.yml#L136

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

ubuntu-24.04 20250105.1.0

Is it regression?

ubuntu-22.04 20250105.1.0

Expected behavior

flatpak-builder succeeds to build Flatpak application

Actual behavior

flatpak-builder fails with E: file-read-error error.

Repro steps

  1. Run flatpak-builder to build an app
@Prabhatkumar59
Copy link
Contributor

Hi @equeim - Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating:)

@Prabhatkumar59
Copy link
Contributor

Hi @equeim - For the above issue, Could you please check once whether all required dependencies for flatpak-builder are installed. You can add this step before invoking the build:-

- name: Install Flatpak Builder Dependencies
  run: |
    sudo apt-get update
    sudo apt-get install -y \
      flatpak-builder \
      python3-gi \
      appstream-util \
      build-essential \
      libarchive-tools

Also, the error filters-but-no-output indicates that appstreamcli is not generating valid metadata. For this, requesting you to modify your flatpak-builder command to avoid strict filters as : -
Here, use --force-clean and --disable-rofiles-fuse in the flatpak-builder command.

- name: Build Flatpak
  run: flatpak-builder --force-clean --require-changes --disable-rofiles-fuse build-dir your-app.flatpak

Please check with above solutions & let us know if you encounter issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants