Hi,
We are using the following to build microk8s on travis
docker run -v `pwd`:`pwd` -v /tmp:/tmp -w `pwd` snapcore/snapcraft sh -c "apt update && snapcraft"
Since yesterday the above is failing with:
Successfully downloaded core at /tmp/tmpt62nav6j/core.snap
Downloading 'core.snap' 100%
Sorry, Snapcraft ran into an error when trying to running through its
lifecycle that generated a trace that has been put in '/tmp/tmpq4l6lsr0/trace.txt'.
"Submitting this error to the Snapcraft developers is not possible through the CLI
without Raven installed.
If you wish to report this issue, please copy the contents of the previous traceback
and submit manually at https://launchpad.net/snapcraft/+filebug.
And the referenced log is:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 9, in <module>
load_entry_point('snapcraft==2.43', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke
return Command.invoke(self, ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 93, in run
ctx.forward(lifecyclecli.commands["snap"])
File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward
return self.invoke(cmd, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 136, in snap
project = _execute(steps.PRIME, parts=[], **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute
lifecycle.execute(step, project_config, parts)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 86, in execute
project_config.project.deb_arch, project_config.data.get("base", "core")
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 131, in _setup_core
snap_cache.cache(snap_filename=download_path)
File "/usr/lib/python3/dist-packages/snapcraft/internal/cache/_snap.py", line 76, in cache
cached_snap_path = self._get_snap_cache_path(snap_filename)
File "/usr/lib/python3/dist-packages/snapcraft/internal/cache/_snap.py", line 68, in _get_snap_cache_path
arch = self._get_snap_deb_arch(snap_filename)
File "/usr/lib/python3/dist-packages/snapcraft/internal/cache/_snap.py", line 52, in _get_snap_deb_arch
os.path.join("meta", "snap.yaml"),
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
Is this method of building snaps (ie with docker) supported or should we move to snapcraft cleanbulild
?
Thanks