google / cloud-print-connector

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

Cannot start Cloud Print Connector: Error 1 #431

Open mccc1101 opened 5 years ago

mccc1101 commented 5 years ago

Tried to start through command prompt but got the following:

"C:\Program Files\Google\Cloud Print Connector\gcp-windows-conn
ector.exe" --config-filename="C:\ProgramData\Google\Cloud Print Connector\gcp-wi
ndows-connector.config.json"

Google Cloud Print Connector.info(3): Synchronizing printers, stand by
Google Cloud Print Connector.error(1): FATAL Sync failed while calling GetPrinte
rs(): DeviceCapabilities called with unsupported capability, or there was an err
or
Google Cloud Print Connector.info(3): DEBUG XMPP read 0
Google Cloud Print Connector.info(3): XMPP connection was closed
Incorrect function.

Already tried uninstalling and reinstalling 1.16 as well as downgrading to 1.15 but still getting the same error in both versions. When starting through Services, I get: error

jjschoeneck commented 5 years ago

This usually indicates a problem in the gcp-windows-connector.config.json file (found at C:\ProgramData\Google\Cloud Print Connector on Windows). If the JSON is improperly formatted, you'll get this error.

mccc1101 commented 5 years ago

I did delete that file when I reinstalled it the second time so that the installer would recreate it. Here is what is in the file:

{

    "local_printing_enable": false,

    "cloud_printing_enable": true,

    "fcm_notifications_enable": false,

    "xmpp_jid": "dc3d416ddbe44e2678a51e20e755fe91@cloudprint.googleusercontent.com",

    "robot_refresh_token": "1/qON4883a41_hICZM_GmMDl8uminMmdEgUoInZ3MZInABLwwgvJtxnA964y7ivOSj",

    "proxy_name": "67852d35-8784-4bfb-b7d0-64a75370b53a",

    "printer_blacklist": [ "Fax", "CutePDF Writer", "Microsoft XPS Document Writer",
 "Google Cloud Printer" ],

    "log_level": "DEBUG"

}
cyrildtm commented 5 years ago

I am installing version 1.16. I have no such file in such folder. The installation program fails to start the service every time. Manually starting the service from services.msc gives me the same error.

kirleylp commented 5 years ago

Has anyone figured this out?

Steve63664 commented 5 years ago

Has anyone figured this out?

Not sure if this will help you, but I just dealt with this and may have a clue for you. I use a remote management software, and when I remote into a system it would leave linked printer objects from the system I remoted from. In this case I had a Quicken PDF Printer on my personal system so when I installed the Cloud Print Connector on the target it apparently tried to read this "linked" print object from my remote session and it failed with the error in this thread. I disabled remote printers in my software, removed the remnants of the remote printers from the target system, and Cloud Print installed fine after.