Journal polling not working on Ubuntu 24.04
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- linux, python, ubuntu
- Área
- operating-systems
Línea de trabajo
Start with the reported Python snippet and the documentation's “Example: polling for journal events,” then reproduce the behavior on Ubuntu 24.04 with python3-systemd 235 and compare it with Ubuntu 22.04/version 234. Trace the Reader seek, wait, and iteration behavior; done means matching new kernel journal entries are yielded after APPEND.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This code was working on Ubuntu 22.04, with python3-systemd version 234:
j = systemd.journal.Reader()
j.this_boot()
j.log_level(systemd.journal.LOG_INFO)
j.add_match(SYSLOG_IDENTIFIER="kernel")
# Seek to the end of the journal to only capture new entries
j.seek_tail()
while True:
if j.wait(10):
for entry in j:
# do things
But on Ubuntu 24.04 and python3-systemd version 235, it is not working anymore. Especially, the "for" loop does not encounter any item. If we try to run next(j) it immediately raises StopIteration, even if j.wait(timeout) returned APPEND.
I also tried the "Example: polling for journal events" code from the documentation (https://www.freedesktop.org/software/systemd/python-systemd/journal.html#example-polling-for-journal-events) and it is not working.
- Lenguaje dominante
- C
- Estrellas
- 526
- Forks
- 78
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de systemd/python-systemd
-
v236 needs uploading to pypiAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 48/100
systemd/python-systemd#179 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
systemd/python-systemd#177 · 1 comentario · 2 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
systemd/python-systemd#169 · 1 comentario ·
-
Python packaging tools can't resolve the package metadata without `libsystemd`Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
systemd/python-systemd#167 · 19 comentarios · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
systemd/python-systemd#152 · 1 comentario · 14 reacciones ·
Todos los issues de systemd/python-systemd
Issues similares
-
[compiler-rt][ASan][Darwin] dispatch_apply_f interceptor leaks its context (24 bytes per call)Abiertocompiler-rt:asan
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
llvm/llvm-project#242921 ·
Los mantenedores suelen responder en 1 día
-
Missing gcc __builtin_stdc_bit_width/floor/ceil signature makes intellisense wrongly report error 70Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
microsoft/vscode-cpptools#14874 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
FujiNetWIFI/fujinet-firmware#2401 ·
Los mantenedores suelen responder en 1 día
-
[simdutf] update to 9.4.0Abiertocategory:port-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ChupathingyCE/chupathingyce#1366 ·
Los mantenedores suelen responder en 1 día