Open Oliv4945 opened 1 year ago
Same issue here. I worked around it by editing /lib/systemd/system/scanbm.socket
and changing MaxConnections=1
to MaxConnections=2
. You also need to run systemctl daemon-reload
after editing.
What tipped me off is that I can see this in /var/log/syslog
:
Jan 6 14:23:56 raspberrypi systemd[1]: scanbm.socket: Too many incoming connections (1), dropping connection.
I think that scanservjs tries to run two scanimage
commands back-to-back and the second one occurs before the first one closed its socket, but I'm just speculating here. I've tried to pinpoint this in the code, but haven't figured it out yet. I imagine adding a small delay after each scanimage
command would fix it.
Hope this helps someone out there :)
Describe the bug Hello, I am trying to use ScanservJS in a Docker container, alongside with scanbd (scanner button polling process) and sane-epjitsu backend.
Scanservjs is able to detect the scanner but not connect to it, the log is:
But what is surprising me is that if I manually trigger
/usr/bin/scanimage -d net:localhost:epjitsu:libusb:001:005 -A
inside the container it works perfectly fine:To Reproduce Steps to reproduce the behavior:
scanimage -d net:localhost:epjitsu:libusb:001:005 -A
within the containerExpected behavior
scanimage -A
should work when triggered by the Node.js serverClient:
Server:
Thanks for your help