Building on core18, failure on pulling core18 on build.snapcraft.io

I’m building a classic ubuntu-report snap via build.snapcraft.io.

The snapcraft.yaml definition is https://github.com/ubuntu/ubuntu-report/blob/master/snap/snapcraft.yaml, which is using on core18.

However, it can’t build in the lxc xenial container, contrary to 18.04:

Preparing to pull cli 
Pulling cli 
Segmentation fault (core dumped)
Downloading 'core18.snap'   0%                                                 
Downloading 'core18.snap'   1%                                                 
Downloading 'core18.snap'   2%                                                 
Downloading 'core18.snap'   3%                                                 
...
Downloading 'core18.snap' 100%                                                 
Downloading 'core18.snap' 100%                                                 
Failed to run 'override-pull': Exit code was 139.
Build failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 269, in run
    self.pull()
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 221, in pull
    env=env)
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 103, in run_build_command
    return self.backend.run(args, cwd=cwd, env=full_env, **kwargs)
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/lxd.py", line 456, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['lxc', 'exec', 'lp-xenial-amd64', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_LOCAL_SOURCES=1', '--env', 'SNAPCRAFT_SETUP_CORE=1', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build_url": "https://snap-proxy.launchpad.net:3128', '--env', 'https_proxy=http://snap-proxy.launchpad.net:3128', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/ubuntu-report && linux64 snapcraft pull']' returned non-zero exit status 2
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/slavebin/in-target scan-for-processes --backend=lxd --series=xenial --arch=amd64 SNAPBUILD-204965
Scanning for processes to kill in build SNAPBUILD-204965
RUN: /usr/share/launchpad-buildd/slavebin/in-target umount-chroot --backend=lxd --series=xenial --arch=amd64 SNAPBUILD-204965
Stopping target for build SNAPBUILD-204965
/usr/lib/python2.7/dist-packages/pylxd/model.py:116: UserWarning: Attempted to set unknown attribute "description" on instance of "Container"
  key, self.__class__.__name__
RUN: /usr/share/launchpad-buildd/slavebin/in-target remove-build --backend=lxd --series=xenial --arch=amd64 SNAPBUILD-204965

+1
It happens also with ubuntu-make.

Segmentation fault (core dumped)

Failed to run ‘override-pull’: Exit code was 139.

Any update/hints on that one? This is blocking building the ubuntu-report classic snap to be pushed to the store.

We don’t support using core18 for classic with snapcraft yet, nor do we support building classic snaps in any environment other that one setup on your own.

A roadmap of whens and hows will be shared out next week after we finish doing this cycle’s planning.

Additionally, build.snapcraft.io currently only supports core as a base.

Well, actually you do support it in snapcraft (locally, it all works fine ;)), but ok, blocked on the build.snapcraft.io side.

Yes, locally though, it is still experimental

1 Like

Is this now fixed, as core18 was something as usable…

1 Like

I guess I am still seeing the issue today. Would appreciate a hint how to get over it. :wink: