Plugin installation is not working in fluentd td-agent - fluentd

normally plugin installation method given in fluentd docs in not working for TD-agent.
Docs method
C:\opt\td-agent> td-agent-gem install fluent-plugin-xyz --version=1.2.3

Related

Cannot create docs for components in backstage docker error

I am trying to display docs stored in repository created by backstage io component on backstage-io /docs page UI, but when I am trying to access the docs I am getting the following error
Building a newer version of this documentation failed. Error: "Failed to generate docs from C:\\Users\\Admin\\AppData\\Local\\Temp\\backstage-enprxk into C:\\Users\\Admin\\AppData\\Local\\Temp\\techdocs-tmp-W6iVab; caused by Error: Docker container returned a non-zero exit code (1)"
Files in my repository
docs folder only having index.md
and mkdocs.yml have
nav:
Home: index.md
I was getting similar issues working on a local POC of Backstage. The biggest problem was that I needed to install pip, python, mkdocs, and mkdocs-techdocs-core (i.e. pip3 install mkdocs-techdocs-core). If you have done that and then followed everything in this documentation, then it should start working. Hope that helps. I spent a couple of days trying to get past these types of errors.
For me the above issue is fixed by using below as it was not working inside my container in kubernetes.
I changed app-config.yaml -
techdocs:
builder: 'local' # Alternatives - 'external'
generator:
runIn: 'local' // changed from docker to local here

Deploying Cloud Run via YAML gives Revision named 'yourservicename-00001-soj' with different configuration already exists

When using the following command to deploy a new Cloud Run revision,
gcloud run services replace service.yaml
The deployment fails with this error
ERROR: (gcloud.run.services.replace) ALREADY_EXISTS: Revision named 'yourservicename-00001-soj' with different configuration already exists.
This occurs when you have followed Google's documentation which instructs you to pull down the current service YAML description into a file, make edits and then redeploy it.
This is because the documentation is wrong, or Google's service has regressed since it was authored.
Edit the YAML and remove spec.template.metadata.name and try again.

How to acquire apache-beam .tar.gz file?

Apache-beam has been frustrating to manage with the correct google-cloud libraries for me to use with Dataflow.
I discovered for what I'm doing I need apache-beam=2.3.0 rather than 2.4.0 (2.4.0 gives a pickling error that I cannot resolve refer to Dataflow Error: 'Clients have non-trivial state that is local and unpickleable')
I need DataflowRunner to use apache-beam=2.3.0 as well so following this persons instructions Custom Apache Beam Python version in Dataflow I just need the actual tar.gz file I thought I had installed it via pip with a pip install apache-beam=2.3.0 so if I look in my system I can't find any tar.gz. When I go to the apache website to download the source code the link is broken.
Where can I find a tar.gz for apache-beam-2.3.0?
The latest and all history releases of apache-beam packages can be found on github - github.com/apache/beam/releases.

Error "plugin is in use but not enabled" in kong environment

We are trying to use the hello-world plugin described in this page - https://streamdata.io/blog/developing-an-helloworld-kong-plugin/
also we have tried this as well - https://github.com/brndmg/kong-plugin-hello-world
We are facing this error in logs:
2017/09/19 09:47:15 [error] 1#0: init_by_lua error: /usr/local/share/lua/5.1/kong.lua:154: hello-world plugin is in use but not enabled
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/kong.lua:154: in function 'init'
init_by_lua:3: in main chunk
The Kong version we are using is 0.11.0.
Can someone suggest what could we be missing?
Kong raises this error because you are asking it to run a plugin called hello-world, without providing the code for this plugin.
This error is trying to say that this plugin is configured to be running on an API/Consumer in the datastore (PostgreSQL or Cassandra), but not added to the Kong configuration custom_plugins settings.
To load a custom plugin, you need two things:
The plugin must be installed in the LUA_PATH (refer to the docs here)
The plugin name must be added to the custom_plugins setting for Kong to load it (from the LUA_PATH)
You can edit your configuration file to make Kong load the plugin:
custom_plugins = hello-world
or specify it via an environment variable:
export KONG_CUSTOM_PLUGINS=hello-world
If you are still seeing this error, it could mean that you are not starting Kong with the configuration file you are editing. Start Kong in verbose mode to see what configuration file it is reading and what is the values of custom_plugins:
$ kong start --vv
You can read more on how to install and custom plugins for 0.11 in the Plugins Development Guide section of the website.
I fixed this issue by adding things in custom_plugins and lua_package_path .
Here are the steps to enable and use custom plugin in kong Env.
1 - Add custom plugin name in --- custom_plugins = hello-world
2 - Install hello-world plugin by using following steps ---
If you have source code of your plugin then move into it and execute the command --- "luarocks make"
it will install your plugin.
now you have to execute a command "make install-dev" make sure your plugin have makefile like as --
Once you execute this command "make install-dev". it will create lua file at a location something like that -
/your-plugin-path/lua_modules/share/lua/5.1/kong/plugins/your-plugin-name/?.lua
just copy this path and add it into the kong configuration file in lua_package_path
Something like that --
lua_package_path=/your-plugin-path/lua_modules/share/lua/5.1/kong/plugins/your-plugin-name/?.lua
Now you done your job.
Just start kong -- kong start --vv
You will see that the plugin loaded into kong plugin env.
#Enjoy

grails cf-info gives null pointer exception

I just installed the cloud foundry plugin with the compile directive as detailed in the documentation. Also, as detailed in the documentation, I put in my username, and password in the ~/.grails/settings.groovy file. For good measure, I also exited out of the terminal and restarted that (and then the machine). However I get the following error when I type in grails cf-info It gives me the following :
|java.lang.NullPointerException
at org.cloudfoundry.client.lib.CloudFoundryClient.login(CloudFoundryClient.java:211)
at ClientWrapper.methodMissing(_CfCommon_groovy:536)
at _CfCommon_groovy$_run_closure5.doCall(_CfCommon_groovy:110)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at CfInfo$_run_closure1.doCall(CfInfo:33)
As an FYI: I have the following in my BuildConfig.groovy :
`compile ':cloud-foundry:1.2.3'
compile ':webxml:1.4.1'`
And my grails version is 2.3.1
Thanks a million for the help!
The Cloud Foundry Grails plugin has not been updated for CF v2 yet. You should use the "cf" CLI for pushing Grails apps.
See http://docs.cloudfoundry.com/docs/using/managing-apps/cf/index.html and http://docs.cloudfoundry.com/docs/using/deploying-apps/jvm/index.html.

Resources