google / cloud-print-connector

Google Cloud Print Connector
BSD 3-Clause "New" or "Revised" License
764 stars 185 forks source link

Job keeps trying to download after Status: DONE. Fills up queue and requires restart. #334

Open Myles512 opened 7 years ago

Myles512 commented 7 years ago

Hiya,

I have cloud-print-connector for Linux (built with go on Nov 24, 2016). Centos 7, CUPS 1.6.3.

I see the following (grep'd the print job ID from the log):

D [29/Nov/2016:11:47:45 -0700] Fetched jobs: [{GCPPrinterID:60999ff6-4020-9b18-ab7f-d186af1f2249 GCPJobID:3825dad0-9db1-79bd-4558-6a4f504fb613 FileURL:https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 OwnerID:<user> Title:treasure island final project :wanted poster: - Google Docs SemanticState:<nil>}]
I [29/Nov/2016:11:47:45 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] Received from cloud
I [29/Nov/2016:11:47:49 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] Downloaded in 4.040190459s
D [29/Nov/2016:11:47:49 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] Assembled with file /tmp/cloud-print-connector-997663109: &{VendorID:print-color-mode:color Type:STANDARD_COLOR}
D [29/Nov/2016:11:47:49 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] Received job: &{NativePrinterName:RVYS_Student_Downstairs Filename:/tmp/cloud-print-connector-997663109 Title:treasure island final project :wanted poster: - Google Docs User:<user> JobID:3825dad0-9db1-79bd-4558-6a4f504fb613 Ticket:0xc821742400 UpdateJob:0x4fe310}
I [29/Nov/2016:11:47:49 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] Submitted as native job 3355
I [29/Nov/2016:11:47:50 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] State: DONE
D [29/Nov/2016:11:47:57 -0700] Fetched jobs: [{GCPPrinterID:60999ff6-4020-9b18-ab7f-d186af1f2249 GCPJobID:3825dad0-9db1-79bd-4558-6a4f504fb613 FileURL:https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 OwnerID:<user> Title:treasure island final project :wanted poster: - Google Docs SemanticState:<nil>}]
I [29/Nov/2016:11:47:57 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] Received from cloud
D [29/Nov/2016:11:48:04 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 440.328594ms
D [29/Nov/2016:11:48:09 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 613.54363ms
D [29/Nov/2016:11:48:13 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1.090001075s
D [29/Nov/2016:11:48:19 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1.32137013s
D [29/Nov/2016:11:48:27 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 2.007539076s
D [29/Nov/2016:11:48:35 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 4.476837128s
D [29/Nov/2016:11:48:43 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 4.902931741s
D [29/Nov/2016:11:48:54 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 6.809451431s
D [29/Nov/2016:11:49:04 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 13.11969732s
D [29/Nov/2016:11:49:17 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 15.321836548s
D [29/Nov/2016:11:49:33 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 41.312572633s
D [29/Nov/2016:11:50:14 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m1.508944096s
D [29/Nov/2016:11:51:16 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m11.45032989s
D [29/Nov/2016:11:52:28 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m15.349410449s
D [29/Nov/2016:11:53:43 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m8.67238695s
D [29/Nov/2016:11:54:52 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 44.209352808s
D [29/Nov/2016:11:55:37 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 41.234766084s
D [29/Nov/2016:11:56:18 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 54.619370661s
D [29/Nov/2016:11:57:13 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m13.750843604s
D [29/Nov/2016:11:58:27 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m6.238686136s
D [29/Nov/2016:11:59:34 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m24.949278876s
D [29/Nov/2016:12:00:59 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m20.749967234s
D [29/Nov/2016:12:02:20 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retrying after 1m18.863673058s
D [29/Nov/2016:12:03:39 -0700] HTTP error GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found, retry timeout hit%!(EXTRA time.Duration=0)
E [29/Nov/2016:12:03:39 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] Failed to download data: GET HTTP-level failure: https://www.google.com/cloudprint/download?id=3825dad0-9db1-79bd-4558-6a4f504fb613 404 Not Found
E [29/Nov/2016:12:03:39 -0700] [Job 3825dad0-9db1-79bd-4558-6a4f504fb613] https://www.google.com/cloudprint/control call failed: Can't modify the finished job.

When this happens, it uses up a slot in the queue. The first time it happens, the next are usually not far behind. When enough of them pile up, they completely fill up the queue with hung jobs, and the log just says:

I [29/Nov/2016:12:06:37 -0700] [Job 50ffae25-350a-0643-1583-d2192e331be1] Received from cloud

over and over (with different print job ID's). As soon as the service is restarted, everything resumes as normal, but it will eventually fail again. This morning it lasted a little over 3.5 hours between restarts.

If I'm away when it happens and a lot of jobs pile up, it'll generally 404 again within a minute or two of restarting, and will need another restart (or more) to fix it.

jay0lee commented 7 years ago

What is the status of the job when viewed from google.com/cloudprint ? Does it update to DONE status there?

Myles512 commented 7 years ago

It shows as printed now. I will check on a stuck job before restarting the service next time it happens.

image

Myles512 commented 7 years ago

Yes, the job stuck in cloud-print-connector shows as "Printed" under google.com/cloudprint right away.

danielhedblom commented 7 years ago

Hello! Had the same problem on my Ubuntu printserver with the latest DEV version installed. It got to the point where i could not have more open files and jobs could not be dowloaded. The ubuntu "0.0.0" version on the other hand works great. It is version (0.0~git20151105.24.1902938-1) that Ubuntu has packaged.