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

Ubuntu 26.04: the per-user message broker does not start (AppArmor profile for mosquitto)

Abierto
#646 1 comentario 0 reacciones 1 asignado Ver en GitHub

@ohlincha ya está trabajando en esto.

Desde el 28/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

On Ubuntu 26.04 the mosquitto package (2.0.22) installs an AppArmor profile, /etc/apparmor.d/mosquitto, attached to /usr/sbin/mosquitto. It allows only the system service's files (/etc/mosquitto, /var/lib/mosquitto, /var/log/mosquitto, inet sockets). ECCE starts a per-user broker with its configuration, log and Unix socket under ~/.ECCE (or $XDG_RUNTIME_DIR/ecce-* for long paths), so it cannot read its configuration or create its socket, and ecce-gateway-start ends with "broker did not come up within 10s". Every ECCE app then refuses to start ("no messaging relay for this session").

Found on CI: GitHub's ubuntu-latest moved from 24.04 to 26.04 and the GUI-app suite failed on all apps. CI is pinned to ubuntu-24.04 for now (ea955db5); 9.4.2's Ubuntu package is built on 24.04, as the release notes say. Debian 13 (mosquitto 2.0.21) has no such profile.

Proposed fix: the profile ends with include if exists <local/mosquitto>, the place meant for site additions. The ecce-client package for Ubuntu installs /etc/apparmor.d/local/mosquitto with, roughly,

owner @{HOME}/.ECCE/** rwk,
owner @{run}/user/*/ecce-*/** rwk,
owner /tmp/ecce-*/** rwk,
network unix stream,

and reloads the profile in postinst (apparmor_parser -r /etc/apparmor.d/mosquitto when AppArmor is active). The shared system broker (ecce-broker.service, #191) needs checking against the same profile.

Workaround until then (not yet tested on 26.04; as root): put the lines above into /etc/apparmor.d/local/mosquitto and run apparmor_parser -r /etc/apparmor.d/mosquitto.

Test: the GUI-app suite on an ubuntu-26.04 runner.

Lenguaje dominante
C
Estrellas
10
Forks
8
Merge medio
2 h 39 min
PR fusionados (30 d)
9

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 FriendsofECCE/ECCE

Todos los issues de FriendsofECCE/ECCE

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.