Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Host state requires a deploy account that can write /var/lib/onebox

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
docker, go, shell

Línea de trabajo

Look at the host lock acquisition code, likely in a file like internal/host/lock.go or similar. The acquireHostLock function attempts to create /var/lib/onebox/_host. Examine the preflight check that reports this issue. The fix involves modifying the host state directory logic, possibly adding a host-level configuration or improving the error message and documentation. Test by setting up a non-root deploy account and running the bootstrap command.

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

Descripción

bug

Problem

Since #206, host state (owner record, host lock, host journal, proxy) always lives at /var/lib/onebox/_host, whatever basePath says. That is what keeps a host to one application, but it means a deploy account that owns its basePath and cannot write /var/lib can no longer bootstrap: acquireHostLock fails on mkdir -p /var/lib/onebox/_host.

Before #206, _host sat under basePath, so a non-root account with basePath: /home/deploy/onebox worked.

Preflight now reports it (host state check), but no project setting fixes it. The only override, ONEBOX_TEST_HOST_STATE_DIR, is test-only by design.

Options

  • Document that the deploy account must be able to create /var/lib/onebox/_host, and have ob bootstrap say how to pre-create it with the right owner.
  • Or add a host-level (not project-level) setting for the host state directory, so it cannot differ per application on one host.
Lenguaje dominante
Go
Estrellas
3
Forks
0
Merge medio
2 h 44 min
PR fusionados (30 d)
49

Guía de contribución

Abrir la 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 labstack/onebox

Todos los issues de labstack/onebox

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.