davesteele / cloudprint-service

Debian packaging for the Python cloudprint proxy utility
GNU General Public License v3.0
71 stars 4 forks source link

After first other jobs fail #14

Closed charliemaiors closed 8 years ago

charliemaiors commented 10 years ago

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...

davesteele commented 10 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.

charliemaiors commented 10 years ago

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 load_entry_point('cloudprint==0.11', 'console_scripts', 'cloudprint-cmd')() File "/usr/share/cloudprint/cloudprint/cloudprint.py", line 547, in main process_jobs(cups_connection, cpp, printers) File "/usr/share/cloudprint/cloudprint/cloudprint.py", line 401, in process_jobs time.sleep(FAIL_RETRY) KeyboardInterrupt

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

davesteele commented 10 years ago

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.

davesteele commented 8 years ago

There have been many releases and many changes since this issue was last referenced. Closing.