Solved

Problems with Samba and printing

Posted on 2004-08-27
3
210 Views
Last Modified: 2010-03-18
Hi everyone.

I've been having a problem for a while, and I turn to you guys.
Here is a brief description of the environment:

Multiple Slackware 9 Workstations, used as Citrix clients (that's working wonders), also used in conjonction with Samba 2.2.0a to share a label printer on those same workstations.
Problem follows: Every once in a while, a print job is sent (always from the same software, it's called Magic (www.magicsoftware.com)) and that print jobs jams Samba.
Now, printer just stops working, and rebooting won't do any good.  I can still see the printer share if I browse the host, but it won't let me create a local port using it's share name.

I'm not the one who set that up, I don't know much about Samba, I'm actually not even sure if the problem is Samba related or if it's directly the linux printing system.

Here is my smb.conf :
---------------------------------------------------------
# Global parameters
[global]
        workgroup = OUR_DOMAIN_NAME
        netbios name = PH003L
        security = SHARE
        encrypt passwords = Yes
        update encrypted = Yes
        hosts allow = 192.168.10.

[lp]
        path = /tmp
        guest ok = Yes
        printable = Yes
----------------------------------------------------------

As you can see, the file is pretty light.  My feeling is that there is a file locked somewhere (smbstatus says no), and the ONLY way I found out of this has been to re-ghost the machine...  Upgrading the samba version isn't really an option that I am considering, but I would do it if someone tells me that this is a known problem and it won't happen again if I upgrade.

As of now, it's the only problem that will send me to work in the middle of the night so I can swap computers, I REALLY wish I could fix it from home...

Thanks!
0
Comment
Question by:dunnoh
3 Comments
 

Accepted Solution

by:
aurus earned 125 total points
ID: 11916217
Hi


It seems that you have the minimum configuration for your samab to work, the least you can try is check what files are opened for your application

lsof
but this could be complicated, since its difficult to identify the file that's causing the problem
try diffenrents command
lsof | grep /dev/lp
lsof | grep locks

and the more general

lsof | grep smb

since we dont have more info, you should "test and error" to identify the file, the next thing to do is kill the process that's locking the file
kill -9 $pid_of_the_file_causing_the_trouble

I hope you can solve this :)

Aurus tunes out.
0
 
LVL 6

Expert Comment

by:DominicCronin
ID: 12266191
Hi folks,

Just browsing for samba stuff and came across this question. I'm fairly new to Samba, but in a previous life I used to know a fair bit about Magic, so I thought I'd pitch in just for old times sake!

Aurus has given some very good hints. If that doesn't get you there, maybe you could give some more details of your set-up. Is Magic running on a different Server - if so what OS are you using? What is the printing configuration there?
0
 
LVL 1

Author Comment

by:dunnoh
ID: 12287241
I think I found where the lock files are, I'm waiting for the next time it happens to let you guys know...
0

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now