- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- samba cups printing difficulty
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
samba cups printing difficulty
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-26-2003 10:10 PM
08-26-2003 10:10 PM
samba cups printing difficulty
samba cups printing difficulty
I am new to linux. I had cups configured and working fine until i started
running samba. After that i am not able to get any printouts. The
http://localhost:631 is working and this interface shows the job as
pending for ever. The printer state seem to be idle and accepting jobs.
But the printouts never came out. I checked the error log and tried to
make sense from it. I couldn't figure out anything even after changing the
loglevel to debug.
This is tail part of my error log
[26/Aug/2003:21:08:59 -0700] [Job 13] PageWidth = 612.0, PageLength =
792.0
D [26/Aug/2003:21:08:59 -0700] [Job 13] 0 %%Trailer
D [26/Aug/2003:21:08:59 -0700] [Job 13] Saw Trailer!
D [26/Aug/2003:21:08:59 -0700] [Job 13] Saw EOF!
D [26/Aug/2003:21:08:59 -0700] UpdateJob: job 13, file 0 is complete.
D [26/Aug/2003:21:08:59 -0700] StopJob: id = 13, force = 0
D [26/Aug/2003:21:08:59 -0700] StopJob: printer state is 3
Later i found that the printcap generated by cupsd.conf seems incomplete.
It has only the printer names. It does not have any other details. Could
this be the problem ?
Please help me out. I have been stuck in this for nearly a week now !!!
Velu.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 04:22 PM
08-27-2003 04:22 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
After configuring samba, could you no longer send jobs from the command line using the 'lp' commands?
What are the printer settings you've used in your 'smb.conf'?
Now, as for the printcap comment, no. They are fine. As Cups doesn't *USE* a printcap, the incomplete values are valid. It's only there to provide a list of printers to older software which relies upon the /etc/printcap for the list of valid printers.
Depending on your configuration of Samba depends on which subsystem it will try to use to get the printer list, and hwo to send jobs to a printer.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 06:03 PM
08-27-2003 06:03 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
First of all, Thanks a lot for your reply.
>Ok a few dumb questions.
>After configuring samba, could you no longer >send jobs from the command line using the 'lp' >commands?
I can send jobs from command line. But the problem is, the jobs sent are pending for ever. It never seem to reach the printer. I can see the files spooled in /var/spool/samba. But none are printed.
>What are the printer settings you've used in >your 'smb.conf'?
[printers]
path = /var/spool/samba
writable = no
guest ok = yes
printable = Yes
browseable = No
printer admin = root, velu
[L2]
path = /var/spool/samba
printable = Yes
printer name = L2
oplocks = No
[Herberger]
path = /var/spool/samba
printable = Yes
printer name = Herberger
oplocks = No
These are my printer settings in smb.conf
Please let me know. Thanks
Velu.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 06:32 PM
08-27-2003 06:32 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
This means that the printing sub-systems are working fine.
What is not working is the Samba configuration.
Lets have a look at that then.
> [printers]
> path = /var/spool/samba
> writable = no
> guest ok = yes
> printable = Yes
> browseable = No
> printer admin = root, velu
> [L2]
> path = /var/spool/samba
> printable = Yes
> printer name = L2
> oplocks = No
> [Herberger]
> path = /var/spool/samba
> printable = Yes
> printer name = Herberger
> oplocks = No
What you've not said are the GLOBAL printing settings, for instance the one called:
printing =
From memory, it defaults to 'LPRNG' style of printing. Try forcing this to 'CUPS' (as listed in 'man smb.conf'), restarting samba, and see if that fixes it.
If not, try forcing the 'lpq command' to be the same sort of command as you use on the command line.
Some more things to look at for you ;)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 06:35 PM
08-27-2003 06:35 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
[global]
workgroup = SIMPHOENIX
encrypt passwords = Yes
log level = 1
max log size = 1000
wins support = Yes
hosts allow = localhost.localdomain
hosts deny = ALL
printing = cups
printcap name = cups
This is what i have in the global section.
It didn't work for this configuration.
Thanks once again
Velu.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 06:51 PM
08-27-2003 06:51 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
print command = lp -c -d%p -oraw %s && rm %s
This is what I use on a SCO OpenServer system, so you'll want to alter it slightly to suit Linux.
You'll not need the '-c' (as both Linux printing subsystems copy the job by default).
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 06:52 PM
08-27-2003 06:52 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 09:55 PM
08-27-2003 09:55 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
I tried giving the print command. It is still not working. I tried looking in the error log of cups. I have given a snap shot of the error log where there might be a problem. Please have a look at the place where it says "No such file or directory" "/usr/lib/cups/backend///129.219.73.160"
This is what it is looking for. Is this the problem. I am not sure what it is looking for. Please let me know.
Thanks a lot for your immediate reply.
Velu.
print_job: requesting-user-name = 'root'
I [27/Aug/2003:22:44:17 -0700] Job 14 queued on 'L2' by 'root'.
D [27/Aug/2003:22:44:17 -0700] Job 14 hold_until = 0
D [27/Aug/2003:22:44:17 -0700] StartJob(14, 0x8092e98)
D [27/Aug/2003:22:44:17 -0700] StartJob() id = 14, file = 0/1
D [27/Aug/2003:22:44:17 -0700] job-sheets=none,none
D [27/Aug/2003:22:44:17 -0700] banner_page = 0
D [27/Aug/2003:22:44:17 -0700] StartJob: argv = "L2","14","root","column","1","","/var/spool/samba/d00014-001"
D [27/Aug/2003:22:44:17 -0700] StartJob: envp = "PATH=/usr/lib/cups/filter:/bin:/usr/bin","SOFTWARE=CUPS/1.1","USER=root","CHARSET=iso-8859-1","LANG=en_US","","PPD=/etc/cups/ppd/L2.ppd","CUPS_SERVERROOT=/etc/cups","RIP_MAX_CACHE=8m","TMPDIR=/var/spool/cups/tmp","CONTENT_TYPE=application/vnd.cups-raw","DEVICE_URI=//129.219.73.160","PRINTER=L2","CUPS_DATADIR=/usr/share/cups","CUPS_FONTPATH=/usr/share/cups/fonts","","",""
D [27/Aug/2003:22:44:17 -0700] StartJob: statusfds = 7, 8
D [27/Aug/2003:22:44:17 -0700] StartJob: filterfds[1] = 9, -1
D [27/Aug/2003:22:44:17 -0700] StartJob: backend = "/usr/lib/cups/backend///129.219.73.160"
D [27/Aug/2003:22:44:17 -0700] StartJob: filterfds[0] = -1, 10
D [27/Aug/2003:22:44:17 -0700] start_process("/usr/lib/cups/backend///129.219.73.160", 0xbfff06f0, 0xbffefba0, 9, 10, 8)
E [27/Aug/2003:22:44:17 -0700] PID 20820 stopped with status 22!
I [27/Aug/2003:22:44:17 -0700] Started backend /usr/lib/cups/backend///129.219.73.160 (PID -20820) for job 14.
D [27/Aug/2003:22:44:17 -0700] ProcessIPPRequest: 6 status_code=0
D [27/Aug/2003:22:44:17 -0700] [Job 14] /usr/lib/cups/backend///129.219.73.160: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 10:16 PM
08-27-2003 10:16 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
I would assume that sending a job from the command line would fail as well if this was a core directory.
All samba is doing is launching a print-job command-line when one comes in, the same as if you typed 'lp -d
Have you tried doing the standard 'lp' comamnd and looking at the logs to see if a normal job works/fails/spits out errors?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-27-2003 10:47 PM
08-27-2003 10:47 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
[simphoenix@localhost simphoenix]$ cd /usr/lib/cups/backend/
[simphoenix@localhost backend]$ ls
canon http lpd parallel scsi smb usb
epson ipp ncp ptal serial socket
[simphoenix@localhost backend]$
This is what it contains.
I would assume that sending a job from the command line would fail as well if this was a core directory.
So far all the print job i gave are from command line using lp command.
All samba is doing is launching a print-job command-line when one comes in, the same as if you typed 'lp -d
Have you tried doing the standard 'lp' comamnd and looking at the logs to see if a normal job works/fails/spits out errors?
I am sorry. I dont understand what you mean by standard lp command. Please be more specific.
Thanks a lot
Velu.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-28-2003 03:18 PM
08-28-2003 03:18 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
>So far all the print job i gave are from command line using lp command.
What lp command are you using?
>>All samba is doing is launching a print-job command-line when one comes in, the same as if you typed 'lp -d
>>Have you tried doing the standard 'lp' comamnd and looking at the logs to see if a normal job works/fails/spits out errors?
>I am sorry. I dont understand what you mean by standard lp command. Please be more specific.
The command you used above.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-28-2003 05:33 PM
08-28-2003 05:33 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
At first i was using....
lp -d %p -o filename
When you said about oraw i used...
lp -d %p -oraw filename.
If you look at the error log i pasted in my previous post, you will see that the process has been stopped with status 22. What does this status 22 mean.
Is there any way to find about this status 22? This might probably be a reason.
Thanks
Velu.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-28-2003 07:04 PM
08-28-2003 07:04 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
print command = lp -d %p -oraw %s
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-28-2003 09:55 PM
08-28-2003 09:55 PM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
You might get more information if you change the debug level for cupsd. On Slackware it is /etc/cups/cupsd.conf but your mileage may vary. You can edit the "LogLevel" from the default of logging just requests and state changes to logging absolutely everything.
This may get more information that would be useful
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-12-2003 10:59 AM
09-12-2003 10:59 AM
Re: samba cups printing difficulty
Re: samba cups printing difficulty
I hope this helps, but instead of having the "/etc/printcap" destination in the smb.conf, change it simply to "cups". Also,
go into the /etc/cups directory and edit the mime.* files.
Uncomment the commented lines at the end of each of these files which look like this:
application/octet-stream
This will substitute more consistently for the
print-command line in your smb.conf file.
Try that.
Oh, and you say you can't even execute the following command:
cat /etc/hosts | lpr ???
If this doesn't help, try the samba documentation...its long but its really good.
http://www.samba.org
~Ross
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP