You are not logged in.

#1 2020-12-22 12:44:11

johnnyn
Member
Registered: 2015-10-26
Posts: 26

[Solved] dbus-org.freedesktop.Avahi.service missing from distribution?

Solution:

# systemctl enable avahi-daemon
# systemctl start avahi-daemon

Thank you very much V1del smile

- - -

Greetings,

is file dbus-org.freedesktop.Avahi.service missing from Arch?
Should I report a bug somewhere?

Starting xsane triggers an authentication box, asking for the root password.
While scanning still works after cancelling the box, it is confusing for my nontechnical users that it pops up.

The text in the authentication box is this (translated from Danish):

Authentication is required to manage system services or other units.

A program is attempting to execute an action which require privileges. Approval is required to execute the action.

Root password: [___________]

Action: Manage system services or other units
Id: org.freedesktop.systemd1.manage-units
polkit.subject-pid: 795
polkit.caller-pid:  795

[OK] [Cancel]

journalctl reveals this:
(The first three lines seem particularly interesting to me.)

dec 21 17:06:46 mycomputer systemd[497]: Started Scan - Program for scanning of images.
dec 21 17:06:46 mycomputer dbus-daemon[341]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service' requested by ':1.47' (uid=1000 pid=849 comm="/usr/bin/xsane ")
dec 21 17:06:46 mycomputer dbus-daemon[341]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service not found.
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: Listener adapter polkit_qt_listener_initiate_authentication
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: GSimpleAsyncResult: 0x559e814e9de0
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: polkit_qt_listener_initiate_authentication callback for  0x559e8149fc00
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: Initiating authentication
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: Message of action:  "Authentication is required to manage system services or other units."
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: Action description has been found
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: WinId of the dialog is  33554438 33554438
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: WinId of the shown dialog is  33554438 33554438
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: Trying again
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: REQUEST
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: Request:  "Password: "
dec 21 17:06:46 mycomputer polkit-kde-authentication-agent-1[602]: "Password: "

# find / -name "*org.freedesktop.Avahi*", finds this:

/usr/share/dbus-1/system-services/org.freedesktop.Avahi.service
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.HostNameResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.Server.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.EntryGroup.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.DomainBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.RecordBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceTypeBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.AddressResolver.xml

/usr/share/dbus-1/system-services/org.freedesktop.Avahi.service contains this:

[D-BUS Service]
Name=org.freedesktop.Avahi
SystemdService=dbus-org.freedesktop.Avahi.service
Exec=/bin/false

# find / dbus-org.freedesktop.Avahi.service, finds nothing.
# pacman -Fx dbus-org\.freedesktop\.Avahi\.service, finds nothing.

Best regards
Johnny smile

Last edited by johnnyn (2020-12-22 13:45:19)

Offline

#2 2020-12-22 13:18:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,640

Re: [Solved] dbus-org.freedesktop.Avahi.service missing from distribution?

systemctl cat avahi-daemon.service 
# /usr/lib/systemd/system/avahi-daemon.service
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

[Unit]
Description=Avahi mDNS/DNS-SD Stack
Requires=avahi-daemon.socket

[Service]
Type=dbus
BusName=org.freedesktop.Avahi
ExecStart=/usr/bin/avahi-daemon -s
ExecReload=/usr/bin/avahi-daemon -r
NotifyAccess=main

[Install]
WantedBy=multi-user.target
Also=avahi-daemon.socket
Alias=dbus-org.freedesktop.Avahi.service

sounds expected if you don't have the daemon service enabled.

Offline

#3 2020-12-22 13:42:25

johnnyn
Member
Registered: 2015-10-26
Posts: 26

Re: [Solved] dbus-org.freedesktop.Avahi.service missing from distribution?

Thank you V1del, for your help smile
You are right smile

# systemctl enable avahi-daemon
# systemctl start avahi-daemon

That solved the problem smile

Thank again, V1del smile

Best regards
Johnny smile

Offline

Board footer

Powered by FluxBB