How to configure the rule in sakuli_gearman_proxy.cfg that modify the output of sakuli? - gearman

I want to implement a rule which sets the status to WARN in case of a concrete error.Can someone please help.

Related

Strapi debug: Error on attribute departure in model

today when I try to run my Strapi with some exercises, there was an error showing that inversedBy attribute flight not found target api::airport.airport. However, the command shows Admin UI was built successfully. but I cannot access the Admin panel and do anything with it. It seems that the error is belonging to one of the content, but the entire API is not working. What should I do? Does anyone know how to fix this bug?
enter image description here
Thank you.
Firstly, I tried to run the start command(npm run develop) for several time, it keep reporting same error.
Secondly, I tried to access the administration panel directly, it is apparently that I failed.
Hopes someone can help me to figure out, how can I solve this bug/error.
I had a similar error.
The issue for me related to a problem where the 'key'(i.e. attribute key in JSON) didn't match that was referenced by the model in the mappedBy & inversedBy.
e.g. mappedBy:"f_light" should point to
"f_light":{type:"relation",...) --
At least that was the problem for me
Strapi Docs on how the schema is supposed to look
My issue: Error on attribute a_token in model a-request(api::a-request.a-request): inversedBy attribute a-requests not found target api::a-token.a-token
This occurred because I inversedBy:'a-token' when the attribute key was 'a_token'. Changing them so they matched solved my issue ('a-token' -> 'a_token').
The naming conventions of mappedBy, inversedBy, and the attribute keys MUST use '_' instead of '-' for spaces, otherwise it will fail the naming convention tests.

how to run a job with specific 'branch' via api with nodejs?

I managed to build the job
with post request:
http://username:password#my-jenkins.com/job/JobName/build?token=token
Seems like I need to use 'buildWithParameters' and put value to the 'Branch Specifier' field, but I'm sure how to do it.
I will be grateful for any help.
Thanks in advance
Denis
Use buildWithParameters :
http://username:password#my-jenkins.com/job/JobName/buildWithParameters?token=token&branch=your-branch-name
Then 'your-branch-name' will be bound to $branch and will be available in the current job

restify.js route endpoint conflict with parameter

My code is like below:
server.get('/currency/:code', currency.find);
server.get('/currency/rates', currency.rate_getall);
Whenever I try to reach [/rates] endpoint, the server will assume I am passing parameter to '/currency/:code' route. How can I fix this? Thank you.
Ryan
If you can I would consider changing up your rest interface just a little.
server.get('/currency/:code', currency.find);
server.get('/currency/rates/:type', currency.rate);
That way it solves your initial problem and allows for flexibility in the future if you just want to return a rate for a particular currency.
Inside your currency.rate function you could check for either an id or the literal 'all' and return what is appropriate.

SoapClient could not load external entity

Anyone could you explain the difference between the following soap options
WSDL_CACHE_NONE
WSDL_CACHE_DISK
Why I'm asking this mean, while I'm use option 1 I'm getting fatal error at the time of create a instance of SoapClient(), but if I use the option 2 connection was success at all the time.
The cache_wsdl option is one of WSDL_CACHE_NONE, WSDL_CACHE_DISK, WSDL_CACHE_MEMORY or WSDL_CACHE_BOTH.
Refer this url for brief
http://php.net/manual/en/soapclient.soapclient.php

Logstash doc example fails - Exception in thread "LogStash::Runner"

I'm trying out the example in Step 6 from the docs: http://logstash.net/docs/1.2.1/tutorials/10-minute-walkthrough/
When I run logstash I get:
Using milestone 2 input plugin 'tcp'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.2.1/plugin-milestones {:level=>:warn}
You are using a deprecated config setting "type" set in grok. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. You can achieve this same behavior with the new conditionals, like: `if [type] == "sometype" { grok { ... } }`. If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"type", :plugin=><LogStash::Filters::Grok --->, :level=>:warn}
You are using a deprecated config setting "pattern" set in grok. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"pattern", :plugin=><LogStash::Filters::Grok --->, :level=>:warn}
You are using a deprecated config setting "type" set in date. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. You can achieve this same behavior with the new conditionals, like: `if [type] == "sometype" { grok { ... } }`. If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"type", :plugin=><LogStash::Filters::Date --->, :level=>:warn}
Invalid gemspec in [file:/home/bumjvr/logstash/logstash-1.2.1-flatjar.jar!/META-INF/jruby.home/lib/ruby/gems/shared/specifications/rake-10.0.3.gemspec]: no such file to load -- rubygems/dependency
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- base64
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
This is on Ubuntu 13.04, and logstash 1.2.1
Any ideas?! I'm not really sure where to even start looking!
I would suggest trying again with the latest version of Logstash and the documentation.
http://logstash.net/docs/1.3.2/tutorials/10-minute-walkthrough/
I believe the documentation has been corrected since.

Resources