Cannot run kibana on centos7

My ElasticSearch setting:

    # Set the bind address to a specific IP (IPv4 or IPv6):
    #
    network.host: 192.168.25.133
    #
    # Set a custom port for HTTP:
    #
    http.port: 9200;

And it runs both on localhost and remote:

        {
          "name" : "p_qVGHZ",
          "cluster_name" : "elasticsearch",
          "cluster_uuid" : "iJKkHW2dTGSPD3d2yk-a-A",
          "version" : {
            "number" : "6.3.0",
            "build_flavor" : "default",
            "build_type" : "tar",
            "build_hash" : "424e937",
            "build_date" : "2018-06-11T23:38:03.357887Z",
            "build_snapshot" : false,
            "lucene_version" : "7.3.1",
            "minimum_wire_compatibility_version" : "5.6.0",
            "minimum_index_compatibility_version" : "5.0.0"
          },
          "tagline" : "You Know, for Search"
        }

BUT when I run kibana and my setting like :

    server.port: 5601
    elasticsearch.url: "http://192.168.25.133:9200"
    server.host: "0.0.0.0"

I get the following error which I cannot figure out what happend:

        [error][reporting] Failed to install browser. See kibana logs for more details.
         error  [15:03:25.596] [fatal] ExtractError: Failed to extract the phantom.js archive
            at Extract.<anonymous> (/usr/local/kibana-6.3.0-linux-x86_64/node_modules/x- 
              pack/plugins/reporting/server/browsers/extract/bunzip2.js:24:16)
            at emitOne (events.js:121:20)
            at Extract.emit (events.js:211:7)
            at Extract.destroy (/usr/local/kibana-6.3.0-linux-x86_64/node_modules/tar-stream/extract.js:191:17)
            at onunlock (/usr/local/kibana-6.3.0-linux-x86_64/node_modules/tar-stream/extract.js:69:26)
            at /usr/local/kibana-6.3.0-linux-x86_64/node_modules/tar-fs/index.js:234:25
            at FSReqWrap.oncomplete (fs.js:135:15)
        FATAL { ExtractError: Failed to extract the phantom.js archive
            at Extract.<anonymous> (/usr/local/kibana-6.3.0-linux-x86_64/node_modules/x-pack/plugins/reporting/server/browsers/extract/bunzip2.js:24:16)
            at emitOne (events.js:121:20)
            at Extract.emit (events.js:211:7)
            at Extract.destroy (/usr/local/kibana-6.3.0-linux-x86_64/node_modules/tar-stream/extract.js:191:17)
            at onunlock (/usr/local/kibana-6.3.0-linux-x86_64/node_modules/tar-stream/extract.js:69:26)
            at /usr/local/kibana-6.3.0-linux-x86_64/node_modules/tar-fs/index.js:234:25
            at FSReqWrap.oncomplete (fs.js:135:15)
          name: 'ExtractError',
          cause:
           { Error: EPERM: operation not permitted, utime '/usr/local/kibana-6.3.0-linux-x86_64/data/phantomjs-2.1.1-linux-x86_64/'
             errno: -1,
             code: 'EPERM',
             syscall: 'utime',
             path: '/usr/local/kibana-6.3.0-linux-x86_64/data/phantomjs-2.1.1-linux-x86_64/' } }

Can you guys tell me how to fix it?Appreciate your help

Hm, the error is coming from reporting. Looks like a permissions issue when trying to extract the phantom archive. Does the user you are running Kibana on have permissions to do that?

Or you can extract the archive yourself (related: X-pack plugin:reporting - Permission Denied Ubuntu)

I noticed that in 6.3.0 version the data dir in kibana has a lot new folders that is not appeared in earlier verion. I had granted the entire kibana dir to es user but still got above error.Did you mean the es user don't have permissions to the phantom archive?
Also I have tried the windows version and it worked well. I really confused

Ok, tonight I wana to remove all the files in kibana using 'rm -rf' , but it gived me 'Permission denied'.
Looks like I somehow extract or run the kibana with 'root' user and cause the permission issues.
I redownloaded the kibana package and reconfig it solved my problem.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.