← Back to issue list

Snapcraft-rocks fails when executing craftctl

View original Github issue

Metadata

Project
snapcraft-rocks
Number
#33
Type
issue
State
closed
Author
cmatsuoka
Labels
Type: Bug Status: Triaged
Created
Updated
Closed

Current evaluation

Resolved a snapcraft-rocks build failure where craftctl execution crashed due to a missing craft_parts module. Fix merged via pull requests #67, #68, #45, and #102 across core22 and core24 branches.

Suggested action:

No scores available.

Issue body

An attempt to build https://github.com/cmatsuoka/mpg123-snap using Snapcraft-rocks 8_core22 failed with the following output: ``` $ docker run -it -v $(pwd):/project ghcr.io/canonical/snapcraft:8_core22 pack 2024-04-08T15:50:44.716Z [pebble] Started daemon. 2024-04-08T15:50:44.745Z [pebble] POST /v1/services 3.122726ms 202 2024-04-08T15:50:44.746Z [pebble] Started default services with change 1. 2024-04-08T15:50:44.748Z [pebble] Service "snapcraft" starting: /bin/run-snapcraft.sh [ pack ] 2024-04-08T15:50:45.259Z [snapcraft] 2024-04-08T15:50:45.260Z [snapcraft] WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 2024-04-08T15:50:45.261Z [snapcraft] 2024-04-08T15:50:45.737Z [snapcraft] Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] 2024-04-08T15:50:45.898Z [snapcraft] Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] 2024-04-08T15:50:46.416Z [snapcraft] Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] 2024-04-08T15:50:46.577Z [snapcraft] Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB] 2024-04-08T15:50:46.736Z [snapcraft] Get:5 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB] 2024-04-08T15:50:46.770Z [snapcraft] Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1641 kB] 2024-04-08T15:50:46.811Z [snapcraft] Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB] 2024-04-08T15:50:47.140Z [snapcraft] Get:8 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB] 2024-04-08T15:50:47.147Z [snapcraft] Get:9 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB] 2024-04-08T15:50:47.410Z [snapcraft] Get:10 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.6 kB] 2024-04-08T15:50:47.412Z [snapcraft] Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2067 kB] 2024-04-08T15:50:47.566Z [snapcraft] Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1081 kB] 2024-04-08T15:50:47.982Z [snapcraft] Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [61.2 kB] 2024-04-08T15:50:47.983Z [snapcraft] Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1966 kB] 2024-04-08T15:50:48.046Z [snapcraft] Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2161 kB] 2024-04-08T15:50:48.148Z [snapcraft] Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1357 kB] 2024-04-08T15:50:48.212Z [snapcraft] Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [33.3 kB] 2024-04-08T15:50:48.213Z [snapcraft] Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [80.9 kB] 2024-04-08T15:50:48.728Z [snapcraft] Fetched 30.8 MB in 3s (9380 kB/s) 2024-04-08T15:50:48.728Z [snapcraft] Reading package lists... 2024-04-08T15:50:49.545Z [snapcraft] Building dependency tree... 2024-04-08T15:50:49.695Z [snapcraft] Reading state information... 2024-04-08T15:50:49.714Z [snapcraft] 12 packages can be upgraded. Run 'apt list --upgradable' to see them. 2024-04-08T15:50:55.841Z [snapcraft] Starting Snapcraft 8.0.5 2024-04-08T15:50:55.841Z [snapcraft] Logging execution to '/root/.local/state/snapcraft/log/snapcraft-20240408-155055.839046.log' 2024-04-08T15:50:55.866Z [snapcraft] Running on amd64 for amd64 2024-04-08T15:50:55.866Z [snapcraft] Initializing parts lifecycle 2024-04-08T15:50:55.896Z [snapcraft] Installing build-packages 2024-04-08T15:54:26.511Z [snapcraft] The following snaps are required but not installed as the application is running inside docker or podman container: core22. 2024-04-08T15:54:26.511Z [snapcraft] Please ensure the environment is properly setup before continuing. 2024-04-08T15:54:26.511Z [snapcraft] Ignore this message if the appropriate measures have already been taken. 2024-04-08T15:54:26.513Z [snapcraft] Pulling mpg123 2024-04-08T15:54:26.526Z [snapcraft] Fetching stage-packages 2024-04-08T15:54:37.508Z [snapcraft] :: + craftctl default 2024-04-08T15:54:37.534Z [snapcraft] :: Traceback (most recent call last): 2024-04-08T15:54:37.534Z [snapcraft] :: File "/usr/libexec/snapcraft/craftctl", line 5, in <module> 2024-04-08T15:54:37.535Z [snapcraft] :: from craft_parts.ctl import main 2024-04-08T15:54:37.535Z [snapcraft] :: ModuleNotFoundError: No module named 'craft_parts' 2024-04-08T15:54:37.709Z [snapcraft] 'override-pull' in part 'mpg123' failed with code 1. 2024-04-08T15:54:37.709Z [snapcraft] Review the scriptlet and make sure it's correct. 2024-04-08T15:54:37.741Z [snapcraft] Full execution log: '/root/.local/state/snapcraft/log/snapcraft-20240408-155055.839046.log' 2024-04-08T15:54:37.936Z [pebble] Service "snapcraft" stopped unexpectedly with code 1 2024-04-08T15:54:37.936Z [pebble] Service "snapcraft" on-failure action is "shutdown", triggering failure shutdown 2024-04-08T15:54:37.936Z [pebble] Server exiting! ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Resolved a snapcraft-rocks build failure where craftctl execution crashed due to a missing craft_parts module. Fix merged via pull requests #67, #68, #45, and #102 across core22 and core24 branches.
qwen/qwen3.6-35b-a3b Fixed. The craft_parts module error in Snapcraft-rocks builds was resolved and merged via pull requests #67, #68, #45, and #102 across multiple core branches, closing the issue.
qwen/qwen3.6-35b-a3b Fixed the snapcraft-rocks craftctl ModuleNotFoundError by merging PR #102, which resolves the missing craft_parts dependency in containerized builds.
qwen3.6-35b-a3b-mtp-q6 Fixed the craft_parts module not found error when executing craftctl in Snapcraft-rocks. The resolution was merged via pull request #102 in the canonical/snapcraft-rocks repository, closing the issue.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#65 Bring snapcraft-rocks up-to-date snapcraft-rocks closed Closed. Partially resolved via merged PRs #70 and #74, updating core22 v7 and core24 v8 compatibility. core22 v8 support remains pending PR #84.
79%