using Ubuntu operating system with openvpms
I have recently switched from Windows to Ubuntu operating systems on the advice and help of my son ( a computer programmer who lives in Norway). He has set it up and helping me remotely with problems which have arisen with the change over. The most persistent problem has been with printing reports out of openvpms. The main issue has been when asking to any report including labels (on Dymo printer) it comes up with an error message -
Failed to generate report: java.awt.print.PrinterIOException
Note- I can print through the preview window but it is very clumsy.
Another problem has been with Invoice .jrxml when asked to print comes up error that it cannot find invoice.jrxml, I have tried to edit and play the invoice.jrxml in Jasper Design program. I think some previous editing by me has changed the template to make it unreadable ? I am using the invoicea5.jrxml instead.
I am still running with version 1.5.1, thinking about new version but wanting to get the Ubuntu working properly first.
So three issues
Firstly, how do I fix the error with printing - failed to generate report.
Secondly, can I get new template for invoice.jrxml and how do I do this.
Thirdly , should I install new version of openvpms before or after fixing these problems.
Harry
Re: using Ubuntu operating system with openvpms
1. The first error is most commonly associated with having no template printer defined for the purpose. Go into administration - templates - then search for 'drug' then click the Drug Label template, make sure the TYPE is set too Patient Medication Template and that at the bottom a printer is selected. if nothing is in the list at the bottom select "ADD" and select your practice location and then select the DYMO.
Press OK and try printing.
2. You should still have the original ZIP file you downloaded for that version if not
http://repository.openvpms.org/releases/org/openvpms/openvpms-release/1....
is the link download and extract it somewhere then look in reports folder and copy the original invoice.jrxml file and start tinkering again.
3. Your choice...probably fix em first check and then update.
Re: using Ubuntu operating system with openvpms
Thanks Ben I had a look but it is already set up correctly for type and printer for drug label and for other commonly used templates - no change as from when being used with Windows operating system and it worked OK then . It seemed to work OK with Ubuntu for few days then stopped and started showing error messages. Now I print through the preview window , but it means setting up printer preferences each time when switching from drug label to A4 printer. Very clumsy and short term .
This problem is for all templates and appears to be associated with either linux not picking up the pathway to the templates or making the connection to the printers when coming out of openvpms. Can print OK when outside openvpms.
My son is working on the problem from the linux side but doing it by remote control and in wrong time zone so it is a bit difficult, any suggestions may help speed the process, and at least eliminate possible issues.
The other two issues I think are resolved with your reply. Thanks again, Harry
H Wever
Re: using Ubuntu operating system with openvpms
Did you get the option to submit an error report for the java.awt.print.PrinterIOException error message?
If so, click submit and we can diagnose the problem. Otherwise you'll need to look in the openvpms logs to track down the cause.
-Tim
Re: using Ubuntu operating system with openvpms
Regarding problem (1).
This appears to be a cups issue around authentication on "/usr/bin/lpr".
Every print attempt (when not going through the workaround of using 'print preview…') results in the error in openvpms-fully.log
The full stack is at https://paste.apache.org/4Mbp
This problem happens regardless of the printer chosen (harry: correct me if i'm wrong). Printing via 'print preview' works, and printing from outside openvpms works. So i suspect that cups is not allowing the tomcat6 user access, and print preview is a process spawned under the desktop's user . I've played around with permissions, cups settings, and lpradmin, without luck. Running tomcat as another user (eg root) might help… Otherwise google suggests uninstalling and installing cups from scratch, but i'm reluctant to do that as one of the printers is a multi-function-printer that was a pain to configure.
While it suggests not to be a openvpms related issue, more tomcat vs cups, it's worth while checking if any openvpms users can be of help… and there's also the second problem…
Re: using Ubuntu operating system with openvpms
The last comment of http://askubuntu.com/questions/147940/why-do-lp-and-lpr-return-unauthorized-error may help. It suggests to:
In /etc/cups/printers.conf look for AuthInfoRequired it is probably set to negotiate. There are numerous ways to change this but I do this:
Remove the line with negotiate in it
Re: using Ubuntu operating system with openvpms
i did look at this. unfortunately there's no line with negotiate in it.
( i think it refers to a previous version of cups. )
Closest i've come so far is this… http://www.cups.org/pipermail/cups/2008-September/017179.html
Re: using Ubuntu operating system with openvpms
Some more:
Out of curiosity, what happens when you run:
as the tomcat user? If the postscript file doesn't exist, replace it with a valid one in the same directory with identical file permissions.
Re: using Ubuntu operating system with openvpms
I have submitted the error report - I think I did this few days ago as well, but not sure which one as it has been few problems being worked through. But have just sent fresh one through. Also forwarded it through to Mick ( my son) on pastebin - http://pastebin.com/bQ8XCvVN
Harry
H Wever
Re: using Ubuntu operating system with openvpms
We aren't getting the error reports as your system isn't set up to send emails.
See http://www.openvpms.org/documentation/csh/1.7/admin/organisation/practic... for instructions on configuring your Practice Location for email.
-Tim
Re: using Ubuntu operating system with openvpms
OK , did wonder about that how you magically would recieve it . Will do. Thanks Harry
The same message is in the pastebin link - http://pastebin.com/bQ8XCvVN if I take too long to get around to setting up email.
added note - just configured email to send , and have sent out error report but not sure it is working so can you confirm that you have received it or not .
H Wever
Re: using Ubuntu operating system with openvpms
We haven't received any error messages in the last 2 weeks regarding printing issues.