Created
March 19, 2015 11:57
-
-
Save clarsonneur/0e93ec8d241ab33ea40b to your computer and use it in GitHub Desktop.
Code failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ st2 rule list | |
ERROR: 500 Server Error: Internal Server Error | |
MESSAGE: Missing TriggerDB object for rule 550a9548e9720f11330cf940 | |
$ mongo st2 --eval "db.rule_d_b.find().forEach(function(x){printjson(x);})" | |
MongoDB shell version: 2.4.6 | |
connecting to: st2 | |
{ | |
"_id" : ObjectId("54fecf0ee9720f0c5d9de0a0"), | |
"name" : "examples.webhook_file", | |
"description" : "Sample rule dumping webhook payload to a file.", | |
"tags" : [ ], | |
"trigger" : "core.4140395e-8cd9-4545-80fe-c7328a0a04c0", | |
"criteria" : { | |
"trigger.body.name" : { | |
"pattern" : "st2", | |
"type" : "equals" | |
} | |
}, | |
"action" : { | |
"ref" : "core.local", | |
"parameters" : { | |
"cmd" : "echo \"{{trigger.body}}\" >> /tmp/st2.webhook_sample.out" | |
} | |
}, | |
"enabled" : true | |
} | |
{ | |
"_id" : ObjectId("550a9548e9720f11330cf940"), | |
"name" : "on_every_60s_event", | |
"description" : "firing the CR submit case.", | |
"tags" : [ ], | |
"trigger" : "ChangeRecord.event", | |
"criteria" : { | |
}, | |
"action" : { | |
"ref" : "ChangeRecord.submit", | |
"parameters" : { | |
"greeting" : "test.yaml" | |
} | |
}, | |
"enabled" : true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
st2 --debug rule delete 550a9548e9720f11330cf940
-------- begin 50764816 request ----------
curl -X GET -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: /' -H 'User-Agent: python-requests/2.5.3 CPython/2.7.5 Linux/3.11.10-301.fc20.x86_64' 'http://localhost:9101/v1/rules/?name=550a9548e9720f11330cf940'
-------- begin 50764816 response ----------
[]
-------- end 50764816 response ------------
-------- begin 50764816 request ----------
curl -X GET -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: /' -H 'User-Agent: python-requests/2.5.3 CPython/2.7.5 Linux/3.11.10-301.fc20.x86_64' http://localhost:9101/v1/rules/550a9548e9720f11330cf940
-------- begin 50764816 response ----------
{
"faultstring": "Missing TriggerDB object for rule 550a9548e9720f11330cf940"
}
-------- end 50764816 response ------------
Rule "550a9548e9720f11330cf940" is not found.
Client settings:
ST2_BASE_URL: http://localhost
ST2_AUTH_URL: https://localhost:9100
ST2_API_URL: http://localhost:9101/v1
Proxy settings:
HTTP_PROXY:
HTTPS_PROXY:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/st2client/shell.py", line 178, in run
args.func(args)
File "/usr/lib/python2.7/site-packages/st2client/commands/resource.py", line 413, in run_and_print
raise OperationFailureException('Resource %s not found.' % resource_id)
OperationFailureException: Resource 550a9548e9720f11330cf940 not found.