Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling console on deb install causes "EACCES: permission denied on graph.entry.js" #10705

Closed
nellicus opened this issue Mar 3, 2017 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@nellicus
Copy link
Contributor

nellicus commented Mar 3, 2017

Kibana version:
5.2.2

Elasticsearch version:
N/A

Server OS version:
debian 7.9

Browser version:
N/A

Browser OS version:
N/A

Original install method (e.g. download page, yum, from source, etc.):
Debian package

Description of the problem including expected versus actual behavior:
File permission error after disabling console

Steps to reproduce:
follow https://www.elastic.co/guide/en/kibana/current/deb.html + disable console (console.enabled: false) as per docs

elk@elastic:~$ uname -a
Linux elastic 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux
elk@elastic:~$ cat /etc/debian_version
7.9
elk@elastic:~$ dpkg -l | egrep kibana
ii  kibana                                5.2.2                              amd64        Explore and visualize your Elasticsearch data
elk@elastic:~$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
OK
elk@elastic:~$ dpkg -l | egrep apt-transport-https
ii  apt-transport-https                   0.9.7.9+deb7u7                     amd64        https download transport for APT
elk@elastic:~$ cat /etc/apt/sources.list.d/elastic-5.x.list
deb https://artifacts.elastic.co/packages/5.x/apt stable main
elk@elastic:~$ sudo apt-get update && sudo apt-get install kibana
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://ftp.nl.debian.org wheezy Release.gpg
Hit http://ftp.nl.debian.org wheezy-updates Release.gpg
Hit https://artifacts.elastic.co stable Release.gpg
Hit http://ftp.nl.debian.org wheezy Release
Hit https://artifacts.elastic.co stable Release
Hit https://artifacts.elastic.co stable/main amd64 Packages
Hit http://ftp.nl.debian.org wheezy-updates Release
Hit http://ftp.nl.debian.org wheezy/main Sources
Hit http://ftp.nl.debian.org wheezy/main amd64 Packages
Hit http://ftp.nl.debian.org wheezy/main Translation-en
Hit http://ftp.nl.debian.org wheezy-updates/main Sources
Hit http://ftp.nl.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit http://ftp.nl.debian.org wheezy-updates/main Translation-en/DiffIndex
Ign https://artifacts.elastic.co stable/main Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  kibana
0 upgraded, 1 newly installed, 0 to remove and 244 not upgraded.
Need to get 0 B/39.3 MB of archives.
After this operation, 149 MB of additional disk space will be used.
Selecting previously unselected package kibana.
(Reading database ... 143843 files and directories currently installed.)
Unpacking kibana (from .../kibana_5.2.2_amd64.deb) ...
Setting up kibana (5.2.2) ...
elk@elastic:~$ sudo /usr/share/kibana/bin/kibana-plugin install x-pack
Attempting to transfer from x-pack
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-5.2.2.zip
Transferring 108045644 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete
elk@elastic:~$ ps -p1
  PID TTY          TIME CMD
    1 ?        00:00:00 init
elk@elastic:~$ sudo service kibana start
kibana started
elk@elastic:~$ sudo tail /var/log/kibana/kibana.stdout
{"type":"log","@timestamp":"2017-03-03T22:12:22Z","tags":["status","plugin:searchprofiler@5.2.2","error"],"pid":5279,"state":"red","message":"Status changed from uninitialized to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-03-03T22:12:22Z","tags":["status","plugin:tilemap@5.2.2","error"],"pid":5279,"state":"red","message":"Status changed from uninitialized to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-03-03T22:12:22Z","tags":["status","plugin:console@5.2.2","info"],"pid":5279,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-03-03T22:12:22Z","tags":["status","plugin:timelion@5.2.2","info"],"pid":5279,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-03-03T22:12:22Z","tags":["listening","info"],"pid":5279,"message":"Server running at http://localhost:5601"}
{"type":"log","@timestamp":"2017-03-03T22:12:22Z","tags":["status","ui settings","error"],"pid":5279,"state":"red","message":"Status changed from uninitialized to red - Elasticsearch plugin is red","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-03-03T22:12:23Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2017-03-03T22:12:23Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"No living connections"}
{"type":"log","@timestamp":"2017-03-03T22:12:25Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2017-03-03T22:12:25Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"No living connections"}
elk@elastic:~$ sudo service kibana stop
kibana stopped.
elk@elastic:~$ echo "console.enabled: false" | sudo tee -a /etc/kibana/kibana.yml
console.enabled: false
elk@elastic:~$ tail -1 /etc/kibana/kibana.yml
console.enabled: false
elk@elastic:~$ sudo service kibana start
kibana started
elk@elastic:~$ sudo tail /var/log/kibana/kibana.stdout
{"type":"log","@timestamp":"2017-03-03T22:12:26Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"No living connections"}
{"type":"log","@timestamp":"2017-03-03T22:12:28Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2017-03-03T22:12:28Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"No living connections"}
{"type":"log","@timestamp":"2017-03-03T22:12:28Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2017-03-03T22:12:28Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"No living connections"}
{"type":"log","@timestamp":"2017-03-03T22:12:31Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2017-03-03T22:12:31Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"No living connections"}
{"type":"log","@timestamp":"2017-03-03T22:12:31Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2017-03-03T22:12:31Z","tags":["warning","elasticsearch","admin"],"pid":5279,"message":"No living connections"}
{"type":"log","@timestamp":"2017-03-03T22:13:12Z","tags":["fatal"],"pid":5394,"level":"fatal","message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","error":{"message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","name":"Error","stack":"Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'\n    at Error (native)","code":"EACCES"}}

Errors in browser console (if relevant):

["fatal"],"pid":5394,"level":"fatal","message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","error":{"message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","name":"Error","stack":"Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'\n    at Error (native)","code":"EACCES"}}

Provide logs and/or server output (if relevant):
see above

@nellicus nellicus added the bug Fixes for quality problems that affect the customer experience label Mar 3, 2017
@jbudz
Copy link
Member

jbudz commented Mar 3, 2017

Thanks for filing, this is likely a duplicate of #8818. Feel free to reopen if not.

@jbudz jbudz closed this as completed Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
None yet
Development

No branches or pull requests

2 participants