ROR 1.19.1won't start (1.8.0_262-b10, es5.6.16)

ROR 1.19.1 on ES 5.6.16 won’t start after Java was upgraded from 1.8.0_252-b09 to 1.8.0_252-b10.

I tried ROR 1.21 and it has the same problem of failing to start with java 1.8.0_252-b10.

Can a new version of ROR for es5.6.16 be built for java 1.8.0_252-b10?

Here is the log:

[ERROR][t.b.r.e.IndexLevelActionFilter] [XXXXXXXXX] ROR starting failure:
tech.beshu.ror.exceptions$StartingFailureException: Cannot start ReadonlyREST
at tech.beshu.ror.exceptions$StartingFailureException$.from(exceptions.scala:39) ~[?:?]
at tech.beshu.ror.es.IndexLevelActionFilter.$anonfun$startRorInstance$2(IndexLevelActionFilter.scala:157) ~[?:?]
at tech.beshu.ror.es.IndexLevelActionFilter.$anonfun$startRorInstance$2$adapted(IndexLevelActionFilter.scala:148) ~[?:?]
at monix.execution.Callback$$anon$2.tryApply(Callback.scala:296) [?:3.0.0]
at monix.execution.Callback$$anon$2.apply(Callback.scala:289) [?:3.0.0]
at monix.execution.Callback$$anon$2.onError(Callback.scala:286) [?:3.0.0]
at monix.eval.internal.TaskRunLoop$.startFull(TaskRunLoop.scala:108) [?:3.0.0]
at monix.eval.internal.TaskRestartCallback.syncOnError(TaskRestartCallback.scala:109) [?:3.0.0]
at monix.eval.internal.TaskRestartCallback.onError(TaskRestartCallback.scala:84) [?:3.0.0]
at monix.eval.internal.TaskRestartCallback.onError(TaskRestartCallback.scala:27) [?:3.0.0]
at monix.eval.internal.TaskExecuteOn$AsyncRegister$$anon$1.run(TaskExecuteOn.scala:70) [?:3.0.0]
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) [?:1.8.0_262]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_262]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_262]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_262]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:163) [?:1.8.0_262]
Caused by: java.security.AccessControlException: access denied (“java.io.FilePermission” “/data/elastic5616/etc/readonlyrest.yml” “read”)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:1.8.0_262]
at java.security.AccessController.checkPermission(AccessController.java:886) ~[?:1.8.0_262]
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) ~[?:1.8.0_262]
at java.lang.SecurityManager.checkRead(SecurityManager.java:888) ~[?:1.8.0_262]
at sun.nio.fs.UnixPath.checkRead(UnixPath.java:795) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.checkAccess(UnixFileSystemProvider.java:290) ~[?:?]
at java.nio.file.Files.exists(Files.java:2385) ~[?:1.8.0_262]
at better.files.File.exists(File.scala:208) ~[?:?]
at tech.beshu.ror.configuration.FileConfigLoader.checkIfFileExist(FileConfigLoader.scala:52) ~[?:?]
at tech.beshu.ror.configuration.FileConfigLoader.load(FileConfigLoader.scala:46) ~[?:?]
at tech.beshu.ror.boot.ReadonlyRest.loadRorConfigFromFile(ReadonlyRest.scala:146) ~[?:?]
at tech.beshu.ror.boot.ReadonlyRest.$anonfun$startRor$4(ReadonlyRest.scala:135) ~[?:?]
at tech.beshu.ror.boot.ReadonlyRest.$anonfun$loadRorConfigFromIndex$2(ReadonlyRest.scala:195) ~[?:?]
at monix.eval.internal.TaskRunLoop$.startFull(TaskRunLoop.scala:170) ~[?:?]

Looks like a file permission/ownership issue

see this thread: Readonlyrest for elastic won't start (1.18.8_es6.8.1) - #21 by lucette

After our hosting team downgraded java from 1.8.0_252-b10 to 1.8.0_252-b09, ROR 1.191.1 (es5.6.16) can start successfully.

Can we get ROR to work with 1.8.0_252-b10?

we have scheduled it in our jira in current sprint. At the moment I cannot say much about it. I keep you posted

I saw that you released a new 1.22 ROR version but I don’t see hints of a fix for the startup problem, did you manage to fix it ?
Thanks

Thanks. Which release of ROR will have the fix for Java 1.8.0_252-b10? Our hosting team needs an estimate of how long our prod system will need the exemption of staying 1.8.0_252-b09.

It seems we found the workaround. Should be ready to test this week. Stay tuned

@zhuomingao here is a prebuild for you to test:

https://readonlyrest-data.s3.amazonaws.com/build/1.23.0-pre6/readonlyrest-1.23.0-pre6_es5.6.16.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA5SJIWBO54AGBERLX/20200910/eu-west-1/s3/aws4_request&X-Amz-Date=20200910T133744Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=048a74e9cd9ff12703b8841965aeb4c008acbd1e0f8f3af684836e7f49d6d26f

1 Like

Hi Mateusz, I tested this prebuild with Java 25.262-b10, and the plugin can start up successfully now.

1 Like