← Back to issue list

Bad error report when the lxd instance is already running

View original Github issue

Metadata

Project
craft-application
Number
#370
Type
issue
State
open
Author
tigarmo
Labels
Created
2024-07-03 12:41:55+00:00
Updated
2025-05-23 17:27:00+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description I had a `pack` command crash for unrelated reasons, which left the lxd instance running. When running `craftapp pack` again I got the following error: ``` Launching managed ubuntu 22.04 instance... Starting instance Failed to start 'craftapp-hello-on-amd64-for-amd64-1'. Full execution log: '/home/ubuntu/.local/state/craftapp/log/craftapp-20240703-093523.724743.log' ``` ### To Reproduce Run `craftapp pack`, and in another terminal run `craftapp pack` in the same directory again ### part yaml ```shell n/a ``` ### Relevant log output ```shell 2024-07-03 09:35:29.737 craft_providers.lxd.errors.LXDError: Failed to start 'craftapp-hello-on-amd64-for-amd64-1'. 2024-07-03 09:35:29.737 * Command that failed: 'lxc --project craftapp start local:craftapp-hello-on-amd64-for-amd64-1' 2024-07-03 09:35:29.737 * Command exit code: 1 2024-07-03 09:35:29.737 * Command standard error output: b'Error: The instance is already running\n' ```

Evaluation history

No evaluation history available.