← Back to issue list

Permission issues when using multipass provider

View original Github issue

Metadata

Project
charmcraft
Number
#838
Type
issue
State
closed
Author
ale8k
Labels
Created
Updated
Closed

Current evaluation

Resolved in Charmcraft 2.4.0+. The multipass provider permission denied error during charm file transfer was fixed. Upgrade to the latest version to apply the fix.

Suggested action:

No scores available.

Issue body

Hi, When I attempt to build an operator charm via the multipass provider, I have an issue where it wishes to pull the charm from /root, and does not have permission. The full log is below and steps to reproduce: - Have a full clean VM suite via multipass delete & purge - Run `charmcraft pack --project-dir ./charms/operator-machine --verbosity=debug` Te log is as follows (from clean and build, which it explicitly reads from /root): ``` 2022-08-22 16:12:57.863 :: 2022-08-22 16:11:30.250 Packing the charm. 2022-08-22 16:12:57.863 :: 2022-08-22 16:11:30.251 Reading '/root/project/metadata.yaml' 2022-08-22 16:12:57.863 :: 2022-08-22 16:11:30.256 Validating metadata format 2022-08-22 16:12:57.863 :: 2022-08-22 16:11:30.264 Building for 'bases[0]' as host matches 'build-on[0]'. 2022-08-22 16:12:57.863 :: 2022-08-22 16:11:30.264 Building for 'bases[0][0]'. 2022-08-22 16:12:57.863 :: 2022-08-22 16:11:30.265 Building charm in '/root' 2022-08-22 16:12:57.863 :: 2022-08-22 16:11:30.270 Parts definition: {'charm': {'plugin': 'charm', 'charm-requirements': ['requirements.txt'], 'charm-entrypoint': 'src/charm.py', 'prime': ['src', 'venv', 'metadata.yaml', 'dispatch', 'hooks', 'config.yaml', 'actions.yaml', 'lib', 'LICENSE', 'README.md'], 'source': '/root/project'}} 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.271 is_snap: True, SNAP_NAME set to charmcraft 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.272 Setting target machine to x86_64 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.274 ignore patterns: ['*.charm'] 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.275 plugin build packages: {'python3-venv', 'python3-dev', 'python3-setuptools', 'python3-pip', 'python3-wheel'} 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.275 clean charm:Step.PRIME 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.275 clean charm:Step.STAGE 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.276 clean charm:Step.BUILD 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.276 Executing parts lifecycle in '/root/project' 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.276 process charm:Step.PULL 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.276 add action charm:Step.PULL(ActionType.RUN) 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.277 process charm:Step.OVERLAY 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.282 add action charm:Step.OVERLAY(ActionType.RUN) 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.282 process charm:Step.BUILD 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.283 add action charm:Step.BUILD(ActionType.RUN) 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.283 process charm:Step.STAGE 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.283 add action charm:Step.STAGE(ActionType.RUN) 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.284 process charm:Step.PRIME 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.284 add action charm:Step.PRIME(ActionType.RUN) 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.285 Parts actions: [Action(part_name='charm', step=Step.PULL, action_type=ActionType.RUN, reason=None, project_vars=None), Action(part_name='charm', step=Step.OVERLAY, action_type=ActionType.RUN, reason=None, project_vars=None), Action(part_name='charm', step=Step.BUILD, action_type=ActionType.RUN, reason=None, project_vars=None), Action(part_name='charm', step=Step.STAGE, action_type=ActionType.RUN, reason=None, project_vars=None), Action(part_name='charm', step=Step.PRIME, action_type=ActionType.RUN, reason=None, project_vars=None)] 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.285 Requested build-packages: ['python3-dev', 'python3-pip', 'python3-setuptools', 'python3-venv', 'python3-wheel'] 2022-08-22 16:12:57.864 :: 2022-08-22 16:11:30.895 Marking python3-venv (and its dependencies) to be fetched 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.896 package: python3-venv 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.912 Marking python3-dev (and its dependencies) to be fetched 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.913 package: python3-dev 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.943 Marking python3-setuptools (and its dependencies) to be fetched 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.943 package: python3-setuptools 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.957 Marking python3-pip (and its dependencies) to be fetched 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.958 package: python3-pip 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.986 Marking python3-wheel (and its dependencies) to be fetched 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:30.986 package: python3-wheel 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:31.045 Executing: ['apt-get', 'update'] 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:31.163 :: Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:31.164 :: Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:31.219 :: Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:31.230 :: Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:32.415 :: Reading package lists... 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:32.434 Installing packages: libexpat1-dev=2.2.9-1ubuntu0.4 libpython3-dev=3.8.2-0ubuntu2 libpython3.8=3.8.10-0ubuntu1~20.04.5 libpython3.8-dev=3.8.10-0ubuntu1~20.04.5 python-pip-whl=20.0.2-5ubuntu1.6 python3-dev=3.8.2-0ubuntu2 python3-pip=20.0.2-5ubuntu1.6 python3-venv=3.8.2-0ubuntu2 python3-wheel=0.34.2-1 python3.8-dev=3.8.10-0ubuntu1~20.04.5 python3.8-venv=3.8.10-0ubuntu1~20.04.5 zlib1g-dev=1:1.2.11.dfsg-2ubuntu1.3 2022-08-22 16:12:57.865 :: 2022-08-22 16:11:32.501 :: Reading package lists... 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:32.751 :: Building dependency tree... 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:32.752 :: Reading state information... 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:32.964 :: The following additional packages will be installed: 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:32.965 :: libexpat1 libpython3.8-minimal libpython3.8-stdlib python3.8 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:32.965 :: python3.8-minimal zlib1g 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:32.967 :: Suggested packages: 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:32.967 :: python3.8-doc binfmt-support 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.069 :: The following NEW packages will be installed: 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.070 :: libexpat1-dev libpython3-dev libpython3.8 libpython3.8-dev python-pip-whl 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.070 :: python3-dev python3-pip python3-venv python3-wheel python3.8-dev 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.070 :: python3.8-venv zlib1g-dev 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.071 :: The following packages will be upgraded: 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.071 :: libexpat1 libpython3.8-minimal libpython3.8-stdlib python3.8 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.072 :: python3.8-minimal zlib1g 2022-08-22 16:12:57.866 :: 2022-08-22 16:11:33.120 :: 6 upgraded, 12 newly installed, 0 to remove and 89 not upgraded. 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:33.341 :: Need to get 13.2 MB of archives. 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:33.342 :: After this operation, 31.1 MB of additional disk space will be used. 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:33.342 :: Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8 amd64 3.8.10-0ubuntu1~20.04.5 [387 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:33.908 :: Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-stdlib amd64 3.8.10-0ubuntu1~20.04.5 [1,675 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:34.167 :: Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-minimal amd64 3.8.10-0ubuntu1~20.04.5 [1,905 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:34.678 :: Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-minimal amd64 3.8.10-0ubuntu1~20.04.5 [717 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:34.686 :: Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libexpat1 amd64 2.2.9-1ubuntu0.4 [74.4 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:34.687 :: Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 zlib1g amd64 1:1.2.11.dfsg-2ubuntu1.3 [53.8 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:34.690 :: Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libexpat1-dev amd64 2.2.9-1ubuntu0.4 [117 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:34.692 :: Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8 amd64 3.8.10-0ubuntu1~20.04.5 [1,625 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:34.729 :: Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-dev amd64 3.8.10-0ubuntu1~20.04.5 [3,951 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.214 :: Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 libpython3-dev amd64 3.8.2-0ubuntu2 [7,236 B] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.214 :: Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.6 [1,805 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.410 :: Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu1.3 [155 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.426 :: Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-dev amd64 3.8.10-0ubuntu1~20.04.5 [514 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.483 :: Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-dev amd64 3.8.2-0ubuntu2 [1,212 B] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.483 :: Get:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-wheel all 0.34.2-1 [23.8 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.486 :: Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-pip all 20.0.2-5ubuntu1.6 [231 kB] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.510 :: Get:17 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3.8-venv amd64 3.8.10-0ubuntu1~20.04.5 [5,444 B] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.510 :: Get:18 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-venv amd64 3.8.2-0ubuntu2 [1,228 B] 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.831 :: Fetched 13.2 MB in 2s (5,615 kB/s) 2022-08-22 16:12:57.867 :: 2022-08-22 16:11:35.903 :: (Reading database ... 19197 files and directories currently installed.) 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:35.905 :: Preparing to unpack .../0-python3.8_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:35.990 :: Unpacking python3.8 (3.8.10-0ubuntu1~20.04.5) over (3.8.10-0ubuntu1~20.04) ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:36.117 :: Preparing to unpack .../1-libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:36.176 :: Unpacking libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.5) over (3.8.10-0ubuntu1~20.04) ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:36.540 :: Preparing to unpack .../2-python3.8-minimal_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:36.577 :: Unpacking python3.8-minimal (3.8.10-0ubuntu1~20.04.5) over (3.8.10-0ubuntu1~20.04) ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:36.948 :: Preparing to unpack .../3-libpython3.8-minimal_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.032 :: Unpacking libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.5) over (3.8.10-0ubuntu1~20.04) ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.424 :: Preparing to unpack .../4-libexpat1_2.2.9-1ubuntu0.4_amd64.deb ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.455 :: Unpacking libexpat1:amd64 (2.2.9-1ubuntu0.4) over (2.2.9-1build1) ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.558 :: Preparing to unpack .../5-zlib1g_1%3a1.2.11.dfsg-2ubuntu1.3_amd64.deb ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.581 :: Unpacking zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu1.3) over (1:1.2.11.dfsg-2ubuntu1.2) ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.667 :: Setting up zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu1.3) ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.750 :: Selecting previously unselected package libexpat1-dev:amd64. 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.757 :: (Reading database ... 19197 files and directories currently installed.) 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.758 :: Preparing to unpack .../00-libexpat1-dev_2.2.9-1ubuntu0.4_amd64.deb ... 2022-08-22 16:12:57.868 :: 2022-08-22 16:11:37.770 :: Unpacking libexpat1-dev:amd64 (2.2.9-1ubuntu0.4) ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:37.880 :: Selecting previously unselected package libpython3.8:amd64. 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:37.882 :: Preparing to unpack .../01-libpython3.8_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:37.894 :: Unpacking libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.181 :: Selecting previously unselected package libpython3.8-dev:amd64. 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.183 :: Preparing to unpack .../02-libpython3.8-dev_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.195 :: Unpacking libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.719 :: Selecting previously unselected package libpython3-dev:amd64. 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.720 :: Preparing to unpack .../03-libpython3-dev_3.8.2-0ubuntu2_amd64.deb ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.734 :: Unpacking libpython3-dev:amd64 (3.8.2-0ubuntu2) ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.802 :: Selecting previously unselected package python-pip-whl. 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.804 :: Preparing to unpack .../04-python-pip-whl_20.0.2-5ubuntu1.6_all.deb ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:38.818 :: Unpacking python-pip-whl (20.0.2-5ubuntu1.6) ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:39.054 :: Selecting previously unselected package zlib1g-dev:amd64. 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:39.056 :: Preparing to unpack .../05-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu1.3_amd64.deb ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:39.072 :: Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.3) ... 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:39.157 :: Selecting previously unselected package python3.8-dev. 2022-08-22 16:12:57.869 :: 2022-08-22 16:11:39.158 :: Preparing to unpack .../06-python3.8-dev_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.170 :: Unpacking python3.8-dev (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.241 :: Selecting previously unselected package python3-dev. 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.243 :: Preparing to unpack .../07-python3-dev_3.8.2-0ubuntu2_amd64.deb ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.256 :: Unpacking python3-dev (3.8.2-0ubuntu2) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.336 :: Selecting previously unselected package python3-wheel. 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.338 :: Preparing to unpack .../08-python3-wheel_0.34.2-1_all.deb ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.350 :: Unpacking python3-wheel (0.34.2-1) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.436 :: Selecting previously unselected package python3-pip. 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.438 :: Preparing to unpack .../09-python3-pip_20.0.2-5ubuntu1.6_all.deb ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.453 :: Unpacking python3-pip (20.0.2-5ubuntu1.6) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.571 :: Selecting previously unselected package python3.8-venv. 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.573 :: Preparing to unpack .../10-python3.8-venv_3.8.10-0ubuntu1~20.04.5_amd64.deb ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.585 :: Unpacking python3.8-venv (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.645 :: Selecting previously unselected package python3-venv. 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.647 :: Preparing to unpack .../11-python3-venv_3.8.2-0ubuntu2_amd64.deb ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.660 :: Unpacking python3-venv (3.8.2-0ubuntu2) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.740 :: Setting up libexpat1:amd64 (2.2.9-1ubuntu0.4) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.775 :: Setting up libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:39.823 :: Setting up python3-wheel (0.34.2-1) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:40.203 :: Setting up libexpat1-dev:amd64 (2.2.9-1ubuntu0.4) ... 2022-08-22 16:12:57.870 :: 2022-08-22 16:11:40.237 :: Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.3) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:40.273 :: Setting up python3.8-minimal (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:40.791 :: Setting up python-pip-whl (20.0.2-5ubuntu1.6) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:40.827 :: Setting up libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:40.865 :: Setting up python3.8 (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:41.614 :: Setting up libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:41.648 :: Setting up python3.8-venv (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:41.722 :: Setting up python3-pip (20.0.2-5ubuntu1.6) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.010 :: Setting up python3-venv (3.8.2-0ubuntu2) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.044 :: Setting up libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.076 :: Setting up python3.8-dev (3.8.10-0ubuntu1~20.04.5) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.109 :: Setting up libpython3-dev:amd64 (3.8.2-0ubuntu2) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.145 :: Setting up python3-dev (3.8.2-0ubuntu2) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.178 :: Processing triggers for libc-bin (2.31-0ubuntu9.2) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.221 :: Processing triggers for mime-support (3.64ubuntu1) ... 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.919 :: libexpat1-dev set to automatically installed. 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.920 :: libpython3-dev set to automatically installed. 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.920 :: libpython3.8 set to automatically installed. 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.920 :: libpython3.8-dev set to automatically installed. 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.920 :: python-pip-whl set to automatically installed. 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.921 :: python3-dev set to automatically installed. 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.921 :: python3-pip set to automatically installed. 2022-08-22 16:12:57.871 :: 2022-08-22 16:11:42.921 :: python3-venv set to automatically installed. 2022-08-22 16:12:57.872 :: 2022-08-22 16:11:43.130 Running step BUILD for part 'charm' 2022-08-22 16:12:57.872 :: 2022-08-22 16:11:43.130 Execute action 2022-08-22 16:12:57.872 :: 2022-08-22 16:11:43.131 execute action charm:Action(part_name='charm', step=Step.BUILD, action_type=ActionType.RUN, reason=None, project_vars=None) 2022-08-22 16:12:57.872 :: 2022-08-22 16:11:43.132 remove directory /root/parts/charm/build 2022-08-22 16:12:57.872 :: 2022-08-22 16:11:43.137 :: + env -i LANG=C.UTF-8 LC_ALL=C.UTF-8 PATH=/snap/charmcraft/x1/libexec/charmcraft:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAP=/snap/charmcraft/x1 SNAP_ARCH=amd64 SNAP_NAME=charmcraft SNAP_VERSION=2.0.0 /snap/charmcraft/x1/bin/python3 -I /snap/charmcraft/x1/lib/charmcraft/charm_builder.py --charmdir /root/parts/charm/build --builddir /root/parts/charm/install --entrypoint /root/parts/charm/build/src/charm.py -r requirements.txt 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Starting charm builder 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Logging execution to '/tmp/charmcraft.log' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Translated .jujuignore 2 '.git' => '.*/\\.git\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Translated .jujuignore 3 '.svn' => '.*/\\.svn\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Translated .jujuignore 4 '.hg' => '.*/\\.hg\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Translated .jujuignore 5 '.bzr' => '.*/\\.bzr\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Translated .jujuignore 6 '.tox' => '.*/\\.tox\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Translated .jujuignore 8 '/build/' => '/build\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.051 :: 2022-08-22 16:11:43.684 Translated .jujuignore 9 '/revision' => '/revision\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.684 Translated .jujuignore 10 '/venv' => '/venv\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.684 Translated .jujuignore 12 '.jujuignore' => '.*/\\.jujuignore\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.684 Translated .jujuignore 1 '/venv\n' => '/venv\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.685 Translated .jujuignore 2 '*.py[cod]\n' => '.*/[^/]*\\.py[cod]\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.685 Translated .jujuignore 3 '*.charm\n' => '.*/[^/]*\\.charm\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.685 Translated .jujuignore 1 '/staging-venv' => '/staging\\-venv\\Z' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.685 Building charm in '/root/parts/charm/install' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.685 Linking in generic paths 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.686 Ignoring file because of rules: '.jujuignore' 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.686 Creating the dispatch mechanism 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.686 Creating the 'start' hook script pointing to dispatch 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.686 Creating the 'install' hook script pointing to dispatch 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.686 Creating the 'upgrade-charm' hook script pointing to dispatch 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.687 Handling dependencies 2022-08-22 16:12:57.872 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.687 Current dependencies hash: 'fc8878c904bff0511c32cdc1723d885b3a097c76' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.687 Dependencies directory not found 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.687 Installing dependencies 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:43.687 Running external command ['python3', '-m', 'venv', '/root/parts/charm/build/staging-venv'] 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:45.263 Running external command ['/root/parts/charm/build/staging-venv/bin/pip3', '--version'] 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:45.902 :: pip 20.0.2 from /root/parts/charm/build/staging-venv/lib/python3.8/site-packages/pip (python 3.8) 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:45.921 Running external command ['/root/parts/charm/build/staging-venv/bin/pip3', 'install', '--upgrade', '--no-binary', ':all:', '--requirement=requirements.txt'] 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:46.881 :: Collecting ops>=1.4.0 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:46.946 :: Downloading ops-1.5.2.tar.gz (221 kB) 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:47.019 :: Installing build dependencies: started 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:52.805 :: Installing build dependencies: finished with status 'done' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:52.806 :: Getting requirements to build wheel: started 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:53.002 :: Getting requirements to build wheel: finished with status 'done' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:53.005 :: Preparing wheel metadata: started 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:53.207 :: Preparing wheel metadata: finished with status 'done' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:53.297 :: Collecting PyYAML 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:53.307 :: Downloading PyYAML-6.0.tar.gz (124 kB) 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:11:53.480 :: Installing build dependencies: started 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:12:53.321 :: Installing build dependencies: finished with status 'done' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:12:53.322 :: Getting requirements to build wheel: started 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.052 :: 2022-08-22 16:12:54.028 :: Getting requirements to build wheel: finished with status 'done' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.030 :: Preparing wheel metadata: started 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.251 :: Preparing wheel metadata: finished with status 'done' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.254 :: Building wheels for collected packages: ops, PyYAML 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.255 :: Building wheel for ops (PEP 517): started 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.490 :: Building wheel for ops (PEP 517): finished with status 'done' 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.491 :: Created wheel for ops: filename=ops-1.5.2-py3-none-any.whl size=147085 sha256=e03094c46fc27a3eefa73fb91eff5b0ed2f8e54b5996b0245a411891adc559bb 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.491 :: Stored in directory: /root/.cache/pip/wheels/58/87/60/8ee0da96a077d71306621e2832a1453f4737ec6ef4a0d08b68 2022-08-22 16:12:57.873 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.492 :: Building wheel for PyYAML (PEP 517): started 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.846 :: Building wheel for PyYAML (PEP 517): finished with status 'done' 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.846 :: Created wheel for PyYAML: filename=PyYAML-6.0-cp38-cp38-linux_x86_64.whl size=45331 sha256=408b90f083eb1f172776a0ef7acda3332e01e4733ee2e9911c476373664ec31c 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.846 :: Stored in directory: /root/.cache/pip/wheels/52/84/66/50912fd7bf1639a31758e40bd4312602e104a8eca1e0da9645 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.846 :: Successfully built ops PyYAML 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.848 :: Installing collected packages: PyYAML, ops 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.053 :: 2022-08-22 16:12:54.947 :: Successfully installed PyYAML-6.0 ops-1.5.2 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.749 Running step STAGE for part 'charm' 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.750 Execute action 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:55.750 execute action charm:Action(part_name='charm', step=Step.STAGE, action_type=ActionType.RUN, reason=None, project_vars=None) 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.056 Running step PRIME for part 'charm' 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.056 Execute action 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.057 execute action charm:Action(part_name='charm', step=Step.PRIME, action_type=ActionType.RUN, reason=None, project_vars=None) 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.301 Reading '/root/prime/metadata.yaml' 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.306 Check result: language [attribute] python (The charm is written with Python.; see more at https://juju.is/docs/sdk/charmcraft-analyze#heading--language). 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.307 Check result: framework [attribute] operator (The charm is based on the Operator Framework.; see more at https://juju.is/docs/sdk/charmcraft-analyze#heading--framework). 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.309 Creating the package itself 2022-08-22 16:12:57.874 :: 2022-08-22 16:12:56.630 Created 'diglett-machine_ubuntu-20.04-amd64.charm'. 2022-08-22 16:12:59.485 charmcraft internal error: MultipassError(brief="Failed to transfer 'charmcraft-diglett-machine-23999801-0-0-amd64:/root/diglett-machine_ubuntu-20.04-amd64.charm' to '/home/ale8k/Development/diglett-server/diglett-machine_ubuntu-20.04-amd64.charm'.", details='* Command that failed: \'multipass transfer charmcraft-diglett-machine-23999801-0-0-amd64:/root/diglett-machine_ubuntu-20.04-amd64.charm /home/ale8k/Development/diglett-server/diglett-machine_ubuntu-20.04-amd64.charm\'\n* Command exit code: 2\n* Command standard error output: b"transfer failed: [sftp pull] open failed: \'SFTP server: Permission denied\'\\n"', resolution=None) 2022-08-22 16:12:59.491 Traceback (most recent call last): 2022-08-22 16:12:59.491 File "/snap/charmcraft/1033/lib/craft_providers/multipass/multipass.py", line 294, in transfer 2022-08-22 16:12:59.491 self._run(command) 2022-08-22 16:12:59.491 File "/snap/charmcraft/1033/lib/craft_providers/multipass/multipass.py", line 66, in _run 2022-08-22 16:12:59.491 return subprocess.run(command, check=True, capture_output=True, **kwargs) 2022-08-22 16:12:59.491 File "/snap/charmcraft/1033/usr/lib/python3.8/subprocess.py", line 516, in run 2022-08-22 16:12:59.491 raise CalledProcessError(retcode, process.args, 2022-08-22 16:12:59.491 subprocess.CalledProcessError: Command '['multipass', 'transfer', 'charmcraft-diglett-machine-23999801-0-0-amd64:/root/diglett-machine_ubuntu-20.04-amd64.charm', '/home/ale8k/Development/diglett-server/diglett-machine_ubuntu-20.04-amd64.charm']' returned non-zero exit status 2. 2022-08-22 16:12:59.491 2022-08-22 16:12:59.491 The above exception was the direct cause of the following exception: 2022-08-22 16:12:59.492 Traceback (most recent call last): 2022-08-22 16:12:59.492 File "/snap/charmcraft/1033/lib/charmcraft/main.py", line 180, in main 2022-08-22 16:12:59.492 retcode = dispatcher.run() 2022-08-22 16:12:59.492 File "/snap/charmcraft/1033/lib/craft_cli/dispatcher.py", line 419, in run 2022-08-22 16:12:59.492 return self._loaded_command.run(self._parsed_command_args) 2022-08-22 16:12:59.492 File "/snap/charmcraft/1033/lib/charmcraft/commands/pack.py", line 121, in run 2022-08-22 16:12:59.492 self._pack_charm(parsed_args) 2022-08-22 16:12:59.492 File "/snap/charmcraft/1033/lib/charmcraft/commands/pack.py", line 153, in _pack_charm 2022-08-22 16:12:59.492 charms = builder.run( 2022-08-22 16:12:59.492 File "/snap/charmcraft/1033/lib/charmcraft/commands/build.py", line 391, in run 2022-08-22 16:12:59.493 charm_name = self.pack_charm_in_instance( 2022-08-22 16:12:59.493 File "/snap/charmcraft/1033/lib/charmcraft/commands/build.py", line 459, in pack_charm_in_instance 2022-08-22 16:12:59.493 instance.pull_file( 2022-08-22 16:12:59.493 File "/snap/charmcraft/1033/lib/craft_providers/multipass/multipass_instance.py", line 336, in pull_file 2022-08-22 16:12:59.493 self._multipass.transfer( 2022-08-22 16:12:59.493 File "/snap/charmcraft/1033/lib/craft_providers/multipass/multipass.py", line 296, in transfer 2022-08-22 16:12:59.493 raise MultipassError( 2022-08-22 16:12:59.493 craft_providers.multipass.errors.MultipassError: Failed to transfer 'charmcraft-diglett-machine-23999801-0-0-amd64:/root/diglett-machine_ubuntu-20.04-amd64.charm' to '/home/ale8k/Development/diglett-server/diglett-machine_ubuntu-20.04-amd64.charm'. 2022-08-22 16:12:59.493 * Command that failed: 'multipass transfer charmcraft-diglett-machine-23999801-0-0-amd64:/root/diglett-machine_ubuntu-20.04-amd64.charm /home/ale8k/Development/diglett-server/diglett-machine_ubuntu-20.04-amd64.charm' 2022-08-22 16:12:59.493 * Command exit code: 2 2022-08-22 16:12:59.493 * Command standard error output: b"transfer failed: [sftp pull] open failed: 'SFTP server: Permission denied'\n" 2022-08-22 16:12:59.493 Full execution log: '/home/ale8k/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220822-160929.665875.log' ``` Thanks!

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6 Resolved in Charmcraft 2.4.0+. The multipass provider permission denied error during charm file transfer was fixed. Upgrade to the latest version to apply the fix.
qwen/qwen3.6-35b-a3b Resolved in Charmcraft 2.4.0+. The multipass provider file transfer permission error was fixed. Upgrade to this version to resolve the SFTP pull failure.
qwen3.6-35b-a3b-mtp-q6 Resolved in Charmcraft 2.4.0+. The multipass provider SFTP permission error during file transfer was fixed. Upgrade to apply the fix.
qwen3.6-35b-a3b-mtp-q6 Resolved in Charmcraft 2.4.0+. The multipass provider SFTP permission error during charm file transfer was fixed. Upgrade to the latest version to resolve.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1917 Charmcraft cannot parse a dev version build for multipass charmcraft open Charmcraft pack fails with InvalidVersion on dev multipass builds (e.g. 1.15.0-dev.2929.pr661). Root cause traced to craft-providers version parsing; upstream fix landed in craft-providers. Issue is triaged and effectively resolved upstream.
71%