From: Thomas Pundt (pundtt@math.uni-muenster.de)
Date: 08/10/93


From: pundtt@math.uni-muenster.de (Thomas Pundt)
Subject: Re: lpr: connect: No such file
Date: 10 Aug 1993 17:59:52 GMT

In article 594@sun1.clark.net, ganderson@clark.net (Gary Anderson) writes:
>Matthew Aaron Wormley (mwormley@galaxy.csc.calpoly.edu) wrote:
>: >: In article <23oe9rINNclh@tom.rz.uni-passau.de>, claussen@db.fmi.uni-passau.de (Jens Claussen) writes:
>: >: >
>: >: > lpr: connect: No such file or directory
>: >: > jobs queued, but cannot start daemon.
>: >: >
>: >: > the lpd daemon is not runnig, though started in rc.inet2.
>: >: >
>: >: > The question ist contained in the lastest FAQ, but without an answer.
>: >
>
>: Check the permissions on your lp? files and then be sure that the
>: spool directory listed in your /etc/printcap file exists.
>
>: worm
>
[...]
>I'm also having trouble with lpr/lpd. I used to get the
>'lpr: connect: no such file or directory' error. I created the
>var/spool/lpd directory.
>Now I get the error 'lpr: connect: invalid argument'. Like the rest
>of you, my lpd daemon starts up in rc.inet2, and is shown by 'ps -aux', but I
>still
>get 'jobs queued, but unable to start daemon', even though the system says
>'lpd' is sitting there. I've confirmed that the lock file is being created
>in var/spool/lpd. Two other things I've noticed, that I've not seen mentioned
>by any of the other folks having lpr/lpd problems:
>1.) lpr work fine (i.e. printing commences automatically) IF I'm logged
> on as a regular user (NOT as root).
>2.) If I'm logged on as root, and try to use lpr, of course I get the
> above errors, and no print. BUT, if I go into lpc, and do a
> restart lp1, printing starts.
>
>For the most part, my lp* files (i.e.-lpd lpr, lpc, etc.) are all set
>to permissions as shown in the 'how-to-print' faq from, I think, G. Taylor,
>at god.hounix.com. Where my setup diverges, though, is owner/group.
>The FAQ says that the NET-2 stuff sets them to lp /lp. that's not quite
>right. It sets them (for the most part) to root/lp.
>
>Here's the rest of my configuration:
>'486 clone
>SLS 1.02
>p.l. 10 kernel
>gcc 2.4.3
>libs 4.4.1
>NET-2 stuff installed (slip working, albeit with a small problem, to be
> the topic of another posting)
>
>Hope this is enough detail for someone to figure out what might be
>going wrong. It sure looks like alot of us are having the same problem !
>
>

I think it is a permission problem. I found out that using the utility
"strace" is a great help to find out what really going wrong. Perhaps
you should try it.

"strace" can be found on "sunsite" in "delvelopment/strace". I fixed my
problems using this utility!

Hope it helps a bit :-)
Ciao