I have Kibana 6.0.0 installed on a shared read-only file system and looks like kibana does not like this and refuses to start up due to the below error:
fs.js:642
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EROFS: read-only file system, open 'path/kibana/6.0.0-build001/common/optimize/.babelcache.json'
at Error (native)
at Object.fs.openSync (fs.js:642:18)
at Object.fs.writeFileSync (fs.js:1348:33)
at save (path/kibana/6.0.0-build001/common/node_modules/babel-register/lib/cache.js:45:16)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:383:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:496:3
Is this a known issue and is there a way to work around this?
I checked with some of the other other engineers, and the general consensus is that this sounds like something worth trying out, but we haven't tried it ourselves nor do we actively test this scenario so you'll be in uncharted territory. You're welcome to try it out, and we'd love to hear how it goes, but we don't know if you'll run into problems.
So looks like the method above works and Kibana starts up fine for only Kibana 5.6.x and maybe earlier versions.
However, for 6.0.x, although the above does get me through the babel error, a subsequent error is thrown:
{"type":"error","@timestamp":"2017-12-13T11:26:25Z","tags":["fatal"],"pid":8950,"level":"fatal","error":{"message":"EROFS: read-only file system, open '/path/optimize/bundles/graph.entry.js'","name":"Error","stack":"Error: EROFS: read-only file system, open '/path/optimize/bundles/graph.entry.js'\n at Error (native)","code":"EROFS"},"message":"EROFS: read-only file system, open '/path/optimize/bundles/graph.entry.js'"}
We use the official RPMs and notice that Kibana wants to write to /usr/share/kibana. This messes up our security measures because we follow the recommendations of FHS and Red Hat in assuming that /usr is read-only:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.