canonical / snapcraft

Package, distribute, and update any app for Linux and IoT.

Home Page:https://snapcraft.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No debug information about conflicting files in staging error in the launchpad build log

seb128 opened this issue · comments

Bug Description

Similar to #4801 but on launchpad

To Reproduce

Try to build a snap with conflicting files staged by different parts
Check the build log

-> I would expect to see what the error is but the log doesn't include it

Environment

Launchpad

snapcraft.yaml

https://github.com/ubuntu/gnome-sdk/blob/d13758aeb4aec727e026b783931a7940de84af5f/snapcraft.yaml

Relevant log output

https://launchpadlibrarian.net/728919235/buildlog_snap_ubuntu_noble_amd64_gnome-46-2404-sdk_BUILDING.txt.gz


Staging libtool (required to build 'libffi')
Failed to stage: parts list the same file with different contents or permissions.
Full execution log: '/root/.local/state/snapcraft/log/snapcraft-20240509-132418.799795.log'
Build failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 308, in run
    self.build()
  File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 292, in build
    self.run_build_command(["snapcraft"], cwd=output_path, env=env)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/operation.py", line 62, in run_build_command
    return self.backend.run(args, cwd=cwd, env=full_env, **kwargs)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 718, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'lp-noble-amd64', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/lpbuildd-git-proxy', '--env', 'SNAPPY_STORE_NO_CDN=1', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build-request-id": "lp-88872230", "build-request-timestamp": "2024-05-09T13:15:09Z", "build_url": "https://launchpad.net/~desktop-snappers/+snap/gnome-46-2404-sdk/+build/2478630"}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--env', 'SNAPCRAFT_BUILD_FOR=amd64', '--', '/bin/sh', '-c', 'cd /build/gnome-46-2404-sdk && linux64 snapcraft']' returned non-zero exit status 1.
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=noble --arch=amd64 SNAPBUILD-2478630
Scanning for processes to kill in build SNAPBUILD-2478630

On a local build checking the log the actual error is
'at-spi2-core' and 'atk' list the following files, but with different contents or permissions:
...```



### Additional context

_No response_

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2907.

This message was autogenerated