You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on 22.04, trying to build a core20 snap, and snapcraft fails to launch a snapcraft instance.
Turns out it doesn't exist after snapcraft finished configuring multipass:
~/grafana-agent-snap> snapcraft
Support for 'multipass' needs to be set up. Would you like to do it now? [y/N]: y
snapd is not logged in, snap install commands will use sudo
multipass 1.14.1 from Canonical✓ installed
Waiting for multipass...
Launching a VM.
launch failed: Remote "snapcraft" is unknown or unreachable. If image mirror is enabled, please confirm it is valid.
An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
~/grafana-agent-snap> multipass list
No instances found.
Moreover, the multipass instance name isn't "snapcraft" but rather "snapcraft-<snap_name>":
~/grafana-agent-snap> snapcraft
Launching a VM.
Build environment is in unknown state, cleaning first.
info failed: The following errors occurred:
instance "snapcraft-grafana-agent" does not exist
Launched: snapcraft-grafana-agent
To Reproduce
From a host that doens't have multipass pre-installed:
git clone https://github.com/canonical/grafana-agent-snap.git
cd grafana-agent-snap
./make-classic.sh
snapcraft
Environment
Ubuntu 22.04.5
Snapcraft 8.4.4 (12961)
snapcraft.yaml
name: grafana-agentversion: '0.40.4'summary: A telemetry collector for sending metrics, logs, and trace datalicense: Apache-2.0contact: [email protected]issues: https://github.com/canonical/grafana-agent-snap/issuessource-code: https://github.com/canonical/grafana-agent-snapwebsite: https://grafana.comdescription: "Grafana Agent is a telemetry collector for sending metrics, \nlogs, and trace data to the opinionated Grafana observability stack.\n"base: core20grade: stableconfinement: classiccompression: lzoapps:
grafana-agent:
daemon: simplecommand: agent-wrapperinstall-mode: disablerestart-condition: on-failurearchitectures:
- build-on: amd64
- build-on: arm64parts:
wrapper:
plugin: dumpsource: ./snap/localsource-type: localoverride-build: | cp agent-wrapper.classic $SNAPCRAFT_PART_INSTALL/agent-wrappergrafana-agent:
plugin: gosource: https://github.com/grafana/agentsource-type: gitsource-tag: "v0.40.4"build-snaps:
- go/1.22/stablebuild-packages:
- build-essential
- libsystemd-devstage-packages:
- libsystemd0override-build: | export USE_CONTAINER=0 export GOFLAGS="-mod=readonly -tags=promtail_journal_enabled" make agent agentctl cp build/grafana-agent $SNAPCRAFT_PART_INSTALL/agent cp build/grafana-agentctl $SNAPCRAFT_PART_INSTALL/agentctl
Relevant log output
(Inlined in bug description)
Additional context
No response
The text was updated successfully, but these errors were encountered:
This comes up when someone is running on a non-amd64 platform or when the image servers are unavailable, either from a local or remote network issue. We've had similar reports in #4106.
We have an open issue to improve how this error is presented to the user.
Bug Description
I'm on 22.04, trying to build a core20 snap, and snapcraft fails to launch a
snapcraft
instance.Turns out it doesn't exist after snapcraft finished configuring multipass:
Moreover, the multipass instance name isn't "snapcraft" but rather "snapcraft-<snap_name>":
To Reproduce
From a host that doens't have multipass pre-installed:
git clone https://github.com/canonical/grafana-agent-snap.git cd grafana-agent-snap ./make-classic.sh snapcraft
Environment
Ubuntu 22.04.5
Snapcraft 8.4.4 (12961)
snapcraft.yaml
Relevant log output
(Inlined in bug description)
Additional context
No response
The text was updated successfully, but these errors were encountered: