Dear visitor, despite the COVID-19 outbreak, our team continues operating at full speed.

Also, here is the form where you can apply for a special discount and we will contact you with possible options. Stay safe and continue achieving your business goals.

Fill the form
Get Free Trial
Get Free Trial

Pivot kibana plugin installation: EACCESS permission denied

Answered
Alberto Puerta asked on December 19, 2019

Hi all,
We are trying to prepare a PoC with your pivot table but are not able to install the plugin. Our Kibana is deployed in Kubernetes, using the image docker.elastic.co/kibana/kibana:7.3.2
And this is the error we get:
./kibana-plugin install https://github.com/flexmonster/pivot-kibana/releases/download/v1.21/flexmonster_pivot-v1.21.zip
Attempting to transfer from https://github.com/flexmonster/pivot-kibana/releases/download/v1.21/flexmonster_pivot-v1.21.zip
Transferring 14172 bytes………………..
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation was unsuccessful due to error “EACCES: permission denied, open ‘/usr/share/kibana/plugins/.plugin.installing/package.json'”
Could you help us? We have tried several versions of your plugin but with the same result.
Thanks in advance.
Regards, Alberto.

8 answers

Public
Vera Didenko Flexmonster December 19, 2019

Hello, Alberto, 
 
Thank you for reaching out to us.
 
It seems you are using Ubuntu as your operating system. 
We have encountered the same problem and found that it seems it is connected to user permissions:
We have noticed that during the installation, in the plugins directory the hidden .plugin.installing/package.json file is created with superuser access only and therefore the installation fails to complete successfully.
 
Running the command in superuser mode worked for us:
1) Entering superuser mode:

sudo su

2) Running the command in superuser mode:

./kibana-plugin install https://github.com/flexmonster/pivot-kibana/releases/download/v1.21/flexmonster_pivot-v1.21.zip

 
Please let us know if this works.
 
Looking forward to your reply.
 
Best regards,
Vera

Public
Alberto Puerta December 19, 2019

Hi Vera,
Thanks for your quick reply. Our Kibana is installed in Kubernetes using the official Elastic Kibana image, it seems is a CentOS Linux release 7.6.1810 (Core).
There is no sudo neither but finally we installed your plugin with a new Dockerfile based on the image from Elastic, changing user to root and then executing kibana-plugin.
We have reconfigured ES and Kibana to enable cors but still cannot see the pivot table in Kibana. Is there any other way than going to Kibana’s UI to check if your plugin is correctly installed?
Thanks in advance.

Public
Alberto Puerta December 19, 2019

This seems the problem:
{“type”:”log”,”@timestamp”:”2019-12-19T15:27:40Z”,”tags”:[“plugin”,”warning”],”pid”:8,”path”:”/usr/share/kibana/plugins/flexmonster_pivot”,”message”:”Skipping non-plugin directory at /usr/share/kibana/plugins/flexmonster_pivot”}
If it is of any help.
Regards,
Alberto.

Public
Alberto Puerta December 19, 2019

Corrected changing the user and permissions of the folder:

RUN chown -R kibana.kibana /usr/share/kibana/plugins \
&& chmod -R 755 /usr/share/kibana/plugins

Next problem, Kibana image does not include yarn and we get an error in the optimization phase:
FATAL Error: Optimizations failure.
7119 modules
ERROR in ./plugins/flexmonster_pivot/public/components/flexmonster/FlexmonsterPivotTable.js
Module not found: Error: Can’t resolve ‘flexmonster/flexmonster.min.css’ in ‘/usr/share/kibana/plugins/flexmonster_pivot/public/components/flexmonster’
ERROR in ./plugins/flexmonster_pivot/public/components/flexmonster/FlexmonsterPivotTable.js
Module not found: Error: Can’t resolve ‘react-flexmonster’ in ‘/usr/share/kibana/plugins/flexmonster_pivot/public/components/flexmonster’
 
We are not sure this is going somewhere. Too much work to install this plugin.
Regards,
Alberto.

Public
Vera Didenko Flexmonster December 19, 2019

Hello, Alberto,
 
Thank you for the update.
 
Regarding the yarn problem, our team has prepared a separate Kibana plugin package that includes the required dependencies: https://flexmonster.s3.amazonaws.com/kibana/FLEXMONSTER-KIBANA-APUERTA-2019-12-19.zip

Please let us know if this works.
 
Looking forward to your reply.
 
Best regards,
Vera

Public
Alberto Puerta December 20, 2019

Hi Vera,
We had to unzip the file and copy everything inside a /kibana folder to be able to install it.
Now it is working and we can test your plugin, thank you very much!!!!
{“type”:”log”,”@timestamp”:”2019-12-20T08:53:46Z”,”tags”:[“info”,”optimize”],”pid”:8,”message”:”Optimizing and caching bundles for graph, monitoring, space_selector, login, overwritten_session, logout, logged_out, ml, dashboardViewer, apm, code, maps, canvas, infra, siem, uptime, flexmonster_pivot, kibana, stateSessionStorageRedirect, status_page and timelion. This may take a few minutes”}
{“type”:”log”,”@timestamp”:”2019-12-20T08:57:56Z”,”tags”:[“info”,”optimize”],”pid”:8,”message”:”Optimization of bundles for graph, monitoring, space_selector, login, overwritten_session, logout, logged_out, ml, dashboardViewer, apm, code, maps, canvas, infra, siem, uptime, flexmonster_pivot, kibana, stateSessionStorageRedirect, status_page and timelion complete in 249.32 seconds”}
{“type”:”log”,”@timestamp”:”2019-12-20T08:57:57Z”,”tags”:[“status”,”plugin:flexmonster_pivot@1.2.1″,”info”],”pid”:8,”state”:”green”,”message”:”Status changed from uninitialized to green – Ready”,”prevState”:”uninitialized”,”prevMsg”:”uninitialized”}
Regards,
Alberto

Public
Alberto Puerta December 20, 2019

 
 Hi Vera,
 We can see now your plugin in Kibana but we cannot select any index (see attached).
 CORS is configured in Kibana and in Elasticsearch (at least is in the configuration files).
 Do the indices in ES need an special mapping? special naming? is your plugin expecting an specific field? We do not see any errors nor warnings in Kibana or ES logs.
 Regards,
 Alberto.
 

Attachments:
Capture.PNG

Public
Vera Didenko Flexmonster December 23, 2019

Hello, Alberto, 
 
Thank you for the update.
 
We are glad to hear that you managed to install the plugin successfully.
 
Regarding no indexes appearing, we kindly suggest the following:

  1. Restarting Elasticsearch and Kibana.
  2. Assigning security privileges:
    Flexmonster sends the following requests:  
    GET /{index name}/_mapping – to get the fields in the index 
    POST /{index name}/_search – to get the data 

    In order to connect from Flexmonster to ES, the ES user requires permissions for the following actions:
    • indices:data/read/* – to read data
    • indices:admin/mappings/fields/get – to get mappings
    • indices:admin/mappings/get – to get mappings
    • cluster:monitor/state – to discover indices

    There is a possibility that the current user that is being used doesn’t have the necessary permissions.

    Our team kindly suggests assigning the needed security privileges, please see: https://www.elastic.co/guide/en/elasticsearch/reference/7.3/security-privileges.html

  3. Checking the browser dev console for additional information.

 
Please let us know if this helps to get everything working.
 
Looking forward to your answer.
 
Best regards, 
Vera

Please login or Register to Submit Answer