ceilometer --debug meter-list (pike version) error 404 not found - http-status-code-404

I could see the following result:
See this image please
What could the issue be? Which files should I make modifications in?
I tried changing /etc/ceilometer/ceilometer.conf
[keystone] and [service_credential] auth_uri and auth_url.However,when that did not work I changed it to what it was.
Endpoint is http://controller:8777
auth_uri is http://controller:5000
auth_url is http://controller:35357
Also, ceilometer alarm-list works fine but ceilometer meter-list gives HTTP 404 Not Found Error.

Related

CodenameOne - how to catch HTTP 404 error using Terse REST API

How can I catch an HTTP 404 error using the Terse REST API in CodenameOne? At the moment the default error handler gets this but I would like to display my own message instead. The code I am using is fine if the accountNo exists and I can deal with the resulting JSON, but if not I get the standard error handler displaying the 404 error:
Response<Map> jsonData = Rest.get( URL + "lookup").
jsonContent().
queryParam("account",accountNo).
getAsJsonMap();
This seems to be a mistake in that version of the method. It should fail silently without a UI Dialog. We'll fix it for the next update.
Notice that jsonData should have the error response code within it as jsonData.getResponseCode().

Where are devise parameters documented

As a newbie to devise and angularjs, perhaps looking at wrong places, I can't seem to find where the parameters are documented for the following routes:
$ rake routes
Prefix Verb URI Pattern Controller#Action
new_user_session GET /users/sign_in(.:format) user/sessions#new
user_session POST /users/sign_in(.:format) user/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) user/sessions#destroy
user_confirmation POST /users/confirmation(.:format) devise/confirmations#create
new_user_confirmation GET /users/confirmation/new(.:format) devise/confirmations#new
GET /users/confirmation(.:format) devise/confirmations#show
user_password POST /users/password(.:format) user/passwords#create
new_user_password GET /users/password/new(.:format) user/passwords#new
edit_user_password GET /users/password/edit(.:format) user/passwords#edit
PATCH /users/password(.:format) user/passwords#update
PUT /users/password(.:format) user/passwords#update
cancel_user_registration GET /users/cancel(.:format) user/registrations#cancel
user_registration POST /users(.:format) user/registrations#create
new_user_registration GET /users/sign_up(.:format) user/registrations#new
edit_user_registration GET /users/edit(.:format) user/registrations#edit
PATCH /users(.:format) user/registrations#update
PUT /users(.:format) user/registrations#update
DELETE /users(.:format) user/registrations#destroy
Running a piece of sample code, I can see the following in the log:
Started POST "/users/sign_in.json" for 127.0.0.1 at 2016-02-15 16:49:35 -0800
Processing by User::SessionsController#create as JSON
Parameters: {"user"=>{"email"=>"guest#local.host", "password"=>"[FILTERED]"}, "session"=>{"user"=>{"email"=>"guest#local.host", "password"=>"[FILTERED]"}}}
Because I don't have sample code for every route, how can I figure out the right parameter for the above routes? Thanks.

Visualforce: Can't access archived static resource

I'm trying to access some static resource in my visualforce page. I have uploaded a zip file named pqGrid. It's structure is like so:
- pqgrid.min.js
- pggrid.min.css
- images/
--image1.png
--image2.png
Following the directions in the sf docs on [referencing a static resource1, I tried the following:
<apex:includeScript value="{!URLFOR($Resource.pqGrid, 'pqgrid.min.js')}"/>
<apex:stylesheet value="{!URLFOR($Resource.pqGrid, 'pqgrid.min.css')}"/>
Onloading the page, I get a 404:
GET
https://c.cs10.visual.force.com/resource/7975978979000/pqGrid/pqgrid.min.js
404 (Not Found)
GET https://c.cs10.visual.force.com/resource/7975978979000/pqGrid/pqgrid.min.css
I've even tried just referencing an image:
<apex:image url="{!URLFOR($Resource.pqGrid, 'images/cross.png')}"/>
and same 404:
GET
https://c.cs10.visual.force.com/resource/7975978979000/pqGrid/images/cross.png
404 (Not Found)
I've made sure that the resource cache control is public
What am I doing incorrectly?
EDIT
Tried putting all the files into another directory, so it is now pqGrid/stash/[*files]
When I get the 404 not found:
GET
https://c.cs10.visual.force.com/resource/1430434594000/pqGrid/stash/pqgrid.min.css
I tried playing with this url. Trying to navigate to just /stash/ throws a ERR_INVALID_RESPONSE error. Navigating to just /pqGrid/ let's me download the stuff. Trying to go directly to the file, /pqGrid/stash/file.js I just get a blank page.
So the zip is definitely on salesforce, but something is up with accessing it.
Thanks all!
This happens when we specify incorrect paths for our files would suggest to try below
<apex:includeScript value="{!URLFOR($Resource.pqGrid, 'pqgrid/pqgrid.min.js')}"/>
<apex:stylesheet value="{!URLFOR($Resource.pqGrid, 'pqgrid/pqgrid.min.css')}"/>
Sometimes forgetting slash also introduces issues
<apex:includeScript value="{!URLFOR($Resource.pqGrid, '/pqgrid.min.js')}"/>

Getting rid of "Static file referenced by handler not found" from logs

My logs are full with:
2011-04-22 13:30:02.251
/soc/content/images/melange-logo.jpg
404 0ms 0cpu_ms 0kb
facebookexternalhit/1.0
(+http://www.facebook.com/externalhit_uatext.php),gzip(gfe),gzip(gfe),gzip(gfe)
69.171.224.250 - - [22/Apr/2011:13:30:02 -0700] "GET
/soc/content/images/melange-logo.jpg
HTTP/1.1" 404 0 -
"facebookexternalhit/1.0
(+http://www.facebook.com/externalhit_uatext.php),gzip(gfe),gzip(gfe),gzip(gfe)"
"www.google-melange.com" ms=1 cpu_ms=0
api_cpu_ms=0 cpm_usd=0.000036 W
2011-04-22 13:30:02.250 Static file
referenced by handler not found:
soc/content/melange-logo.jpg
This is a known 404, we changed our url schema and that link isn't used anymore. I'm fine with it serving a 404. What I'm not fine with is the warning in my logs every time Facebook's bot hits that url, which it does about every 5 minutes, polluting my logs.
How can I get rid of this annoying warning?
app.yaml is at:
http://code.google.com/p/soc/source/browse/app/app.yaml.template
You could modify the regular expression for your static file to not match that specific filename. Alternately, provide a dynamic handler that returns a 404 for that path but doesn't log anything. Or, just re-upload the file.

cakephp app error problem

I have the following function in my app_controller:
function beforeFilter() {
$this->set('lastThreePosts', $this->Blog->find_latest_posts());
}
I then use the variable 'lastThreePosts' that I have set in my layout. This works fine apart from on my 404 page where I get the following error:
Notice (8): Undefined index: lastThreePosts [APP\views\layouts\default.ctp, line 29]
I have made my own 404 page by created the file error404.ctp in my /views/errors/ directory.
So it seems when theres a 404 error the code in the controller doesn't get executed. Does anyone know how I can make it work?
Thanks
Phew! I found the answer here:
http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/

Resources