Troubleshooting metadata.xml error

I have the metadata for my project, which passes all the flatpak-builder-lint checks, but when I actually build my project, I get the error E: filters-but-no-output

Here’s my metadata:

<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
  <id>io.github.evilsupahfly.amulet_flatpak</id>
  
  <name>Amulet Map Editor - Flatpak Edition</name>
  <summary>Amulet is a Minecraft world editor that allows users to modify and create worlds with ease</summary>
  
  <metadata_license>FTL</metadata_license>
  <project_license>AGPL-3.0-or-later</project_license>
  
  <description>
    <p>
      Amulet is a simple, yet powerful, world editor for modifying Minecraft saved worlds.
    </p>
  </description>
  <developer id="io.github.evilsupahfly.amulet_flatpak">
    <name>Amulet Developer: Team Amulet</name>
    <name>Flatpak Developer: EvilSupahFly</name>
  </developer>
  <url type="homepage">https://github.com/amulet-Team/Amulet-Map-Editor/</url>
  <url type="vcs-browser">https://github.com/EvilSupahFly/Amulet-Flatpak/</url>
  <releases>
    <release version="0.10.36" date="2024-01-18">
      <url type="details">https://github.com/EvilSupahFly/Amulet-Flatpak/releases/tag/0.10.36</url>
    </release>
  </releases>
  <launchable type="desktop-id">io.github.evilsupahfly.amulet_flatpak.desktop</launchable>

  <content_rating type="oars-1.0">
    <content_attribute id="social-chat">moderate</content_attribute>
  </content_rating>

  <categories>
    <category>Game</category>
    <category>KidsGame</category>
  </categories>
  
  <provides>
    <binary>io.github.evilsupahfly.amulet-flatpak</binary>
  </provides>
</component>

And here’s my terminal log:

evilsupahfly@ubuntu-build-server: ~/NAS2100/flatpak-stuff/Amulet-Flatpak $ flatpak run --command=flatpak-builder-lint org.flatpak.Builder appstream "io.github.evilsupahfly.amulet-flatpak.metainfo.xml"
✔ Validation was successful.


evilsupahfly@ubuntu-build-server: ~/NAS2100/flatpak-stuff/Amulet-Flatpak $ flatpak-builder -vvv --user --install-deps-from=flathub --mirror-screenshots-url=https://dl.flathub.org/media/ --add-tag=0.10.36 --bundle-sources --repo=io.github.evilsupahfly.amulet-flatpak-repo amulet-flatpak_build_dir io.github.evilsupahfly.amulet-flatpak.yaml --force-clean

FB: Running: git config --get user.email
FB: Running: git config --get user.name

** (flatpak-builder:577247): WARNING **: 09:42:01.864: Unknown property name for type BuilderManifest

** (flatpak-builder:577247): WARNING **: 09:42:01.864: Unknown property version for type BuilderManifest

** (flatpak-builder:577247): WARNING **: 09:42:01.868: Unknown property versioning for type BuilderManifest
Dependency Sdk: org.freedesktop.Sdk 24.08
FB: Running: flatpak --user info org.freedesktop.Sdk/x86_64/24.08 --show-commit
Updating org.freedesktop.Sdk/x86_64/24.08
FB: Using Flatpak version 1.14.6
FB: Running: flatpak --user update --subpath= -y --noninteractive org.freedesktop.Sdk/x86_64/24.08

Nothing to do.
Dependency Runtime: org.freedesktop.Platform 24.08
FB: Running: flatpak --user info org.freedesktop.Platform/x86_64/24.08 --show-commit
Updating org.freedesktop.Platform/x86_64/24.08
FB: Running: flatpak --user update --subpath= -y --noninteractive org.freedesktop.Platform/x86_64/24.08

Nothing to do.
Emptying app dir 'amulet-flatpak_build_dir'
FB: Running: flatpak info --arch=x86_64 --show-commit org.freedesktop.Sdk 24.08
FB: Running: flatpak info --show-location --arch=x86_64 org.freedesktop.Sdk 24.08
FB: Running: flatpak info --arch=x86_64 --show-commit org.freedesktop.Platform 24.08
Downloading sources
Starting build of io.github.evilsupahfly.amulet-flatpak
Cache hit for glew, skipping build
Cache hit for glu, skipping build
Cache hit for python3-versioneer, skipping build
Cache hit for python3-meson-python, skipping build
Cache hit for python3-glad, skipping build
Cache hit for python3-pyopengl, skipping build
Cache hit for python3-numpy, skipping build
Cache hit for python3-lz4, skipping build
Cache hit for python3-amulet-core, skipping build
Cache hit for python3-amulet-map-editor, skipping build
Cache hit for python3-amulet-leveldb, skipping build
Cache hit for python3-amulet-nbt, skipping build
Cache hit for python3-evilsupahfly-resource-pack, skipping build
Cache hit for pip-gen, skipping build
Cache miss, checking out last cache hit
FB: Mounting read-only fs: rofiles-fuse /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/amulet-flatpak_build_dir /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C
========================================================================
Building module metainfo-xml in /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/build/metainfo-xml-3
========================================================================
Running: install -Dm644 io.github.evilsupahfly.amulet-flatpak.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/
FB: Running: flatpak build --die-with-parent --env=FLATPAK_BUILDER_BUILDDIR=/run/build/metainfo-xml --nofilesystem=host:reset --filesystem=/ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/build/metainfo-xml-3 --bind-mount=/run/build/metainfo-xml=/ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/build/metainfo-xml-3 --build-dir=/run/build/metainfo-xml --bind-mount=/run/ccache=/ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/ccache --env=SOURCE_DATE_EPOCH=1728736659 '--env=CFLAGS=-O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' '--env=CXXFLAGS=-O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' '--env=LDFLAGS=-L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed ' --env=CCACHE_DIR=/run/ccache/disabled --env=PATH=/app/bin:/usr/bin --env=LD_LIBRARY_PATH=/app/lib --env=PKG_CONFIG_PATH=/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig --env=FLATPAK_BUILDER_N_JOBS=8 /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C /bin/sh -c 'install -Dm644 io.github.evilsupahfly.amulet-flatpak.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/'
FB: unmounting rofiles-fuse /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C
Committing stage build-metainfo-xml to cache
Cleaning up
FB: Mounting read-only fs: rofiles-fuse /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/amulet-flatpak_build_dir /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C
Removing files/lib/pkgconfig/glu.pc
Removing files/lib/pkgconfig/glew.pc
Removing files/lib/pkgconfig
Removing files/lib/libGLU.a
Removing files/lib/libGLEW.a
Removing files/include/GL/wglew.h
Removing files/include/GL/glxew.h
Removing files/include/GL/glu.h
Removing files/include/GL/glew.h
Removing files/include/GL
Removing files/include
Running appstreamcli compose
Saving screenshots in /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C/files/share/app-info/media
FB: Running: appstreamcli compose --prefix=/ --origin=io.github.evilsupahfly.amulet-flatpak --media-baseurl=https://dl.flathub.org/media/ --media-dir=/ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C/files/share/app-info/media --result-root=/ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C/files --data-dir=/ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C/files/share/app-info/xmls --icons-dir=/ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C/files/share/app-info/icons/flatpak '--components=io.github.evilsupahfly.amulet-flatpak,io.github.evilsupahfly.amulet-flatpak.desktop' /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C/files
Only accepting components: io.github.evilsupahfly.amulet-flatpak, io.github.evilsupahfly.amulet-flatpak.desktop
Processing directory: /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C/files
Composing metadata...
Run failed, some data was ignored.
Errors were raised during this compose run:
general
  E: filters-but-no-output
Refer to the generated issue report data for details on the individual problems.
Error: ERROR: appstreamcli compose failed: Child process exited with code 1
FB: Unmounting read-only fs: fusermount -uz /ssh-home/evilsupahfly/NAS2100/flatpak-stuff/Amulet-Flatpak/.flatpak-builder/rofiles/rofiles-ZNb71C

[2024-10-12 09:44:05] ERROR: flatpak-builder failed.

I don’t understand why it fails if it passed the check. What am I missing?

Probably you should post your .yml file.

As requested, here’s my manifest, io.github.evilsupahfly.amulet-flatpak.yaml:

id: io.github.evilsupahfly.amulet-flatpak
name: Amulet Map Editor
version: 0.10.36
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: amulet_map_editor

finish-args:
  - --device=all
  - --share=network
  - --share=ipc
  - --socket=fallback-x11
  - --socket=wayland
  - --filesystem=home:persistent #was create
  - --filesystem=~/.cache:persistent
  - --filesystem=host:create
  - --talk-name=org.freedesktop.Notifications
  - --talk-name=org.freedesktop.secrets
  - --talk-name=org.kde.kwalletd5
  - --talk-name=org.freedesktop.Flatpak
  - --env=LIBGL_ALWAYS_SOFTWARE="0"
  - --env=OPENGL_VERSION=3.3
  - --env=OPENGL_LIB=/usr/lib/x86_64-linux-gnu/libGL.so
  - --env=PYTHONDEBUG=3
  - --env=PYTHONVERBOSE=3
  - --env=PYTHONTRACEMALLOC=10

modules:
  - shared-modules/glew/glew.json
  - shared-modules/glu/glu-9.json
  - pip-gen.yaml
packages/minecraft_model_reader/api
  - name: metainfo-xml
    buildsystem: simple
    build-commands:
${FLATPAK_DEST}/share/metainfo/
      - install -Dm644 io.github.evilsupahfly.amulet-flatpak.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/
    sources:
      - type: file
        path: io.github.evilsupahfly.amulet-flatpak.metainfo.xml
versioning:
  auto-increment: true

And pip-gen.yaml:

# Generated with flatpak-pip-generator --yaml --requirements-file requirements.txt --output amulet_testing
build-commands: []
buildsystem: simple
modules:
  - name: python3-versioneer
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "versioneer" --report=pip_report.json --no-build-isolation
    sources:
      - type: file
        url: https://files.pythonhosted.org/packages/b0/79/f0f1ca286b78f6f33c521a36b5cbd5bd697c0d66217d8856f443aeb9dd77/versioneer-0.29-py3-none-any.whl
        sha256: 0f1a137bb5d6811e96a79bb0486798aeae9b9c6efc24b389659cebb0ee396cb9
  - name: python3-meson-python
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "meson-python" --report=pip_report.json --no-build-isolation
    sources:
      - type: file
        url: https://files.pythonhosted.org/packages/91/c0/104cb6244c83fe6bc3886f144cc433db0c0c78efac5dc00e409a5a08c87d/meson_python-0.16.0-py3-none-any.whl
        sha256: 842dc9f5dc29e55fc769ff1b6fe328412fe6c870220fc321060a1d2d395e69e8
      - &id009
        type: file
        url: https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl
        sha256: 5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124
      - type: file
        url: https://files.pythonhosted.org/packages/aa/5f/bb5970d3d04173b46c9037109f7f05fc8904ff5be073ee49bb6ff00301bc/pyproject_metadata-0.8.0-py3-none-any.whl
        sha256: ad858d448e1d3a1fb408ac5bac9ea7743e7a8bbb472f2693aaa334d2db42f526
  - name: python3-glad
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "glad" --report=pip_report.json --no-build-isolation
    sources:
      - type: file
        url: https://files.pythonhosted.org/packages/3b/07/1b313fc6ccdd38447f162f5a77700f070342ff71c4146dc05404bd6e053d/glad-0.1.36-py3-none-any.whl
        sha256: ff84d7f0f0f2d6ecb8eaed17ffbe8787215b923995e3e2617b62769b72ed280f
  - name: python3-pyopengl
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "pyopengl" --report=pip_report.json --no-build-isolation
    sources:
      - &id004
        type: file
        url: https://files.pythonhosted.org/packages/99/48/00e31747821d3fc56faddd00a4725454d1e694a8b67d715cf20f531506a5/PyOpenGL-3.1.7-py3-none-any.whl
        sha256: a6ab19cf290df6101aaf7470843a9c46207789855746399d0af92521a0a92b7a
prefix=${FLATPAK_DEST}
  - name: python3-numpy
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "numpy" --report=pip_report.json --no-build-isolation
    sources:
      - &id002
        type: file
        url: https://files.pythonhosted.org/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz
        sha256: 2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010
  - name: python3-lz4
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "lz4" --report=pip_report.json --no-build-isolation
    sources:
      - &id001
        type: file
        path: lz4-4.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
        sha256: bca8fccc15e3add173da91be8f34121578dc777711ffd98d399be35487c934bf
  - name: python3-amulet-core
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "amulet-core" --report=pip_report.json --no-build-isolation
    sources:
      - &id003
        type: file
        url: https://files.pythonhosted.org/packages/96/62/5a6fa5775726afa37153ce895ed8ddb886cee48ab3cf6c4d1a3cde5fa41f/PyMCTranslate-1.2.28-py3-none-any.whl
        sha256: 8166347a39bbcd784a298b6797216cb7b18c6bbe32d43f6740197138e9ec1c01
      - &id005
        type: file
        url: https://files.pythonhosted.org/packages/00/b9/48aa1754bc30143d7623253ff507986123829e9ae78a266ec34e08c0c544/amulet-nbt-2.1.3.tar.gz
        sha256: a9de4fe068329c7a921f09dd4cec37c25c01ac2abeb4e10000e82e526e36d0fc
      - &id006
        type: file
        url: https://files.pythonhosted.org/packages/16/df/6ad86c1a64350274a05cf56ecb205e1acea74ea376d7a02c4b34b0251388/amulet_core-1.9.25-py3-none-any.whl
        sha256: a626a09e93112032d8de046cef59b3a87bf02e840930fa7218f5b2caacf29254
      - &id007
        type: file
        url: https://files.pythonhosted.org/packages/8a/69/03882a4a7ed933d1f0c622d93a5b2eef2fa51c4bf8ca1ec84d43b88eb113/amulet_leveldb-1.0.2.tar.gz
        sha256: b3aa511ef71bf6bc6b21e96395bded0f392b1dc093ef58d5535067d80ab41541
      - *id001
      - &id008
        type: file
        url: https://files.pythonhosted.org/packages/ca/31/3c57313757b3a47dcf32d2a9bad55d913b797efc8814db31bed8a7142396/mutf8-1.0.6.tar.gz
        sha256: 1bbbefb67c2e5a57104750bb04b0912200b57b2fa9841be245279e83859cb346
      - *id002
      - &id010
        type: file
        url: https://files.pythonhosted.org/packages/56/29/3ec311dc18804409ecf0d2b09caa976f3ae6215559306b5b530004e11156/platformdirs-3.11.0-py3-none-any.whl
        sha256: e9d171d00af68be50e9202731309c4e658fd8bc76f55c11c7dd760d023bda68e
      - &id011
        type: file
        url: https://files.pythonhosted.org/packages/9b/fb/a70a4214956182e0d7a9099ab17d50bfcba1056188e9b14f35b9e2b62a0d/portalocker-2.10.1-py3-none-any.whl
        sha256: 53a5984ebc86a025552264b459b46a2086e269b21823cb572f8f28ee759e45bf
  - name: python3-amulet-map-editor
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "amulet-map-editor" --report=pip_report.json --no-build-isolation
    sources:
      - *id003
      - *id004
      - *id005
      - *id006
      - *id007
      - type: file
        url: https://files.pythonhosted.org/packages/43/cd/adc1f96995597dfada4686002dcb931c6bc9abeb090ed9bce327fac66d68/amulet_map_editor-0.10.36.tar.gz
        sha256: a5bf60a6d4b5b42ad42ccf1d6a0894ed97e581ae7d17e790797935890f981a75
      - *id001
      - &id012
        type: file
        path: minecraft_resource_pack-1.4.5-py3-none-any.whl
        sha256: a882b50c080bbad1695eebb958a368313e40a978ab7647a202fa1a029149679c
      - *id008
      - *id002
      - *id009
      - &id013
        type: file
        url: https://files.pythonhosted.org/packages/cd/74/ad3d526f3bf7b6d3f408b73fde271ec69dfac8b81341a318ce825f2b3812/pillow-10.4.0.tar.gz
        sha256: 166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06
      - *id010
      - *id011
      - type: file
        url: https://files.pythonhosted.org/packages/a4/f5/8c272764770f47fd419cc2eff4c4fa1c0681c71bcc2f3158b3a83d1339ff/wxPython-4.2.2.tar.gz
        sha256: 5dbcb0650f67fdc2c5965795a255ffaa3d7b09fb149aa8da2d0d9aa44e38e2ba
  - name: python3-amulet-leveldb
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "amulet-leveldb" --report=pip_report.json --no-build-isolation
    sources:
      - *id007
  - name: python3-amulet-nbt
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "amulet-nbt" --report=pip_report.json --no-build-isolation
    sources:
      - *id005
      - *id008
      - *id002
  - name: python3-minecraft-resource-pack
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
    build-commands:
      - pip3 install --verbose --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
        "minecraft-resource-pack" --report=pip_report.json --no-build-isolation
    sources:
      - type: file
        path: minecraft_resource_pack-1.4.5-py3-none-any.whl
        sha256: a882b50c080bbad1695eebb958a368313e40a978ab7647a202fa1a029149679c
      - *id005
      - *id012
      - *id008
      - *id002
      - *id013
      - *id010
name: pip-gen

Is it possibly because I don’t have any screenshots, icons or .desktop files? I thought AppStream only cared about what was actually contained within the metadata.info file…?

It’s this part that has me curious:

Does not match Flatpak ID

id: io.github.evilsupahfly.amulet-flatpak

Oh. Wow. That was stupid of me! :man_facepalming:

This topic was automatically closed after 4 days. New replies are no longer allowed.