CircleCI tutorial doesn't work

I’m using the official Snapcraft tutorial: https://snapcraft.io/tutorials/continuous-snap-delivery-from-circle-ci#5-building-and-pushing-the-snap-in-circleci

This is my job description:

  build_snap:
    executor: snapcraft
    working_directory: /mnt/ramdisk
    steps:
      - checkout
      - attach_workspace:
          at: snap-build
      - run:
          name: Build snap
          command: |
            mkdir artifacts
            snapcraft
            cp -v ./undercut*.snap artifacts
      - store_artifacts:
          path: artifacts
      - persist_to_workspace:
          root: artifacts
          paths: ["*.snap"]

And I’m getting this message on snapcore/snapcraft:edge:

The following snaps are required but not installed as snapcraft is running inside docker or podman container: core20, node/16/stable.
Please ensure the environment is properly setup before continuing.
Ignore this message if the appropriate measures have already been taken
Sorry, an error occurred in Snapcraft:
('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]: 
You can find the traceback in file '/tmp/tmp1n1rft6j/trace.txt'.

Exited with code exit status 1

And in case of snapcore/snapcraft:latest it was failing just because of missing build-snaps:

The following snaps are required but not installed as snapcraft is running inside docker or podman container: core20, node/16/stable.
...
/usr/bin/env: ‘node’: No such file or directory
Failed to run 'override-build': Exit code was 127.
1 Like