Open ThomasCr opened 1 year ago
I have this exact problem. Installing libsane-hpaio
and refreshing the device list resolves the issue. Please fix.
I have this exact problem.
@ThomasCr @ameer1234567890 @itechrene the PR I opened (#726) installs the driver and binary plugin automatically for you when using docker installation. Please check out the docker image I published and let me know if it works for you.
Describe the bug I use the docker image from docker-hub at sbs20/scanservjs:latest I have set up my scanner with
But it seams, that hpaio is not build in the image. Because a
scanimage --device-name="hpaio:/net/photosmart_prem_c410_series?ip=192.168.99.134&queue=false" -A
inside the container errors out:scanimage: open of device hpaio:/net/photosmart_prem_c410_series?ip=192.168.99.134&queue=false failed: Invalid argument
But after I installed the package
libsane-hpaio
is works. But not at the web gui... there I am getting a dbus error...A
echo hpaio >> /etc/sane.d/dll.conf
like shown in your Dockerfile is not need, because it is already there after installing the package:The dbus error I get is:
{"message":"Command failed: /usr/bin/scanimage -L\nCreated directory: /var/lib/snmp/cert_indexes\ndbus[1896]: arguments to dbus_connection_send() were incorrect, assertion \"connection != NULL\" failed in file ../../../dbus/dbus-connection.c line 3317.\nThis is normally a bug in some application using the D-Bus library.\n\n D-Bus not built with -rdynamic so unable to print a backtrace\nAborted (core dumped)\n","code":134}
Question on that point - is
scanimage -L
really needed, when I have set my DEVICE environment variable? It will newer find a scanner automatically, because of the routed docker network.EDIT:
Ok, I could fix the DBUS error by mount the dbus run dir to the host
But the device is still not presented.. It seams, that DEVICES is not handet by current entrypoint.sh
At least I tested to create a config.local.js with the line (like mentioned in https://sbs20.github.io/scanservjs/docs/03-sane.html):
but then I get this error:
EDIT2:
okay, got it working with
but after container restart the addition installed package is lost. Thats not a final solutions.....
Expected behavior make it possible to use hplip drivers with the docker-hub build.