Here are the logs:
$ cat /Users/xxx/Library/Logs/charmcraft/charmcraft-20220516-164043.365444.log|
2022-05-16 16:40:43.367 Starting charmcraft version 1.6.0
2022-05-16 16:40:43.367 Raw pre-parsed sysargs: args={'help': False, 'verbose': False, 'quiet': False, 'trace': False, 'project_dir': None} filtered=['pack']
2022-05-16 16:40:43.367 General parsed sysargs: command='pack' args=[]
2022-05-16 16:40:43.372 Command parsed sysargs: Namespace(debug=False, destructive_mode=False, entrypoint=None, requirement=None, shell=False, shell_after=False, bases_index=None, force=False)
2022-05-16 16:40:43.372 System details: OSPlatform(system='Darwin', release='21.4.0', machine='x86_64'); Environment: None
2022-05-16 16:40:43.372 Packing the charm.
2022-05-16 16:40:43.372 Working arguments: {'from': PosixPath('/Users/xxx/xxx/kubecon/zinc-k8s-operator'), 'destructive_mode': False, 'entrypoint': None, 'requirement': [], 'bases_indices': None, 'force': False, 'debug': False, 'shell': False, 'shell_after': False}
2022-05-16 16:40:43.372 Parsing '/Users/xxx/xxx/kubecon/zinc-k8s-operator/metadata.yaml'
2022-05-16 16:40:43.378 Executing on host: multipass version
2022-05-16 16:40:43.577 Building for 'bases[0]' as host matches 'build-on[0]'.
2022-05-16 16:40:43.577 Building for 'bases[0][0]'.
2022-05-16 16:40:43.578 Launching environment to pack for base name='ubuntu' channel='20.04' architectures=['amd64'] (may take a while the first time but it's reusable)
2022-05-16 16:40:43.578 Executing on host: multipass list --format json
2022-05-16 16:40:44.771 Executing on host: multipass start charmcraft-zinc-k8s-137326343-0-0-amd64
2022-05-16 16:40:44.879 Executing on host: multipass exec charmcraft-zinc-k8s-137326343-0-0-amd64 -- sudo -H -- cat /etc/os-release
2022-05-16 16:40:45.065 Executing on host: multipass exec charmcraft-zinc-k8s-137326343-0-0-amd64 -- sudo -H -- test -f /etc/craft-instance.conf
2022-05-16 16:40:45.218 Waiting for environment to be ready...
2022-05-16 16:40:45.219 Executing on host: multipass exec charmcraft-zinc-k8s-137326343-0-0-amd64 -- sudo -H -- systemctl is-system-running
2022-05-16 16:40:45.373 Waiting for networking to be ready...
2022-05-16 16:40:45.373 Executing on host: multipass exec charmcraft-zinc-k8s-137326343-0-0-amd64 -- sudo -H -- getent hosts snapcraft.io
2022-05-16 16:40:45.581 Failed to install Charmcraft snap from store channel 'stable' into target environment.
2022-05-16 16:40:45.594 Traceback (most recent call last):
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
2022-05-16 16:40:45.594 httplib_response = self._make_request(
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
2022-05-16 16:40:45.594 conn.request(method, url, **httplib_request_kw)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1285, in request
2022-05-16 16:40:45.594 self._send_request(method, url, body, headers, encode_chunked)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1331, in _send_request
2022-05-16 16:40:45.594 self.endheaders(body, encode_chunked=encode_chunked)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1280, in endheaders
2022-05-16 16:40:45.594 self._send_output(message_body, encode_chunked=encode_chunked)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1040, in _send_output
2022-05-16 16:40:45.594 self.send(msg)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 980, in send
2022-05-16 16:40:45.594 self.connect()
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests_unixsocket/adapters.py", line 41, in connect
2022-05-16 16:40:45.594 sock.connect(socket_path)
2022-05-16 16:40:45.594 FileNotFoundError: [Errno 2] No such file or directory
2022-05-16 16:40:45.594
2022-05-16 16:40:45.594 During handling of the above exception, another exception occurred:
2022-05-16 16:40:45.594 Traceback (most recent call last):
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
2022-05-16 16:40:45.594 resp = conn.urlopen(
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen
2022-05-16 16:40:45.594 retries = retries.increment(
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/urllib3/util/retry.py", line 550, in increment
2022-05-16 16:40:45.594 raise six.reraise(type(error), error, _stacktrace)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
2022-05-16 16:40:45.594 raise value.with_traceback(tb)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
2022-05-16 16:40:45.594 httplib_response = self._make_request(
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
2022-05-16 16:40:45.594 conn.request(method, url, **httplib_request_kw)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1285, in request
2022-05-16 16:40:45.594 self._send_request(method, url, body, headers, encode_chunked)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1331, in _send_request
2022-05-16 16:40:45.594 self.endheaders(body, encode_chunked=encode_chunked)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1280, in endheaders
2022-05-16 16:40:45.594 self._send_output(message_body, encode_chunked=encode_chunked)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1040, in _send_output
2022-05-16 16:40:45.594 self.send(msg)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 980, in send
2022-05-16 16:40:45.594 self.connect()
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests_unixsocket/adapters.py", line 41, in connect
2022-05-16 16:40:45.594 sock.connect(socket_path)
2022-05-16 16:40:45.594 urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
2022-05-16 16:40:45.594
2022-05-16 16:40:45.594 During handling of the above exception, another exception occurred:
2022-05-16 16:40:45.594 Traceback (most recent call last):
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/craft_providers/actions/snap_installer.py", line 114, in _get_store_snap_revision
2022-05-16 16:40:45.594 snap_info = requests_unixsocket.get(url)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests_unixsocket/__init__.py", line 51, in get
2022-05-16 16:40:45.594 return request('get', url, **kwargs)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests_unixsocket/__init__.py", line 46, in request
2022-05-16 16:40:45.594 return session.request(method=method, url=url, **kwargs)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
2022-05-16 16:40:45.594 resp = self.send(prep, **send_kwargs)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
2022-05-16 16:40:45.594 r = adapter.send(request, **kwargs)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/requests/adapters.py", line 501, in send
2022-05-16 16:40:45.594 raise ConnectionError(err, request=request)
2022-05-16 16:40:45.594 requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
2022-05-16 16:40:45.594
2022-05-16 16:40:45.594 The above exception was the direct cause of the following exception:
2022-05-16 16:40:45.594 Traceback (most recent call last):
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/charmcraft/providers/_buildd.py", line 70, in _setup_charmcraft
2022-05-16 16:40:45.594 snap_installer.install_from_store(
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/craft_providers/actions/snap_installer.py", line 226, in install_from_store
2022-05-16 16:40:45.594 store_revision = _get_store_snap_revision(snap_name=snap_name, channel=channel)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/craft_providers/actions/snap_installer.py", line 116, in _get_store_snap_revision
2022-05-16 16:40:45.594 raise SnapInstallationError(
2022-05-16 16:40:45.594 craft_providers.actions.snap_installer.SnapInstallationError: Unable to connect to snapd service.
2022-05-16 16:40:45.594
2022-05-16 16:40:45.594 The above exception was the direct cause of the following exception:
2022-05-16 16:40:45.594 Traceback (most recent call last):
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/charmcraft/providers/_multipass.py", line 166, in launched_environment
2022-05-16 16:40:45.594 instance = multipass.launch(
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/craft_providers/multipass/_launch.py", line 63, in launch
2022-05-16 16:40:45.594 base_configuration.warmup(executor=instance)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/charmcraft/providers/_buildd.py", line 134, in warmup
2022-05-16 16:40:45.594 self._setup_charmcraft(executor=executor)
2022-05-16 16:40:45.594 File "/usr/local/Cellar/charmcraft/1.6.0/libexec/lib/python3.9/site-packages/charmcraft/providers/_buildd.py", line 74, in _setup_charmcraft
2022-05-16 16:40:45.594 raise bases.BaseConfigurationError(
2022-05-16 16:40:45.594 craft_providers.bases.errors.BaseConfigurationError: Failed to install Charmcraft snap from store channel 'stable' into target environment.
2022-05-16 16:40:45.594 Full execution log: '/Users/xxx/Library/Logs/charmcraft/charmcraft-20220516-164043.365444.log'