Journal polling not working on Ubuntu 24.04
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- linux, python, ubuntu
- Domaine
- operating-systems
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- C
- Étoiles
- 522
- Forks
- 79
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de systemd/python-systemd
-
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
systemd/python-systemd#177 · 1 commentaire · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 42/100
systemd/python-systemd#169 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
systemd/python-systemd#167 · 19 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
systemd/python-systemd#152 · 1 commentaire · 13 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
systemd/python-systemd#143 · 3 commentaires ·
Toutes les issues de systemd/python-systemd
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
bradcypert/plum#53 ·
-
Component: GLib
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Status: Opened
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
nextbsd/nextbsd-userland#285 ·