Fail to connect to kibana, nginx issue?


#1

I'm following a guide for ELK here:

Which has been largely pretty easy to do, but when I connect to my ELK server after entering my kibanaadmin password I get a fatal error trace:

Courier Fetch: unhandled error KbnError@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:39210:21
RequestFailure@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:39247:5
callResponseHandlers/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:42978:38
Promise.try@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:46205:23
Promise.map/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:46183:16
Promise.map@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:46182:26
callResponseHandlers@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:42950:14
fetchWithStrategy/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:43068:16
qFactory/defer/deferred.promise.then/wrappedCallback@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:20873:31
qFactory/defer/deferred.promise.then/wrappedCallback@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:20873:31
qFactory/ref/<.then/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:20959:26
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:22002:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:21814:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:22106:13
done@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:17641:34
completeRequest@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:17855:7
createHttpBackend/</xhr.onreadystatechange@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:17794:11

handleError@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:42649:22

AbstractReqProvider/AbstractReq.prototype.handleFailure@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:42725:14
callResponseHandlers/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:42978:20
Promise.try@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:46205:23
Promise.map/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:46183:16
Promise.map@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:46182:26
callResponseHandlers@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:42950:14
fetchWithStrategy/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:43068:16
qFactory/defer/deferred.promise.then/wrappedCallback@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:20873:31
qFactory/defer/deferred.promise.then/wrappedCallback@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:20873:31
qFactory/ref/<.then/<@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:20959:26
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:22002:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:21814:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:22106:13
done@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:17641:34
completeRequest@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:17855:7
createHttpBackend/</xhr.onreadystatechange@http://snipe.csi.private.cam.ac.uk/index.js?_b=5930:17794:11

The instructions include using nginx, my sites-available/default looks like:

server {
listen 80;

server_name snipe.csi.private.cam.ac.uk;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
    proxy_pass http://localhost:5601;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}

}

I'm assuming it is a problem with this but I have no idea what it could be (totally new to nginx).

I'm running Ubuntu 16.04.1 VM, kibana-4.0.1, nginx/1.10.0

nginx.conf hasn't been altered from the defaults.

Any ideas?

Thanks


#2

... also in case it's relevant my elasticsearch logs show errors like these:

[2016-10-20 20:56:43,724][INFO ][node ] [Free Spirit] version[1.7.3], pid[1611], build[NA/NA]
[2016-10-20 20:56:43,756][INFO ][node ] [Free Spirit] initializing ...
[2016-10-20 20:56:44,263][INFO ][plugins ] [Free Spirit] loaded [], sites []
[2016-10-20 20:56:44,421][INFO ][env ] [Free Spirit] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [227.6gb], net total_space [243.9gb
[2016-10-20 20:56:50,875][INFO ][node ] [Free Spirit] initialized
[2016-10-20 20:56:50,875][INFO ][node ] [Free Spirit] starting ...
[2016-10-20 20:56:51,005][INFO ][transport ] [Free Spirit] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[localhost/127.0.0.1:9300]}
[2016-10-20 20:56:51,036][INFO ][discovery ] [Free Spirit] elasticsearch/2Bah63YhRSCngJt63onGZg
[2016-10-20 20:56:54,806][INFO ][cluster.service ] [Free Spirit] new_master [Free Spirit][2Bah63YhRSCngJt63onGZg][snipe][inet[localhost/127.0.0.1:9300]], reason: zen
[2016-10-20 20:56:54,921][INFO ][http ] [Free Spirit] bound_address {inet[/127.0.0.1:9200]}, publish_address {inet[localhost/127.0.0.1:9200]}
[2016-10-20 20:56:54,922][INFO ][node ] [Free Spirit] started
[2016-10-20 20:56:55,030][INFO ][gateway ] [Free Spirit] recovered [38] indices into cluster_state
[2016-10-20 20:57:03,767][DEBUG][action.search.type ] [Free Spirit] [.kibana][1], node[2Bah63YhRSCngJt63onGZg], [P], s[STARTED]: Failed to execute [org.elasticsearch.ac
org.elasticsearch.search.SearchParseException: [.kibana][1]: from[-1],size[1000]: Parse Failure [Failed to parse source [{"size":1000,"sort":[{"buildNum":{"order":"desc"}}],"
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:747)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:572)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:544)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:306)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.elasticsearch.search.SearchParseException: [.kibana][1]: from[-1],size[1000]: Parse Failure [No mapping found for [buildNum] in order to sort on]
at org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:214)
at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:188)
at org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:86)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:731)
... 9 more
[2016-10-20 20:57:03,767][DEBUG][action.search.type ] [Free Spirit] [.kibana][4], node[2Bah63YhRSCngJt63onGZg], [P], s[STARTED]: Failed to execute [org.elasticsearch.ac
org.elasticsearch.search.SearchParseException: [.kibana][4]: from[-1],size[1000]: Parse Failure [Failed to parse source [{"size":1000,"sort":[{"buildNum":{"order":"desc"}}],"
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:747)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:572)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:544)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:306)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


(system) #3