Skip to content

airsaned report no scanners available, though scanimage -L reports one  #97

@matkor

Description

@matkor

I am trying to make AirSane build (https://aur.archlinux.org/packages/airsane-git) in archlinux to work.
I am starting airsaned via airsaned.service with:

DynamicUser=true
Group=scanner
SupplementaryGroups=lp
SupplementaryGroups=saned

It runs, but www frontend reports "AirSane Server on / No scanners available" :/
Switching to same user/groups I am able to detect scanner though:

[root@contr ~]# runuser -u airsaned -g scanner -G lp -G saned -- bash
[airsaned@contr root]$ scanimage -L
device `hpaio:/usb/Deskjet_F4200_series?serial=CN94O5828R05BR' is a Hewlett-Packard Deskjet_F4200_series all-in-one

Logs during start:

Jan 15 20:05:05 contr systemd[1]: Started AirSane Imaging Service.
Jan 15 20:05:05 contr airsaned[2104]: Failed to create avahi client: An unexpected D-Bus error occurred (-22)
Jan 15 20:05:05 contr airsaned[2104]: scan/sane/io.c 53: dBus Connection Error (Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network co>
Jan 15 20:05:05 contr airsaned[2104]: scan/sane/io.c 53: dBus Connection Error (Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network co>
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=1
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=0
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 535: claimed 7/1/2 interface
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 780: read actual device_id successfully fd=1 len=268
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 561: released 7/1/2 interface
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=1
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=0
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 535: claimed 7/1/2 interface
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 780: read actual device_id successfully fd=1 len=268
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 561: released 7/1/2 interface
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 960: new HP-SCAN channel=4 clientCnt=1 channelCnt=1
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 427: Found interface conf=0, iface=2, altset=0, index=7
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 389: Active kernel driver on interface=2 ret=0
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 535: claimed ff/ff/ff interface
Jan 15 20:05:05 contr airsaned[2104]: io/hpmud/musb.c 960: new HP-MESSAGE channel=1 clientCnt=1 channelCnt=2
Jan 15 20:05:06 contr airsaned[2104]: io/hpmud/musb.c 975: removed HP-MESSAGE channel=1 clientCnt=0 channelCnt=1
Jan 15 20:05:06 contr airsaned[2104]: io/hpmud/musb.c 561: released ff/ff/ff interface
Jan 15 20:05:07 contr airsaned[2104]: io/hpmud/musb.c 975: removed HP-SCAN channel=4 clientCnt=0 channelCnt=0
Jan 15 20:05:07 contr airsaned[2104]: No avahi client instance available, not registering service
Jan 15 20:05:07 contr airsaned[2104]: Avahi error when adding service: Operation failed (-1)

Does it mean that scanner is not detectable to airsaned?
Due to message bus security policy can't be made available?
Or any other issue?
TIA for any hints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions