---
name: "SD_BUS_ERROR_ADDRESS_IN_USE"
section: "3"
platform: "linux"
package: "libsystemd-dev"
version: "257.13-1~deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sd-bus-errors"
---

# SD\_BUS\_ERROR\_ADDRESS\_IN\_USE(3)

Standard D-Bus error names

Part of [sd-bus-errors(3)](/sd-bus-errors/3.md).

## NAME

sd-bus-errors, SD\_BUS\_ERROR\_FAILED, SD\_BUS\_ERROR\_NO\_MEMORY, SD\_BUS\_ERROR\_SERVICE\_UNKNOWN, SD\_BUS\_ERROR\_NAME\_HAS\_NO\_OWNER, SD\_BUS\_ERROR\_NO\_REPLY, SD\_BUS\_ERROR\_IO\_ERROR, SD\_BUS\_ERROR\_BAD\_ADDRESS, SD\_BUS\_ERROR\_NOT\_SUPPORTED, SD\_BUS\_ERROR\_LIMITS\_EXCEEDED, SD\_BUS\_ERROR\_ACCESS\_DENIED, SD\_BUS\_ERROR\_AUTH\_FAILED, SD\_BUS\_ERROR\_NO\_SERVER, SD\_BUS\_ERROR\_TIMEOUT, SD\_BUS\_ERROR\_NO\_NETWORK, SD\_BUS\_ERROR\_ADDRESS\_IN\_USE, SD\_BUS\_ERROR\_DISCONNECTED, SD\_BUS\_ERROR\_INVALID\_ARGS, SD\_BUS\_ERROR\_FILE\_NOT\_FOUND, SD\_BUS\_ERROR\_FILE\_EXISTS, SD\_BUS\_ERROR\_UNKNOWN\_METHOD, SD\_BUS\_ERROR\_UNKNOWN\_OBJECT, SD\_BUS\_ERROR\_UNKNOWN\_INTERFACE, SD\_BUS\_ERROR\_UNKNOWN\_PROPERTY, SD\_BUS\_ERROR\_PROPERTY\_READ\_ONLY, SD\_BUS\_ERROR\_UNIX\_PROCESS\_ID\_UNKNOWN, SD\_BUS\_ERROR\_INVALID\_SIGNATURE, SD\_BUS\_ERROR\_INCONSISTENT\_MESSAGE, SD\_BUS\_ERROR\_TIMED\_OUT, SD\_BUS\_ERROR\_MATCH\_RULE\_NOT\_FOUND, SD\_BUS\_ERROR\_MATCH\_RULE\_INVALID, SD\_BUS\_ERROR\_INTERACTIVE\_AUTHORIZATION\_REQUIRED, SD\_BUS\_ERROR\_INVALID\_FILE\_CONTENT, SD\_BUS\_ERROR\_SELINUX\_SECURITY\_CONTEXT\_UNKNOWN, SD\_BUS\_ERROR\_OBJECT\_PATH\_IN\_USE - Standard D-Bus error names

## SYNOPSIS

```
#include <systemd/sd-bus.h>
```

```
#define SD_BUS_ERROR_FAILED                  "org.freedesktop.DBus.Error.Failed"
#define SD_BUS_ERROR_NO_MEMORY               "org.freedesktop.DBus.Error.NoMemory"
#define SD_BUS_ERROR_SERVICE_UNKNOWN         "org.freedesktop.DBus.Error.ServiceUnknown"
#define SD_BUS_ERROR_NAME_HAS_NO_OWNER       "org.freedesktop.DBus.Error.NameHasNoOwner"
#define SD_BUS_ERROR_NO_REPLY                "org.freedesktop.DBus.Error.NoReply"
#define SD_BUS_ERROR_IO_ERROR                "org.freedesktop.DBus.Error.IOError"
#define SD_BUS_ERROR_BAD_ADDRESS             "org.freedesktop.DBus.Error.BadAddress"
#define SD_BUS_ERROR_NOT_SUPPORTED           "org.freedesktop.DBus.Error.NotSupported"
#define SD_BUS_ERROR_LIMITS_EXCEEDED         "org.freedesktop.DBus.Error.LimitsExceeded"
#define SD_BUS_ERROR_ACCESS_DENIED           "org.freedesktop.DBus.Error.AccessDenied"
#define SD_BUS_ERROR_AUTH_FAILED             "org.freedesktop.DBus.Error.AuthFailed"
#define SD_BUS_ERROR_NO_SERVER               "org.freedesktop.DBus.Error.NoServer"
#define SD_BUS_ERROR_TIMEOUT                 "org.freedesktop.DBus.Error.Timeout"
#define SD_BUS_ERROR_NO_NETWORK              "org.freedesktop.DBus.Error.NoNetwork"
#define SD_BUS_ERROR_ADDRESS_IN_USE          "org.freedesktop.DBus.Error.AddressInUse"
#define SD_BUS_ERROR_DISCONNECTED            "org.freedesktop.DBus.Error.Disconnected"
#define SD_BUS_ERROR_INVALID_ARGS            "org.freedesktop.DBus.Error.InvalidArgs"
#define SD_BUS_ERROR_FILE_NOT_FOUND          "org.freedesktop.DBus.Error.FileNotFound"
#define SD_BUS_ERROR_FILE_EXISTS             "org.freedesktop.DBus.Error.FileExists"
#define SD_BUS_ERROR_UNKNOWN_METHOD          "org.freedesktop.DBus.Error.UnknownMethod"
#define SD_BUS_ERROR_UNKNOWN_OBJECT          "org.freedesktop.DBus.Error.UnknownObject"
#define SD_BUS_ERROR_UNKNOWN_INTERFACE       "org.freedesktop.DBus.Error.UnknownInterface"
#define SD_BUS_ERROR_UNKNOWN_PROPERTY        "org.freedesktop.DBus.Error.UnknownProperty"
#define SD_BUS_ERROR_PROPERTY_READ_ONLY      "org.freedesktop.DBus.Error.PropertyReadOnly"
#define SD_BUS_ERROR_UNIX_PROCESS_ID_UNKNOWN "org.freedesktop.DBus.Error.UnixProcessIdUnknown"
#define SD_BUS_ERROR_INVALID_SIGNATURE       "org.freedesktop.DBus.Error.InvalidSignature"
#define SD_BUS_ERROR_INCONSISTENT_MESSAGE    "org.freedesktop.DBus.Error.InconsistentMessage"
#define SD_BUS_ERROR_TIMED_OUT               "org.freedesktop.DBus.Error.TimedOut"
#define SD_BUS_ERROR_MATCH_RULE_NOT_FOUND    "org.freedesktop.DBus.Error.MatchRuleNotFound"
#define SD_BUS_ERROR_MATCH_RULE_INVALID      "org.freedesktop.DBus.Error.MatchRuleInvalid"
#define SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED \
                                             "org.freedesktop.DBus.Error.InteractiveAuthorizationRequired"
#define SD_BUS_ERROR_INVALID_FILE_CONTENT    "org.freedesktop.DBus.Error.InvalidFileContent"
#define SD_BUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN \
                                             "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"
#define SD_BUS_ERROR_OBJECT_PATH_IN_USE      "org.freedesktop.DBus.Error.ObjectPathInUse"
```

## DESCRIPTION

In addition to the error names user programs define, D-Bus knows a number of generic, standardized error names that are listed below.

In addition to this list, in sd-bus, the special error namespace "System.Error." is used to map arbitrary Linux system errors (as defined by [**errno**(3)](/errno/3.md)) to D-Bus errors and back. For example, the error **EUCLEAN** is mapped to "System.Error.EUCLEAN" and back.

**SD\_BUS\_ERROR\_FAILED**

A generic error indication. See the error message for further details. This error name should be avoided, in favor of a more expressive error name.

Added in version 223.

**SD\_BUS\_ERROR\_NO\_MEMORY**

A memory allocation failed, and the requested operation could not be completed.

Added in version 223.

**SD\_BUS\_ERROR\_SERVICE\_UNKNOWN**

The contacted bus service is unknown and cannot be activated.

Added in version 223.

**SD\_BUS\_ERROR\_NAME\_HAS\_NO\_OWNER**

The specified bus service name currently has no owner.

Added in version 223.

**SD\_BUS\_ERROR\_NO\_REPLY**

A message did not receive a reply. This error is usually generated after a timeout.

Added in version 223.

**SD\_BUS\_ERROR\_IO\_ERROR**

Generic input/output error, for example when accessing a socket or other I/O context.

Added in version 223.

**SD\_BUS\_ERROR\_BAD\_ADDRESS**

The specified D-Bus bus address string is malformed.

Added in version 223.

**SD\_BUS\_ERROR\_NOT\_SUPPORTED**

The requested operation is not supported on the local system.

Added in version 223.

**SD\_BUS\_ERROR\_LIMITS\_EXCEEDED**

Some limited resource has been exhausted.

Added in version 223.

**SD\_BUS\_ERROR\_ACCESS\_DENIED**

Access to a resource has been denied due to security restrictions.

Added in version 223.

**SD\_BUS\_ERROR\_AUTH\_FAILED**

Authentication did not complete successfully.

Added in version 223.

**SD\_BUS\_ERROR\_NO\_SERVER**

Unable to connect to the specified server.

Added in version 223.

**SD\_BUS\_ERROR\_TIMEOUT**

An operation timed out. Note that method calls which timeout generate a **SD\_BUS\_ERROR\_NO\_REPLY**.

Added in version 223.

**SD\_BUS\_ERROR\_NO\_NETWORK**

No network available to execute requested network operation on.

Added in version 223.

**SD\_BUS\_ERROR\_ADDRESS\_IN\_USE**

The specified network address is already being listened on.

Added in version 223.

**SD\_BUS\_ERROR\_DISCONNECTED**

The connection has been terminated.

Added in version 223.

**SD\_BUS\_ERROR\_INVALID\_ARGS**

One or more invalid arguments have been passed.

Added in version 223.

**SD\_BUS\_ERROR\_FILE\_NOT\_FOUND**

The requested file could not be found.

Added in version 223.

**SD\_BUS\_ERROR\_FILE\_EXISTS**

The requested file already exists.

Added in version 223.

**SD\_BUS\_ERROR\_UNKNOWN\_METHOD**

The requested method does not exist in the selected interface.

Added in version 223.

**SD\_BUS\_ERROR\_UNKNOWN\_OBJECT**

The requested object does not exist in the selected service.

Added in version 223.

**SD\_BUS\_ERROR\_UNKNOWN\_INTERFACE**

The requested interface does not exist on the selected object.

Added in version 223.

**SD\_BUS\_ERROR\_UNKNOWN\_PROPERTY**

The requested property does not exist in the selected interface.

Added in version 223.

**SD\_BUS\_ERROR\_PROPERTY\_READ\_ONLY**

A write operation was requested on a read-only property.

Added in version 223.

**SD\_BUS\_ERROR\_UNIX\_PROCESS\_ID\_UNKNOWN**

The requested PID is not known.

Added in version 223.

**SD\_BUS\_ERROR\_INVALID\_SIGNATURE**

The specified message signature is not valid.

Added in version 223.

**SD\_BUS\_ERROR\_INCONSISTENT\_MESSAGE**

The passed message does not validate correctly.

Added in version 223.

**SD\_BUS\_ERROR\_MATCH\_RULE\_NOT\_FOUND**

The specified match rule does not exist.

Added in version 223.

**SD\_BUS\_ERROR\_MATCH\_RULE\_INVALID**

The specified match rule is invalid.

Added in version 223.

**SD\_BUS\_ERROR\_INTERACTIVE\_AUTHORIZATION\_REQUIRED**

Access to the requested operation is not permitted. However, it might be available after interactive authentication. This is usually returned by method calls supporting a framework for additional interactive authorization, when interactive authorization was not enabled with the [**sd\_bus\_message\_set\_allow\_interactive\_authorization**(3)](/sd_bus_message_set_allow_interactive_authorization/3.md) for the method call message.

Added in version 223.

## NOTES

Functions described here are available as a shared library, which can be compiled against and linked to with the **libsystemd** [**pkg-config**(1)](/pkg-config/1.md) file.

The code described here uses [**getenv**(3)](/getenv/3.md), which is declared to be not multi-thread-safe. This means that the code calling the functions described here must not call [**setenv**(3)](/setenv/3.md) from a parallel thread. It is recommended to only do calls to **setenv()** from an early phase of the program when no other threads have been started.

## SEE ALSO

[**systemd**(1)](/systemd/1.md), [**libsystemd**(3)](/libsystemd/3.md), [**sd-bus**(3)](/sd-bus/3.md), [**sd\_bus\_error**(3)](/sd_bus_error/3.md), [**sd\_bus\_message\_set\_allow\_interactive\_authorization**(3)](/sd_bus_message_set_allow_interactive_authorization/3.md), [**errno**(3)](/errno/3.md), [**strerror\_r**(3)](/strerror_r/3.md)
