Snapcraft build fails because extension is not enabled

Asked by Pak Jiddat

I am trying to run a Snapcraft remote build. My build fails with the following error message:

Experimental extension 'kde-neon' is required, but not enabled.

Recommended resolution:
This extension may be enabled with the '--enable-experimental-extensions' parameter.
Build failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 222, in run
    self.pull()
  File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 192, in pull
    env=env)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 100, in run_build_command
    return self.backend.run(args, env=full_env, **kwargs)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 537, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'lp-focal-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_LOCAL_SOURCES=1', '--env', 'SNAPCRAFT_SETUP_CORE=1', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build-request-id": "lp-67864744", "build-request-timestamp": "2021-12-08T13:57:26Z", "build_url": "https://launchpad.net/~pakjiddat/+snap/snapcraft-islamcompanion-c7ef8ac7cda527ff08306efa56c47ed4/+build/1605640"}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--', '/bin/sh', '-c', 'cd /build/snapcraft-islamcompanion-c7ef8ac7cda527ff08306efa56c47ed4 && linux64 snapcraft pull']' returned non-zero exit status 2.
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=focal --arch=amd64 SNAPBUILD-1605640
Scanning for processes to kill in build SNAPBUILD-1605640

I ran the build with the --enable-experimental-extensions option but I still get the error. I was expecting the build process to create a snap file.I am using the following command to run the build:

snapcraft --enable-experimental-extensions remote-build

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jürgen Gmach (jugmac00) said :
#1

This is a known problem, see https://forum.snapcraft.io/t/this-extension-may-be-enabled-with-the-enable-experimental-extensions-parameter/27603

You could try the suggested workaround, ie using `core18` instead of `core20`, also see https://snapcraft.io/docs/base-snaps

There are two related bug reports:
- https://bugs.launchpad.net/launchpad/+bug/1949989
- https://bugs.launchpad.net/snapcraft/+bug/1950867

You could click on the "This bug affects 2 people. Does this bug affect you? " to improve the visibility of this problem.

Can you help with this problem?

Provide an answer of your own, or ask Pak Jiddat for more information if necessary.

To post a message you must log in.