Closed mketizmen closed 2 years ago
Could it be that your avahi-daemon is not running? That is indicated by the "Bad State" result when trying to add the service.
I checked avahi-daemon and be sure about its running but can't add service
/usr/local/bin/airsaned --interface=* --base-port=8090 --access-log= --hotplug=true --mdns-announce=true --local-scanners-only=false --debug=true
reading device options from '/etc/airsane/options.conf'
enumerating devices...
sane_init(nullptr, nullptr)
sane_get_devices() ...
... sane_get_devices() -> SANE_Status Success
sane_exit()
found: epson2:libusb:002:012 (Epson CX7400)
sane_init(nullptr, nullptr)
sane_open(epson2:libusb:002:012) -> 0x7f7220012990
sane_close(0x7f7220012990)
sane_exit()
stable unique name: epson2:Epson CX7400:1
uuid: d956892e-4077-52a9-bc2d-fba035adaa30
airsaned: entrygroup.c:108: avahi_entry_group_new: Assertion `client' failed.
Aborted (core dumped)
service avahi-daemon status
Avahi mDNS/DNS-SD Daemon is running
I improved avahi error handling a little. Could you run the latest git version, and tell me which error is reported instead of "Assertion 'client' failed"?
Thanks.
Hello, I tried to use your program for making my scanner in my Mac but I cannot see my scanner in add printer scanner settings page. After a little research I saw my scanner won't add in avahi service. I tried to use web client and I found my scanner as CX7400 in web and can make scan file, preview file. I look tags in git hub for find latest working version but as I see you didn't use that option can you help me?
My system Debian buster and updated latest versions in docker.
2021-01-02 11:23:23,203 DEBG 'saned' stdout output: sane_init(nullptr, nullptr) 2021-01-02 11:23:23,204 DEBG 'saned' stdout output: sane_open(epson2:libusb:002:012) -> 2021-01-02 11:23:23,259 DEBG 'saned' stdout output: 0x7f11b8038e00 2021-01-02 11:23:23,273 DEBG 'saned' stdout output: sane_close(0x7f11b8038e00) 2021-01-02 11:23:23,277 DEBG 'saned' stdout output: sane_exit() 2021-01-02 11:23:23,277 DEBG 'saned' stdout output: stable unique name: epson2:Epson CX7400:1 uuid: d956892e-4077-52a9-bc2d-fba035adaa30 2021-01-02 11:23:23,763 DEBG 'saned' stdout output: getaddrinfo() error: Name or service not known 2021-01-02 11:23:23,764 DEBG 'saned' stdout output: airsaned: entrygroup.c:108: avahi_entry_group_new: Assertion 'client' failed. 2021-01-02 11:23:23,765 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 139696539178048 for <Subprocess at 139696539578024 with name saned in state RUNNING> (stdout)> 2021-01-02 11:23:23,765 INFO exited: saned (terminated by SIGABRT; not expected) 2021-01-02 11:23:23,765 DEBG received SIGCLD indicating a child quit 2021-01-02 11:23:24,768 INFO spawned: 'saned' with pid 21 2021-01-02 11:23:24,809 DEBG 'saned' stdout output: reading device options from '/etc/airsane/options.conf' enumerating devices... 2021-01-02 11:23:24,810 DEBG 'saned' stdout output: sane_init(nullptr, nullptr) sane_get_devices() ... 2021-01-02 11:23:25,811 INFO success: saned entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-01-02 11:23:34,400 DEBG 'saned' stdout output: ... sane_get_devices() -> SANE_Status Success sane_exit() 2021-01-02 11:23:34,404 DEBG 'saned' stdout output: found: epson2:libusb:002:012 (Epson CX7400) 2021-01-02 11:23:34,404 DEBG 'saned' stdout output: sane_init(nullptr, nullptr) 2021-01-02 11:23:34,405 DEBG 'saned' stdout output: sane_open(epson2:libusb:002:012) -> 2021-01-02 11:23:34,425 DEBG 'saned' stdout output: 0x7f96240144d0 2021-01-02 11:23:34,426 DEBG 'saned' stdout output: sane_close(0x7f96240144d0) 2021-01-02 11:23:34,431 DEBG 'saned' stdout output: sane_exit() 2021-01-02 11:23:34,432 DEBG 'saned' stdout output: stable unique name: epson2:Epson CX7400:1 uuid: d956892e-4077-52a9-bc2d-fba035adaa30 2021-01-02 11:23:34,434 DEBG 'saned' stdout output: getaddrinfo() error: Name or service not known 2021-01-02 11:23:34,434 DEBG 'saned' stdout output: Avahi error when adding service: Bad state (-2) 2021-01-02 11:23:34,434 DEBG 'saned' stdout output: listening on 127.0.0.1:8090 listening on 192.168.1.106:8090