0

I obviously had two problems when I opened the previous or original question SANE - Cannot access network scanner - symptom [but not solution]: saned.service fails on start (code=exited, status=1/FAILURE) it was

  • the network scanner Brother DCP-J315W could not be reached and
  • the saned.service could not be started

Although it is a network scanner after installing the sudo apt-get install libusb-0.1-4 the elementary features worked.

Unfortunately the saned.servicestill does not.

friedrich@friedrich-xyz-15-cs3xxx:~$ brscan-skey -l

DCPJ315W : brother3:net1;dev0 : 192.168.178.23 Active friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ scanimage -L device brother3:net1;dev0' is a Brother DCP-J315W DCPJ315W devicenet:localhost:brother3:net1;dev0' is a Brother DCP-J315W DCPJ315W friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ sudo systemctl status saned.service Warning: The unit file, source configuration file or drop-ins of saned.service changed on disk. Run 'systemctl daemon-reload' to reload units. × saned.service - LSB: SANE network scanner server Loaded: loaded (/etc/init.d/saned; generated) Active: failed (Result: exit-code) since Tue 2025-02-04 15:38:36 CET; 1h 18min ago Docs: man:systemd-sysv-generator(8) CPU: 26ms

Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx saned[2471]: * Starting SANE network scanner server saned Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx saned[2616]: saned (AF-indep+IPv6) from sane-backends 1.2.1-debian starting up Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx saned[2616]: do_bindings: [1] bind failed: Address already in use Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx saned[2616]: do_bindings: [0] bind failed: Address already in use Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx saned[2616]: do_bindings: couldn't bind an address. Exiting. Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx saned[2616]: FATAL ERROR; bailing out, waiting for children... Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx saned[2616]: bail_out: all children exited Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: saned.service: Control process exited, code=exited, status=1/FAILURE Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: saned.service: Failed with result 'exit-code'. Feb 04 15:38:36 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: Failed to start saned.service - LSB: SANE network scanner server. friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$

Although a number of frontends now can use the brother3 device, the sane-find-scanner does not:

friedrich@friedrich-cxz-Laptop-15-cs3xxx:~$ sudo sane-find-scanner

sane-find-scanner will now attempt to detect your scanner. If the

result is different from what you expected, first make sure your

scanner is powered up and properly connected to your computer.

No SCSI scanners found. If you expected something different, make sure that

you have loaded a kernel SCSI driver for your SCSI adapter.

No USB scanners found. If you expected something different, make sure that

you have loaded a kernel driver for your USB host controller and have setup

the USB system correctly. See man sane-usb for details.

Not checking for parallel port scanners.

Most Scanners connected to the parallel port or other proprietary ports

can't be detected by this program.

friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$

What is the root cause of the saned.service not able to start? Does it use any code from the brother3 scanner installation that can make it break?

In case someone stumbles over Warning: The unit file, source configuration file or drop-ins of saned.service changed on disk. Run 'systemctl daemon-reload' to reload units.

... the application of daemon-reload after some changes in saned.conf does not help ...

friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ sudo systemctl restart saned.service
Warning: The unit file, source configuration file or drop-ins of saned.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for saned.service failed because the control process exited with error code.
See "systemctl status saned.service" and "journalctl -xeu saned.service" for details.
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ sudo systemctl daemon-reload
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ sudo systemctl restart saned.service
Job for saned.service failed because the control process exited with error code.
See "systemctl status saned.service" and "journalctl -xeu saned.service" for details.
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ sudo systemctl status saned.service
× saned.service - LSB: SANE network scanner server
     Loaded: loaded (/etc/init.d/saned; generated)
     Active: failed (Result: exit-code) since Tue 2025-02-04 16:57:50 CET; 14s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 22417 ExecStart=/etc/init.d/saned start (code=exited, status=1/FAILURE)
        CPU: 12ms

Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx saned[22417]: * Starting SANE network scanner server saned Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx saned[22424]: saned (AF-indep+IPv6) from sane-backends 1.2.1-debian starting up Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx saned[22424]: do_bindings: [1] bind failed: Address already in use Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx saned[22424]: do_bindings: [0] bind failed: Address already in use Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx saned[22424]: do_bindings: couldn't bind an address. Exiting. Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx saned[22424]: FATAL ERROR; bailing out, waiting for children... Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx saned[22424]: bail_out: all children exited Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: saned.service: Control process exited, code=exited, status=1/FAILURE Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: saned.service: Failed with result 'exit-code'. Feb 04 16:57:50 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: Failed to start saned.service - LSB: SANE network scanner server. friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$

Update #1

according to @steeldriver and @waitinator's comments

friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ sudo lsof -i
COMMAND     PID            USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd       1            root  143u  IPv6  25071      0t0  TCP *:sane-port (LISTEN)
avahi-dae  2408           avahi   12u  IPv4  26100      0t0  UDP *:mdns 
avahi-dae  2408           avahi   13u  IPv6  26101      0t0  UDP *:mdns 
avahi-dae  2408           avahi   14u  IPv4  26102      0t0  UDP *:39159 
avahi-dae  2408           avahi   15u  IPv6  26103      0t0  UDP *:35019 
mta-sts-d  2426        _mta-sts   30u  IPv4  22129      0t0  TCP localhost:8461 (LISTEN)
NetworkMa  2461            root   26u  IPv4  27512      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx.fritz.box:bootpc->fritz.box:bootps 
NetworkMa  2461            root   30u  IPv6  28115      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx:dhcpv6-client 
NetworkMa  2461            root   36u  IPv4  31976      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx.fritz.box:bootpc->fritz.box:bootps 
cupsd      2919            root    7u  IPv6  30781      0t0  TCP ip6-localhost:ipp (LISTEN)
cupsd      2919            root    8u  IPv4  30782      0t0  TCP localhost:ipp (LISTEN)
dnsmasq    4582          nobody    4u  IPv4  33427      0t0  UDP *:bootps 
dnsmasq    4582          nobody    6u  IPv4  33430      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx:domain 
dnsmasq    4582          nobody    7u  IPv4  33431      0t0  TCP friedrich-xyz-Laptop-15-cs3xxx:domain (LISTEN)
lxd        5150            root   23u  IPv6  37952      0t0  TCP *:8444 (LISTEN)
java       6531            root   70u  IPv6  39863      0t0  UDP *:1900 
java       6531            root   81u  IPv6  42730      0t0  UDP *:1902 
java       6531            root  120u  IPv6  43245      0t0  TCP *:8443 (LISTEN)
java       6531            root  123u  IPv6  38638      0t0  TCP localhost:8101 (LISTEN)
java       6531            root  130u  IPv6  42685      0t0  TCP localhost:42459 (LISTEN)
java       6531            root  163u  IPv6  43246      0t0  TCP *:http-alt (LISTEN)
java       6531            root  173u  IPv6  37707      0t0  UDP *:mdns 
java       6531            root  174u  IPv6  37711      0t0  UDP *:mdns 
java       6531            root  175u  IPv6  37715      0t0  UDP *:mdns 
java       6531            root  176u  IPv6  37719      0t0  UDP *:mdns 
java       6531            root  177u  IPv6  37723      0t0  UDP *:mdns 
java       6531            root  178u  IPv6  37727      0t0  UDP *:mdns 
java       6531            root  181u  IPv6  44269      0t0  TCP *:5007 (LISTEN)
java       6531            root  195u  IPv6  39864      0t0  UDP *:1900 
java       6531            root  196u  IPv6  39865      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx.fritz.box:45527 
java       6531            root  197u  IPv6  39866      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx.fritz.box:45577 
dnsmasq    6993             lxd    4u  IPv4  43146      0t0  UDP *:bootps 
dnsmasq    6993             lxd    6u  IPv6  43148      0t0  UDP *:dhcpv6-server 
dnsmasq    6993             lxd    8u  IPv4  43151      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx:domain 
dnsmasq    6993             lxd    9u  IPv4  43152      0t0  TCP friedrich-xyz-Laptop-15-cs3xxx:domain (LISTEN)
dnsmasq    6993             lxd   10u  IPv6  43153      0t0  UDP friedrich-xyz-Laptop-15-cs3xxx:domain 
dnsmasq    6993             lxd   11u  IPv6  43154      0t0  TCP friedrich-xyz-Laptop-15-cs3xxx:domain (LISTEN)
systemd-r 47596 systemd-resolve   14u  IPv4 272422      0t0  UDP _localdnsstub:domain 
systemd-r 47596 systemd-resolve   15u  IPv4 272423      0t0  TCP _localdnsstub:domain (LISTEN)
systemd-r 47596 systemd-resolve   16u  IPv4 272424      0t0  UDP _localdnsproxy:domain 
systemd-r 47596 systemd-resolve   17u  IPv4 272425      0t0  TCP _localdnsproxy:domain (LISTEN)
firefox   73463       friedrich  131u  IPv4 426173      0t0  TCP friedrich-xyz-Laptop-15-cs3xxx.fritz.box:43328->104.18.35.23:https (ESTABLISHED)
firefox   73463       friedrich  180u  IPv4 407790      0t0  TCP friedrich-xyz-Laptop-15-cs3xxx.fritz.box:41126->93.243.107.34.bc.googleusercontent.com:https (ESTABLISHED)
firefox   73463       friedrich  312u  IPv4 424832      0t0  TCP friedrich-xyz-Laptop-15-cs3xxx.fritz.box:34802->104.18.35.23:https (ESTABLISHED)
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ sudo systemctl status saned.service
× saned.service - LSB: SANE network scanner server
     Loaded: loaded (/etc/init.d/saned; generated)
     Active: failed (Result: exit-code) since Tue 2025-02-04 17:05:11 CET; 6h ago
       Docs: man:systemd-sysv-generator(8)
        CPU: 14ms

Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx saned[23351]: * Starting SANE network scanner server saned Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx saned[23358]: saned (AF-indep+IPv6) from sane-backends 1.2.1-debian starting up Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx saned[23358]: do_bindings: [1] bind failed: Address already in use Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx saned[23358]: do_bindings: [0] bind failed: Address already in use Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx saned[23358]: do_bindings: couldn't bind an address. Exiting. Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx saned[23358]: FATAL ERROR; bailing out, waiting for children... Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx saned[23358]: bail_out: all children exited Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: saned.service: Control process exited, code=exited, status=1/FAILURE Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: saned.service: Failed with result 'exit-code'. Feb 04 17:05:11 friedrich-xyz-Laptop-15-cs3xxx systemd[1]: Failed to start saned.service - LSB: SANE network scanner server. friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ brscan-skey -l

DCPJ315W : brother3:net1;dev0 : 192.168.178.23 Active friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ scanimage -L device brother3:net1;dev0' is a Brother DCP-J315W DCPJ315W devicenet:localhost:brother3:net1;dev0' is a Brother DCP-J315W DCPJ315W friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$

Update #2

the active packages that could provoke a "collission":

friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ dpkg -l | grep brscan
ii  brscan-skey                                   0.3.2-0                                   amd64        Brother Linux scanner S-KEY tool
ii  brscan3                                       0.2.13-1                                  amd64        Brother Scanner Driver
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ dpkg -l | grep brother
ii  brother-udev-rule-type1                       1.0.2                                     all          Brother udev rule type 1
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ dpkg -l | grep sane
ii  libcommon-sense-perl:amd64                    3.75-3build3                              amd64        module that implements some sane defaults for Perl programs
ii  libimage-sane-perl                            5-2build3                                 amd64        Perl extension for the SANE (Scanner Access Now Easy) Project
ii  libsane                                       1.0.28                                    all          dummy package
ii  libsane-common                                1.2.1-7build4                             all          API library for scanners -- documentation and support files
ii  libsane-dev:amd64                             1.2.1-7build4                             amd64        API development library for scanners [development files]
ii  libsane-hpaio:amd64                           3.23.12+dfsg0-0ubuntu5                    amd64        HP SANE backend for multi-function peripherals
ii  libsane1:amd64                                1.2.1-7build4                             amd64        API library for scanners
ii  sane                                          1.0.14-18                                 amd64        scanner graphical frontends
ii  sane-airscan                                  0.99.29-0ubuntu4                          amd64        SANE backend for AirScan (eSCL) and WSD document scanner
ii  sane-utils                                    1.2.1-7build4                             amd64        API library for scanners -- utilities
ii  xsane                                         0.999-12ubuntu4                           amd64        featureful graphical frontend for SANE (Scanner Access Now Easy)
ii  xsane-common                                  0.999-12ubuntu4                           all          xsane architecture independent files
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$

Update #3

the apt list ...

friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$ apt list *sane* --installed
Auflistung… Fertig
libimage-sane-perl/noble,now 5-2build3 amd64  [Installiert,automatisch]
libsane-common/noble,noble,now 1.2.1-7build4 all  [Installiert,automatisch]
libsane-dev/noble,now 1.2.1-7build4 amd64  [installiert]
libsane-hpaio/noble,now 3.23.12+dfsg0-0ubuntu5 amd64  [Installiert,automatisch]
libsane1/noble,now 1.2.1-7build4 amd64  [Installiert,automatisch]
libsane/now 1.0.28 all  [Installiert,lokal]
sane-airscan/noble,now 0.99.29-0ubuntu4 amd64  [Installiert,automatisch]
sane-utils/noble,now 1.2.1-7build4 amd64  [installiert]
sane/noble,now 1.0.14-18 amd64  [installiert]
xsane-common/noble,noble,now 0.999-12ubuntu4 all  [Installiert,automatisch]
xsane/noble,now 0.999-12ubuntu4 amd64  [installiert]
friedrich@friedrich-xyz-Laptop-15-cs3xxx:~$

FrSch
  • 21

0 Answers0