Le 2021-08-26 21:57, Mick Sulley a écrit :
Hi Thierry,
mick@Mint20Desk:~$ scanimage --version
scanimage (sane-backends) 1.0.32.102-26749ce; backend version 1.0.32
SANE_DEBUG_ESCL=255 scanimage -d 'escl:http://localhost:80' 2>
debug-escl.log > test.pnm
log attached
The scanner is connected over wireless to the local network. I ran -
scanimage -d 'http://127.0.0.1:80' 2> escl-ip.log >tes.pnm
escl-ip.log is attached but tes.pnm is empty
regards
Hi Mick,
http://localhost:80 represents the server address on your computer, your
computer is not a scanner:
[
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.41 (Ubuntu) Server at localhost Port 80</address>
</body></html>
]
To start you need to know the ip of your scanner:
# avahi-browse -rvt _uscan._tcp # use http
or
# avahi-browse -rvt _uscans._tcp # use https
Then you can scan :
# scanimage -d 'escl:http(s)://<address>:<ip>' > test.pnm
you can fix your configuration in /etc/sane.d/escl.conf
Thierry
Mick
On 26/08/2021 20:21, Thierry Huchard wrote:
Le 2021-08-26 20:23, Thierry Huchard a écrit :
Le 2021-08-26 13:17, Mick Sulley a écrit :
Running Mint 20.2 I get an "Out of memory" error when I try to
scan.
My scanner is a Brother DCP-J7720W which is wireless connected,
If I run from a terminal I see a pop up saying
"Failed to open device 'escl:http://localhost:80': Out of memory"
This is what I see in the terminal -
mick@Mint20Desk:~$ xsane
file.xml:1: parser error : Space required after the Public
Identifier
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
file.xml:1: parser error : SystemLiteral " or ' expected
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
file.xml:1: parser error : SYSTEM or PUBLIC, the URI is missing
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
file.xml:9: parser error : Opening and ending tag mismatch: hr line
0 and body
</body></html>
^
file.xml:9: parser error : Opening and ending tag mismatch: body
line 0 and html
</body></html>
^
file.xml:10: parser error : EndTag: '</' not found
^
To fix another memory problem in September last year I did -
$ sudo add-apt-repository ppa:sane-project/sane-git
$ sudo apt-get update
$ sudo apt install libsane libsane-common sane-utils
Hi Mike,
Can you give me the version of sane
scanimage --version
And give me the log of this command:
SANE_DEBUG_ESCL=255 scanimage -d 'escl:http://localhost:80' 2>
debug-escl.log > test.pnm
Thierry
Hi Mick,
Can you tell me more, your URL is amazing.
If you used ipp-usb or ippusbxd your URL would be
http://localhost:60000
How is your device connected?
try :
scanimage -d 'http://127.0.0.1:80' 2> escl-ip.log >tes.pnm
Thierry
That is still in place.
Any ideas how to fix this?
Thanks
Mick