Amd64 build seems to have stopped working on my snap, Stalefish (github linked)

Hi Snapcrafters,

I’ve made some code changes to my snap, Stalefish, recently, which builds via a connection to its github repository. Oddly, the amd64 builds are now failing, at the point at which the source code is cloned (the last part of the error log is reproduced below). I don’t think this is an issue with the C++ source code changes I’ve made, as these work when compiling locally and the other build, for arm64, completes without error (if you can look in the list of builds, you’ll see that armhf, ppc64el and s390x builds also fail, but they always did - I don’t think those environments have an up-to-date enough compiler for Stalefish’s C+±17 source).

The error report suggests some sort of certificate problem in a call to curl. It sort of looks like something might be up with the build environment. Anyone know what’s up? Anyone else having any trouble with github-linked amd64 builds? The amd64 build is the most important to me, because that’s what my collaborators use to run Stalefish.




Fetched 179 kB in 0s (0 B/s)                                                    
Pulling stalefish 
+ snapcraftctl pull
Cloning into '/build/stalefish/parts/stalefish/src'...
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed to pull source, command 'git clone --recursive /build/stalefish/parts/stalefish/src' exited with code 128.
Build failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 222, in run
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 192, in pull
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 100, in run_build_command
    return, env=full_env, **kwargs)
  File "/usr/lib/python3/dist-packages/lpbuildd/target/", line 537, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python3.6/", 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=', '--env', 'https_proxy=', '--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-67865999", "build-request-timestamp": "2021-12-08T15:14:40Z", "build_url": ""}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--', '/bin/sh', '-c', 'cd /build/stalefish && 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-1605715
Scanning for processes to kill in build SNAPBUILD-1605715

An amd64 build has now succeeded so I assume this was a temporary problem on the build system.