-
Notifications
You must be signed in to change notification settings - Fork 185
codegangsta/cli deprecated cli.App.RunAndExitOnError #223
Comments
Two issues: $ gcp-connector-util m And: |
I am getting both
and
when I try to create the config, and then when I try to run the connector. This isn't a problem when I run in a virtual machine, as it just continues. But I am trying to get it running in a Docker container, which exits when it gets the errors. How can I figure out what is causing the errors? |
Getting this error on a Raspberry Pi 3 (not in a container or VM): Jul 05 15:54:37 musicbox gcp-cups-connector[945]: DEPRECATED cli.App.RunAndExitOnError. This is an error in the application. Please contact the distributor of this application if this is not you. See https://github.com/urfave/cli/blob/master/CHANGELOG.md#deprecated-cli-app-runandexitonerror |
Is this error causing problems in Docker? I started looking at fixing it but it was a bit involved and I didn't realize it was causing any real problems. I can look at it again if necessary (also happy to review push requests). |
When run normally, it just continues after the error, but when run in a container, the Docker engine sees the error code and kills the container. |
Can you give a link to your dockerfile? |
Sure. My repository is at: https://github.com/kmlucy/docker-cloudprint |
Hmm, I can't quite tell what is going wrong with Docker. Can you post a transcript of the output of Docker when it fails? I'd like to see as verbose output as possible, with the commands and arguments listed if you can. |
I successfully build it with:
Once built, I run the container to create the config:
Here is the output:
I usually just go with local printing only for testing. The contents of
I then create the actual container using:
I start the container, and checking the logs get:
Docker shows a status of |
Try setting log_level to DEBUG and set --log-to-console on the command line. I don't think that message is causing the problem. |
You were right:
Is there a way to set the cups server address in the config file? Or elsewhere? |
We use the standard CUPS client library, so the usual rules apply: |
I passed the CUPS_SERVER variable, and managed to connect. Now it is failing here:
|
The Avahi daemon isn't running. It should be running to enable local mode. |
Got it working. It looks like local mode won't work in the container, or at least without the extra work to somehow get Avahi running. Thanks for all the help. |
I have one more question. When I remove and recreate my container, any settings I have changed online (the one that matters is shares) are cleared out. It seems like the printers are being removed and re-registered. I'm sure there is just some file that I have to keep between sessions, but can you tell me where that is located? |
Are you deleting the credentials in your gcp-cups-connector.config.json file? |
No, the config file is stored outside the container, and is not touched. |
It might be |
Yeah. I'm not changing the config file at all. |
Never mind. The sharing settings are fine. I got confused between printers. It does reset the name if you choose to rename it, but that is not a big deal. |
Still getting the ActionFunc error on |
Hello! If I'm not mistaken, master branch uses
cli.App.RunAndExitOnError
, which is deprecated: https://github.com/codegangsta/cli/blob/master/CHANGELOG.md#deprecated-cli-app-runandexitonerrorThe text was updated successfully, but these errors were encountered: