Automated reviews and snapcraft < 2.38

@jdstrand I just ran into this issue, build log available here: https://build.snapcraft.io/user/openstack-charmers/octavia-diskimage-retrofit/577622

Given it’s built by the build-system I have not medled with the squashfs myself, the only hunch I have is that I have a custom prime step that adds a file. Could that cause issues like this?

Any suggestions on how to debug?

It is probably the second error that is causing both problems:

  • Error:found errors in file output: unusual mode ‘rwsr-xr-x’ for entry ‘./bin/fusermount’, file type ‘c’ not allowed (./dev/fuse)

The resquash test is run as non-root, so when the snap is unsquashed, dev/fuse won’t be created and bin/fusermount will not have the setuid bit set, so when it is squashed and compared, dev/fuse is missing and bin/fusermount is 0755, so there is a checksum mismatch.

I suggest removing dev/fuse and bin/fusermount before mksquash (‘organize’ in your snapcraft.yaml can help with the bin/fusermount removal; you might have to play around with override-* to get rid of dev/fuse (@sergiusens may be able to help if you get stuck)).

Thank you for your swift response on this, and you are of course right.

Fixed it with these bits:

    override-stage: |
      snapcraftctl stage
      chmod 0755 bin/fusermount
    filesets:
      exclude:
        - -dev
    stage:
      - $exclude

I may have run into a issue with the fuse-support interface, but i’ll address that in a appropriate topic.

1 Like

How can I fix Wekan builds? https://wekan.github.io

https://launchpadlibrarian.net/547198434/buildlog_snap_ubuntu_xenial_amd64_100453500e32d01a904a5c483a898df3_BUILDING.txt.gz

Any ideas?

Previously this did work with automatic builds. Is there some new requirement for some check?

When I install that automatically built snap package, it does work. But why store does not accept it?

Do I need to delete some files from snap during build steps of snapcraft.yaml ?

I would suggest creating a new topic, a topic about Snapcraft 2.38 might not ring anyone’s attention.

@sergiusens

New topic is here: