google / cloud-print-connector

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

Printers periodically offline CPC 1.16 #423

Open ghost opened 6 years ago

ghost commented 6 years ago

Installed CPC 1.16 on Windows 2016 print server with ~46 network shared printers. The printers periodically go to an offline status through the day and at night. Monitoring the logs I see that the service is regularly syncing all printers. Is there a Known issue with the printers going offline during the sync?

Naticus commented 5 years ago

I've been having the same problem, on both GPC 1.15 and 1.16 (using the MSI installers). I have 52 printers that it says are all synced. Logging in debug mode and no errors or warnings at all. If I delete an offline printer, it gets re-created and is online (but obviously I need to re-share it).

Naticus commented 5 years ago

Okay so... this is just plain silly, but I've just discovered that if you print to them, they come online. They still work, you just have to ignore any statuses that Google reports to you. Have a bunch of printers offline? That's probably because no one ever prints to them via Cloud Print.

ghost commented 5 years ago

Interestingly enough the printers listed offline would not print from chromebooks. If printed from windows systems however they would print as you had mentioned.

The only way I’ve been able to temporarily resolve it is to restart the windows service for the google cloud print connector.

Running a script periodically to stop and start the service with net use doesn’t behave as expected unfortunately with the service failing to start in a timely matter.

jay0lee commented 5 years ago

What happens if you set fcm_notifications_enable to true in the config file?

ghost commented 5 years ago

That I haven’t tried but will on the next install.

ghost commented 5 years ago

Hello @jay0lee

Unfortunately I was unable to get CPC 1.16 installed on another customers Server 2016 environment so I will be unable to test your recommendation.

Naticus commented 5 years ago

I have gone ahead and set the config option as mentioned and restarted the service just this morning, and have printed a blank page to every offline printer to get them back online. I guess we'll see in a month whether I have a bunch go offline again!

ghost commented 5 years ago

Good to hear @Naticus, that after making the configuration change and sending a blank page to each offline printer, you were able to get them listed as online again. Hopefully they stay online.

Naticus commented 5 years ago

FYI, I set a reminder to check today (2/15) which would be > 30 days since I printed to all my printers to update their status to online. Today I have all those printers showing offline again. Most people typically print to these printers the traditional method, not using Cloud Print, so they aren't getting regular updates via the service to update, so while they haven't been used in 30 days from Chrome, they likely all have been printed to in other methods.