[moneydance] Can't print checks in 2007 beta 1
Doug B
md at hatterhill.com
Sun Dec 31 16:26:02 EST 2006
On Sunday 31 December 2006 01:45, Fuzzy Fox wrote:
> I recently did some research on this problem (though I don't have the
>
> problem myself), and ran into the following description:
> | The issue is that the default server address in CUPS 1.2 is a
> | domain socket, which Java does not support. They will be
> | implementing a fix for that (fallback to localhost IP socket), but
> | in the meantime you can create/update an /etc/cups/client.conf file
> | containing:
> |
> | ServerName localhost
> |
> | to force your Java applications to use IP instead of domain
> | sockets.
>
> A quick way to test this without modifying your system:
> | Another possible workaround which can be limited only for Java
> | applications is to set/export the environment variable
> | "CUPS_SERVER=localhost" before a Java application is started.
>
> At a command line prompt, try "env CUPS_SERVER=localhost moneydance"
> to start with this setting in effect, and if it fixes the problem,
> you can either modify moneydance's startup script to set this
> variable, or you can modify your client.conf file to force all
> printing to be done via IP.
I rarely print anything, but the last time I tried, I had no problem.
In reading this thread, I decided to try... no printing.
Using:
Gentoo linux
Moneydance 2006r4 (526)
Java that came with moneydance (1.5.0_01)
cups 1.2.6 (at least that's what Gentoo calls it)
Moneydance isn't in my path. Here is the command line that worked for
me:
CUPS_SERVER='localhost' ~/moneydance/moneydance
Adding ServerName localhost to cups.conf did not help. (I just reread
what you wrote and see I should have put it in clients.conf. I didn't
try that.)
Looking in the cups error_log (which logs more than just errors) I
found:
I [31/Dec/2006:14:48:37 -0600] Listening to /var/run/cups/cups.sock
(Domain)
In cups.conf I found:
Listen /var/run/cups/cups.sock
I commented that out:
# Listen /var/run/cups/cups.sock
Restarted cups and all is well with printing again.
Seems like in this version of cups, the default is an IP socket and to
use the domain socket you must be say so in the cups.conf file. That
would explain why some could have a problem and some not while on the
surface they appear to use the same moneydance - java - cups
combination. Each distro can decide what to put in its cups.cong file.
As far as how to tell if your cups uses ip or domain... I guess check
the error log for a line like the one above with (domain) and check the
cups.conf for a line that opens that socket.
Hope some of that helps.
Doug
More information about the moneydance-info
mailing list