Logs for `Cannot open credentials directory "/etc/apt/auth.conf.d"` when not using Pro archives

Abierto
#207 5 comentarios 0 reacciones 0 asignados Ver en GitHub

@cristiangirlea ya está trabajando en esto.

Desde el 23/9/2026.

  • #326 de @cristiangirlea — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
go
Área
cli

Línea de trabajo

Reproduce la salida con el comando documentado chisel cut --release ubuntu-24.04 --root /root-fs base-files_base e inspecciona la ruta de descubrimiento de credenciales de los archivos Pro. Se considera terminado cuando los logs expliquen claramente que las comprobaciones de credenciales corresponden a archivos Pro opcionales y que el comportamiento previsto cuando faltan esas credenciales está documentado o se gestiona explícitamente.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Simple

Minor UX issue.

I wasn't sure what the logs were about at first until noticing the relation to the Pro archives feature. The logs could better communicate that context.


Installing chisel into an alpine image:

docker run --rm -it alpine

export \
  TARGETARCH=amd64 \
  CHISEL_VERSION=1.1.0 \
 
CHISEL_RELEASE="https://github.com/canonical/chisel/releases/download/v${CHISEL_VERSION}/chisel_v${CHISEL_VERSION}_linux_${TARGETARCH}.tar.gz"

# Install chisel:
wget -qO - "${CHISEL_RELEASE}" | tar -xz --no-same-owner -C /usr/local/bin chisel

Install a slice:

$ mkdir /root-fs
$ chisel cut --release ubuntu-24.04 --root /root-fs base-files_base

2025/03/13 02:33:06 Consulting release repository...
2025/03/13 02:33:06 Fetching current ubuntu-24.04 release...
2025/03/13 02:33:06 Processing ubuntu-24.04 release...
2025/03/13 02:33:22 Selecting slices...
2025/03/13 02:33:22 Cannot open credentials directory "/etc/apt/auth.conf.d": open /etc/apt/auth.conf.d: no such file or directory
2025/03/13 02:33:22 Archive "ubuntu-esm-apps" ignored: credentials not found
2025/03/13 02:33:22 Cannot open credentials directory "/etc/apt/auth.conf.d": open /etc/apt/auth.conf.d: no such file or directory
2025/03/13 02:33:22 Archive "ubuntu-esm-infra" ignored: credentials not found
2025/03/13 02:33:22 Fetching ubuntu 24.04 noble suite details...
2025/03/13 02:33:23 Release date: Thu, 25 Apr 2024 15:10:33 UTC
2025/03/13 02:33:23 Fetching index for ubuntu 24.04 noble main component...
2025/03/13 02:33:24 Fetching index for ubuntu 24.04 noble universe component...
2025/03/13 02:33:26 Fetching ubuntu 24.04 noble-security suite details...
2025/03/13 02:33:27 Release date: Wed, 12 Mar 2025 23:28:15 UTC
2025/03/13 02:33:27 Fetching index for ubuntu 24.04 noble-security main component...
2025/03/13 02:33:27 Fetching index for ubuntu 24.04 noble-security universe component...
2025/03/13 02:33:27 Fetching ubuntu 24.04 noble-updates suite details...
2025/03/13 02:33:27 Release date: Thu, 13 Mar 2025  1:23:23 UTC
2025/03/13 02:33:27 Fetching index for ubuntu 24.04 noble-updates main component...
2025/03/13 02:33:28 Fetching index for ubuntu 24.04 noble-updates universe component...
2025/03/13 02:33:28 Fetching pool/main/b/base-files/base-files_13ubuntu10.2_amd64.deb...
2025/03/13 02:33:28 Extracting files from package "base-files"...

Should this be a concern that chisel assumes it runs within an environment that has apt installed? (EDIT: I'm guessing from below chisel only cares about discovering the configs to use itself, hence the ENV configurable)

Cannot open credentials directory "/etc/apt/auth.conf.d": open /etc/apt/auth.conf.d: no such file or directory

This was not part of the earlier 0.10.0 chisel release. Given the other logs associated to it I assume this is the 1.1.0 release introduction of Pro archives?:

Image

I see the path is configurable but as I'm not trying to use the Pro archives is there no way to communicate an opt-out?

Lenguaje dominante
Go
Estrellas
434
Forks
74
Merge medio
1 d 30 min
PR fusionados (30 d)
1

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de canonical/chisel

Todos los issues de canonical/chisel

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.