Closed charliemaiors closed 8 years ago
My experience with Raspberry Pi as a print server suggests that it may be under-spec'd for the job.
If you would like to attack this problem, here is something to try:
cloudprint -u -a /var/lib/cloudprint/authfile
Try your multiple prints again, and see if you get a more descriptive error message. The program should terminate with the first failure.
Updated Printer HpLaserjet2420
Polling for jobs on HpLaserjet2420
Establishing connection to xmpp server talk.google.com:5223
xmpp connection established
Polling for jobs on HpLaserjet2420
SUCCESS doc1l.txt
Polling for jobs on HpLaserjet2420
SUCCESS Document2l.txt
Polling for jobs on HpLaserjet2420
SUCCESS Document3.pdf
Polling for jobs on HpLaserjet2420
ERROR: Could not Connect to Cloud Service. Will Try again in 60 Seconds
//Printing Document4
Polling for jobs on HpLaserjet2420
^CERROR: Could not Connect to Cloud Service. Will Try again in 60 Seconds
^CTraceback (most recent call last):
File "/usr/bin/cloudprint", line 9, in
this is the output of cloudprint -u -a /var/lib/cloudprint/authfile; Document1, Document2 and Document3 are printed after a short time of each other. Document4 after 10 minutes...
2014-03-09 0:45 GMT+01:00 davesteele notifications@github.com:
My experience with Raspberry Pi as a print server suggests that it may be under-spec'd for the job.
If you would like to attack this problem, here is something to try:
-
The problem you are having is with an exception in the process_job() function in /usr/share/cloudprint/cloudprint/cloudprint.py. Change the 'except:'line in the function to something like "except IndexError:", to pick an error that is unlikely to be the cause.
Run cloudprint from the command line, with something like:
cloudprint -u -a /var/lib/cloudprint/authfile
Try your multiple prints again, and see if you get a more descriptive error message. The program should terminate with the first failure.
Reply to this email directly or view it on GitHubhttps://github.com/davesteele/cloudprint-service/issues/14#issuecomment-37113703 .
Pasquale Carlo Maiorano Picone
Sorry, the exception we were trying to see is now being intercepted one level up, in process_jobs(). The 'except:' line in that routine needs the same treatment.
That should be the last one.
There have been many releases and many changes since this issue was last referenced. Closing.
Mar 7 11:34:55 raspberrypi cloudprint.py: xmpp connection established Mar 7 11:38:51 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 11:38:53 raspberrypi cloudprint.py: SUCCESS Document1.pdf Mar 7 12:38:53 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 13:38:54 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 14:38:54 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 15:38:54 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 16:38:55 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 17:38:55 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 18:38:56 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 19:38:56 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 19:57:59 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 19:58:02 raspberrypi cloudprint.py: ERROR Document2.pdf Mar 7 19:58:18 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 19:58:25 raspberrypi cloudprint.py: ERROR Document3.pdf Mar 7 20:58:25 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 21:58:25 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 22:58:26 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 7 23:58:26 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 00:58:26 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 01:58:27 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 02:58:27 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 03:58:28 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 04:58:28 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 05:58:29 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 06:58:30 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 07:58:30 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 08:58:30 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 09:58:31 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 10:58:31 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 11:58:32 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 12:58:32 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 13:58:33 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 14:58:33 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 15:58:34 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 16:07:25 raspberrypi cloudprint.py: Polling for jobs on HpLaserjet Mar 8 16:07:32 raspberrypi cloudprint.py: ERROR Document4.pdf
this is my user.log, after i've succesfully printed Document1 the others fail, after a service restart is the same...I can print one document at time...