Skip to content

busctl hangs and times out when trying to get a nonexistent property from a nonexistent unit #6059

@Kalsofar

Description

@Kalsofar

Submission type

  • Bug report

systemd version the issue has been seen with

v233, v231, v219

NOTE: Do not submit bug reports about anything but the two most recently released systemd versions upstream!

Used distribution

Fedora 26, Fedora 25, CentOS 7.3

In case of bug report: Expected behaviour you didn't see

An error message similar to the following:

[testuser@fedora-test ~]$ busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1/unit/nonexistent org.freedesktop.systemd1.Service nonexistent
Unit name nonexistent is not valid.

In case of bug report: Unexpected behaviour you saw

busctl hangs and times out:

[testuser@fedora-test ~]$ busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1/unit/nonexistent org.freedesktop.systemd1.Service nonexistent
Connection timed out

localectl and systemctl stop working:

[testuser@fedora-test ~]$ localectl
Could not get properties: Connection timed out
[testuser@fedora-test ~]$ systemctl
Failed to list units: Connection timed out

In case of bug report: Steps to reproduce the problem

Try getting a nonexistent property from a nonexistent unit:

busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1/unit/nonexistent org.freedesktop.systemd1.Service nonexistent

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingpid1

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions