On 30/06/15 07:46, Koenraad Lelong wrote:> Op 29-06-15 om 23:47 schreef Jack Downes: >> > >> >> Interesting, I don't read that log as not finding the printer, but >> rather not finding the job. I think you're going to want to find out >> where samba thinks it's writing file and validate that anything actually >> goes in there. Turn up the samba logging, and if need be the cups >> logging as well. >> > Please keep the discussion on the list. > > AFAIK, the logging is on level 10. This is what I "added" to smb.conf > (see https://wiki.samba.org/index.php/Client_specific_Log) : > [global] > # no log file size limitation > max log size = 0 > # specific log file name > log file = /var/log/samba/log.%I > # set the debug level > log level = 10 > # add the pid to the log > debug pid = yes > # add the uid to the log > debug uid = yes > # add the debug class to the log > debug class = yes > # add microsecond resolution to timestamp > debug hires timestamp = yes > > The logging I posted was part of a bigger log-file. If I knew what to > look for in a file of 130MBytes it would be easier. The part I posted > was a chance-find. > > But I'll try again, hopefully creating a smaller log-file. > > Thanks anyway, > > KoenraadHi, did you read to the bottom of this wiki page : https://wiki.samba.org/index.php/Virtual_PDF_Printer#Setup By my reading, if you add what it tells you, you should find a new log file in '/var/log/samba/Pdfprint.log' Rowland
Op 30-06-15 om 08:58 schreef Rowland Penny:> > Hi, did you read to the bottom of this wiki page : > https://wiki.samba.org/index.php/Virtual_PDF_Printer#Setup > > By my reading, if you add what it tells you, you should find a new log > file in '/var/log/samba/Pdfprint.log' > > Rowland >Hi, Yes I did read that, but there is no output to that log-file, it's not created either. This is my printer section : [Pdfprinter] comment = Samba Virtual PDF Printer path = /var/spool/samba printable = Yes lpq command lprm command print command = /usr/bin/pdfprint.sh -s %f -d /home/%U -o %U -m 600 -l /var/log/samba/Pdfprint.log Slighty modified (other path, no uppercase), and all on one line. And pdfprint.sh is located in /usr/bin and executable by all. I tried the print command manually (as root) and that works. Koenraad.
On 30/06/15 10:10, Koenraad Lelong wrote:> Op 30-06-15 om 08:58 schreef Rowland Penny: > >> >> Hi, did you read to the bottom of this wiki page : >> https://wiki.samba.org/index.php/Virtual_PDF_Printer#Setup >> >> By my reading, if you add what it tells you, you should find a new log >> file in '/var/log/samba/Pdfprint.log' >> >> Rowland >> > Hi, > > Yes I did read that, but there is no output to that log-file, it's not > created either. > > This is my printer section : > [Pdfprinter] > comment = Samba Virtual PDF Printer > path = /var/spool/samba > printable = Yes > lpq command > lprm command > print command = /usr/bin/pdfprint.sh -s %f -d /home/%U -o %U > -m 600 -l /var/log/samba/Pdfprint.log > > Slighty modified (other path, no uppercase), and all on one line. And > pdfprint.sh is located in /usr/bin and executable by all. > > I tried the print command manually (as root) and that works. > > Koenraad.This sounds like a permission problem, if you examine the script, the logfile is created here: # Print messages to stdout / logfile output () { if [ -z "$LOG" ] ; then echo -e "$(date "+%b %d %H:%M:%S") $*" else echo -e "$(date "+%b %d %H:%M:%S") $*" | tee -a "$LOG" fi } I think if you look now, the logfile will exist. If the logfile exists, I would suggest temporarily making it world writeable (chmod +w /var/log/samba/Pdfprint.log