Feedback

If you are experiencing problems, please post here!

ADF support

Hi, Installed the script on ununtu 9.04 works perfectly

Is there any support for scanning with ADF? (I use a HP Officejet 6500w with automatic document feeder)

thanks for writing this great script!

Not that I'd be able to

Not that I'd be able to implement - :-(
I don't have a scanner with ADF, so I have no idea how to program for it.

HP LaserJet 3055 problem

Hello!
I've got HP LaserJet 3055 all-in-one connected via local network (ethernet).
Configure page of scanner server finds my scanner as
Hewlett-Packard HP_LaserJet_3055 all-in-one
but when I go to the page Scan image I have a message like
There aren't any scanners setup yet! Go to the config page to setup scanners

OS: Ubuntu 9.04

Any ideas?
Thanks.

only permanent fix that I found

This is what fixed mine:

> Ubuntu 9.041.
> Open "/lib/udev/rules.d/50-udev-default.rules" file.
> 2. Edit "0664" to "0666" in "libusb device nodes" section.
> ...
> 3. Restart the OS

Helpful Websites

I've found a few other websites that address certain problems with this script - Many thanks to the people behind them!

http://wiki.amahi.org/index.php/ScannerServer

HP Photosmart C4483 - Scanner not found

Hello,

I am able to scan using both XSane and scanimage from the cli but when I search for scanners it says no scanner found.

I tried running some of the commands above and this is what I get:


$ scanimage -L
device `hpaio:/usb/Photosmart_C4400_series?serial=MY85MKM0XF0557' is a Hewlett-Packard Photosmart_C4400_series all-in-one

$ scanimage --resolution 200 -x 100 -y 100 --mode color --format=ppm > /dev/null
// image scans //

$ sudo -u www-data scanimage --resolution 200 -x 100 -y 100 --mode color --format=ppm > /dev/null
scanimage: no SANE devices found

looks like my www-data user doesn't have access to the scanner or something.

any suggestions?

- ryan

Try to add www-data user to

Try to add www-data user to scanner group.

Could not scan when mode color selected

First off Scanner Server is excellent!

I have a brother MFC-620CN. It is connected via network and I have installed the brother linux drivers for the scanner on my Ubuntu 9.04 system. I am able to scan using all possible settings except for when color mode is selected. If color mode is selected I receive the could not scan error make sure it is plugged in and turned on. Just wondering if anyone might have any tips for me to get color mode working as it is supported by the scanner. Thanks.

use "24bit Color" I've

use "24bit Color"
I've changed $mode to "24bit Color" in index.cgi and it works fine :)

I'm afraid I don't - I only

I'm afraid I don't - I only can test options on my current scanner, which is very old - SANE may not support color scanning on your scanner

Problem when scanner has slash in name

Hi Phrank.
First, thanks for this, it's a great idea!

I installed it onto an existing apache2 setup on Ubuntu Server 8.04, had to do few of the tweaks already mentioned to get it working (the chmod on /dev/bus/usb/xxx/yyy) but that was no trouble. Problem was I kept getting an empty scan screen - just the header and footer with no form or preview window etc.

Spent a good hour looking at the code, inserting trace echos etc to see what was going wrong. Fiiiinally tracked it down to the line:
cat inc/scan.inc | sed 's/$$SCANNERS/'"$SCANNER_OPTION"'/g' # | sed 's/$$SET_RESTORE/'"$SET_RESTORE"'/'

Turns out my scanner name (in SCANNER_OPTION) had a slash (/) in it which was confusing sed. I removed the slashes from the scanner name in scanners.conf and now it works!

Just got it working then and thought I'd post to let you know. I'll tinker with the code, should be easy to search&replace/escape weird characters in the scanner name.

Thanks again!

solved my problem

thanks, that was the problem I was facing...

and thanks phrank.

Modes & Devices

First of all Scanner Server is awsome! But I have a lot of problemes with current implementation.

1. Device name could contain space characters. For example 'smfp:SAMSUNG SCX-4300 Series on USB:0'. I had to remove '-d $DEVICE' from scanimage command.
2. scanimage modes could be differ from Color, Gray, Line Art. It depends on the device and backend support. For example:

Color - 16 Million Colors
Grayscale - 256 Levels
Black and White - Halftone
Black and White - Line Art

How do I add these modes into cgi scripts correctly?

You should be able to add the

You should be able to add the scanimage option to the drop down in the HTML of the page

scanner

I have a epson perfection1670 and want to install on ubuntu9.04 and when i connect the scanner through usb the light on the panel goes off and the light inside stays on.
can anyone help

Set up scanner first

Before following the great install instructions at this site I found I needed to set up and check the scanner was working. I guess this is pretty obvious to most of you.
This is a good place to start:
http://www3.sane-project.org/docs.html

adduser www-data scanner

Hi,
I'm having problems way before anyone else. When I run the above command as root I get:
adduser: The group scanner does not exist

I'm trying to install on ubuntu lamp server 9.04
The scanner is found by scanimage -L
snapscan : /dev/sg2

When and how is the scanner group created?

Thanks

Running into Problems?

Check the thread on Ubuntu Forums - You may find some helpful troubleshooting tips:
http://ubuntuforums.org/showthread.php?t=679028

Trying to run on ubuntu 9.04

I get an error message that index.cgi is not a cgi script. The script permissions are set to executable.

Can anyone help?

Lighttpd or Cherokee?

Hi.

Is there any way to get this working under lighttpd or cherokee?

I placed the files in the cgi-bin directory, and navigated to the relevant directory on my browser. However, with lighttpd and cherokee, I get the same exact same resulting webpage:

http://imgur.com/C37.jpg

and the source of the page is:

http://pastebin.com/f30b1950e . Note how the .inc files and the pictures aren't showing. :(

I'm using these light web servers because the machine I'm planning to use it on is quite slow and old, and I'll also have it doing other things.

Any help would be greatly appreciated! :)

no scanner found

I did everything as explained, but I get the message 'no scanner found', and searching for scanners does not help either.
The scanner is an epson gt-15000 and the os is ubuntu 8.10
What is wrong?
thanks,
geert

This fixed it for me:

Having problems with could not scan error on Ubuntu 8.04 or later?

In /etc/udev/rules.d/40-basic-permissions.rules:

change:
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0664"

to:
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
SUBSYSTEM=="usb_device", MODE="0666"

MP500 on Ubuntu 8.04

I had 1.1.1 working on 7.10 till earlier this evening when I went ahead and upgraded to 8.04 server.

Both the old version and 1.1.9 fail to work after this upgrade.
I can issue scanimage without super-user privileges, but "www-data" cannot, yet it is too a member of the group "scanner". Incidently my user is also a member of "saned" - perhaps that's why I can scan? perhaps my failed setup of saned has somehow taken ownership of the scanner? But again, this was not an issue before the upgrade to 8.04

Solutions

Since I do not have these types of scanners lying around, I am unable to test them. If anyone gets them working, please post back!

Epson CX3650

Hi,
first of all thank you for this software, very useful in a small office.
Now my problem, i have an MFP Epson CX3650 and it works perfectly with Xsane but is not recognized by LSS.

With scanimage -L i obtain:
device 'epson:libusb:001:002' is a Epson CX3600 flatbed scanner

I'm using Ubuntu 8.04.1
Any suggestion?

Canon Pixma MP520 on Ubuntu 8.04

Hey,

I've got the server setup on Ubuntu 8.04 with my Pixma MP520. Xsane recognizes the scanner and I can scan from it just fine. The scanner server sees the scanner when I search for it and recognizes it correctly (name, backend etc in the scanner config file are correct). However all I can get when I try and scan is the "Please make sure scanner is plugged in and turned on" message. www-data is a part of the scanner group. Any thoughts on how to debug why it's not working?

Thanks for sharing your work on this. I'm excited about getting the scanner working on my network here.

Chris

Brother DCP 115C on ubuntu-server (2.6.24-16-server)

I get the same Message:
"Make sure the scanner is turned on and plugged into the scanner server computer"

I followed the Install-Instructions point to point,
I tried the http://scannerserver.online02.com/node/4#comment-11
and anything else. I still get this Error.

Scanimage -L tells:
device `brother2:bus3;dev1' is a Brother DCP-115C USB scanner
and scanning from console works.

I have brscan2 installed and my "uname -a" is:
Linux router 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux

My apache2 directives:
DocumentRoot /var/www

Options ExecCGI

Options ExecCGI
AllowOverride All

My apache2.conf
http://rafb.net/p/aZxqo460.html

I really want to get it working! Please help!

Fixed the problem!

I had the same problem.

I've followed the instuctions, but when I go to http://localhost/scan, it doesn't found any scanner and gave the same error message.

After reading the topic at Ubuntu forums, I finally could solve the problem.

First, I tried:
$ scanimage -L

It recognized my scanner.

Then:
$ scanimage --resolution 200 -x 100 -y 100 --mode color --format=ppm > /dev/null

and it worked, then I tried:
$ sudo -u www-data scanimage --resolution 200 -x 100 -y 100 --mode color --format=ppm > /dev/null

and it show a message of permission error.

So I typed (thanks to the post #34 on Ubuntu Forums):
$ sudo chmod 777 /dev/bus/usb/002/003

Where the "002" and "003" are the values I got on the "scanimage -L" command.

And now, everything is working and I'm using the beta version.

Thank you very much! :D

Try editing the index.cgi

Try editing the index.cgi where the scanimage command is given and comment out all command line switches. This will tell you if permissions are setup right. Then, add the options back one at a time. Some scanners don't support certain options, and so the script fails

Thanks

Woking!!! :-D

Re: Make sure scanner is plugged in...

Hi,
Not sure if this is related to your situation or not, but I just experienced this "Make sure your scanner is plugged in..." message, and everything was working just fine yesterday. The one change I attempted to make was to have my "scans" directory be a soft link to a directory in my /home/user/Scans directory. This would allow me to have a central location for backup purposes. Using a link like this seems to cause this message.

If I revert back to using the scans directory in /var/www/scan/scans, then everything works again.

Looking at the script, it looks like the scanning actually worked okay, but it couldn't create the preview and scan images in this linked directory for some reason. Probably due to permissions for www-data or something. Not sure how to resolve this...

Hope this helps a little bit...

Re: Make sure scanner is plugged in...

I was right. It was due to permissions on my /home/user/Scans directory. If I performed the following commands, then the scans will go to my home/user/Scans directory. FYI, "user" is the name of your userid.

chgrp scanner /home/user/Scans
chmod g+w /home/user/Scans

Then, you need to setup a soft link from the "scans" directory to this new /home/user/Scans directory.

cd /var/www/scan
mv scans scans.orig (for safe keeping)
ln -s /home/user/Scans scans

That should do it. Now, when you scan, this scanner script will put your scans into your /home/user/Scans directory.

same problem

hello,
I have the same problem, someone has solved?

Could Not Scan Error

Using Scanner Server version 1.1.9 and a Canon MP470, I always get a scanner error that says "Make sure the scanner is turned on and plugged into the scanner server computer" when I try to scan. If I run scanimage > /dev/null as the superuser, the scanner scans and everything sounds good, however if I try to use my normal account I get the error "scanimage: open of device pixma:04A91723 failed: Access to resource has been denied". I don't know if this is related, but thought I should probably give all possible information about my problem.

PS - Thanks for your great work!

I had to add a udev rule to

I had to add a udev rule to let the apache user (or whoever) access the scanner when it's plugged in. Here's a step-by-step:

http://wiki.amahi.org/index.php/ScannerServer

Has anyone had a problem with OCR? When I select txt output, Firefox tells me the download is a ".bin" file.

This fixed mine

This fixed my permission problem on the www-data user:

$ sudo chmod 777 /dev/bus/usb/002/003

Where the "002" and "003" are the values I got with "scanimage -L" command.

I have this problem too.

I have this problem too. Scanner HP ScanJet 3800, ubuntu 8.04. But regular programs work