← Back to issue list

charmcract pack stuck at `Pausing control of the terminal`

View original Github issue

Metadata

Project
charmcraft
Number
#2369
Type
issue
State
open
Author
yhaliaw
Labels
Created
2025-07-10 02:16:37+00:00
Updated
2025-08-15 15:17:46+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description With a new charm created with `charmcraft init` will minimum code added, and not added dependencies, the first `charmcraft pack` took 30+ mins. From the logs, most of the execution was fine until `Emitter: Pausing control of the terminal`, which was stuck for almost 30 mins. ### To Reproduce I have only encountered this issue once. 1. `charmcraft init` to create a new charm 2. `charmcraft pack` ### Environment Ubuntu 22.04 charmcraft 3.5.2 lxd 5.21.3 LTS ### charmcraft.yaml ```yaml # This file configures Charmcraft. # See https://canonical-charmcraft.readthedocs-hosted.com/en/stable/reference/files/charmcraft-yaml-file/ type: charm name: upgrade-on-error title: Charm Template summary: A very short one-line summary of the charm. description: | A single sentence that says what the charm is, concisely and memorably. A paragraph of one to three short sentences, that describe what the charm does. A third paragraph that explains what need the charm meets. Finally, a paragraph that describes whom the charm is useful for. # Documentation: # https://canonical-charmcraft.readthedocs-hosted.com/en/stable/howto/build-guides/select-platforms/ base: ubuntu@22.04 platforms: amd64: arm64: parts: charm: plugin: charm source: . # (Optional) Configuration options for the charm # This config section defines charm config options, and populates the Configure # tab on Charmhub. # More information on this section at: # https://canonical-charmcraft.readthedocs-hosted.com/en/stable/reference/files/charmcraft-yaml-file/#config # General configuration documentation: # https://canonical-juju.readthedocs-hosted.com/en/latest/user/reference/configuration/#application-configuration config: options: # An example config option to customise the log level of the workload log-level: description: | Configures the log level of gunicorn. Acceptable values are: "info", "debug", "warning", "error" and "critical" default: "info" type: string ``` ### Relevant log output ```shell ... 2025-07-10 09:26:05.292 Executing on host: lxc --project charmcraft config device show local:charmcraft-upgrade-on-error-amd64-4101253 2025-07-10 09:26:05.374 Executing on host: lxc --project charmcraft config device add local:charmcraft-upgrade-on-error-amd64-4101253 disk-/root/project disk source=/home/yhaliaw/work/tmp/upgrade-on-error path=/root/project 2025-07-10 09:26:05.483 Instance launched and working directory mounted 2025-07-10 09:26:05.483 Pushing bashrc to instance 2025-07-10 09:26:05.484 Executing on host: lxc --project charmcraft file push /tmp/tmps154e6dk local:charmcraft-upgrade-on-error-amd64-4101253/root/.bashrc --mode=644 2025-07-10 09:26:05.569 Executing in container: lxc --project charmcraft exec local:charmcraft-upgrade-on-error-amd64-4101253 -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /root/.bashrc 2025-07-10 09:26:05.696 Executing in container: lxc --project charmcraft exec local:charmcraft-upgrade-on-error-amd64-4101253 -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical rm -rf /root/snap/charmcraft/common/cache 2025-07-10 09:26:05.827 Executing in container: lxc --project charmcraft exec local:charmcraft-upgrade-on-error-amd64-4101253 -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical mkdir -p /root/.cache 2025-07-10 09:26:05.937 Executing in container: lxc --project charmcraft exec local:charmcraft-upgrade-on-error-amd64-4101253 -- env CRAFT_MANAGED_MODE=1 CHARMCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical ln -s /root/.cache /root/snap/charmcraft/common/cache 2025-07-10 09:26:06.046 Executing ['charmcraft', 'pack'] in instance location /root/project with {'env': {'CRAFT_PLATFORM': 'amd64', 'CRAFT_VERBOSITY_LEVEL': 'BRIEF'}}. 2025-07-10 09:26:06.046 Emitter: Pausing control of the terminal ```

Evaluation history

No evaluation history available.