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

Admin CLI doesn't return on Arangodb authentication errors #907

Closed
wajda opened this issue Jun 23, 2021 · 0 comments
Closed

Admin CLI doesn't return on Arangodb authentication errors #907

wajda opened this issue Jun 23, 2021 · 0 comments
Assignees
Milestone

Comments

@wajda
Copy link
Contributor

wajda commented Jun 23, 2021

The following exception is printed and the thread remains blocked indefinitely.

/usr/lib/jvm/java-11-amazon-corretto/bin/java -javaagent:/opt/idea-IU-203.7717.56/lib/idea_rt.jar=38393:/opt/idea-IU-203.7717.56/bin -Dfile.encoding=UTF-8 -classpath /home/wajda/Projects/spline/admin/target/classes:/home/wajda/Projects/spline/commons/target/classes:/home/wajda/.m2/repository/za/co/absa/commons/commons_2.12/0.0.26/commons_2.12-0.0.26.jar:/home/wajda/.m2/repository/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar:/home/wajda/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/wajda/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/home/wajda/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar:/home/wajda/.m2/repository/org/slf4s/slf4s-api_2.12/1.7.25/slf4s-api_2.12-1.7.25.jar:/home/wajda/.m2/repository/org/scala-graph/graph-core_2.12/1.12.5/graph-core_2.12-1.12.5.jar:/home/wajda/Projects/spline/persistence/target/classes:/home/wajda/.m2/repository/org/json4s/json4s-jackson_2.12/3.6.7/json4s-jackson_2.12-3.6.7.jar:/home/wajda/.m2/repository/org/json4s/json4s-core_2.12/3.6.7/json4s-core_2.12-3.6.7.jar:/home/wajda/.m2/repository/org/json4s/json4s-ast_2.12/3.6.7/json4s-ast_2.12-3.6.7.jar:/home/wajda/.m2/repository/org/json4s/json4s-scalap_2.12/3.6.7/json4s-scalap_2.12-3.6.7.jar:/home/wajda/.m2/repository/com/thoughtworks/paranamer/paranamer/2.8/paranamer-2.8.jar:/home/wajda/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.12.1/jackson-databind-2.12.1.jar:/home/wajda/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.12.1/jackson-annotations-2.12.1.jar:/home/wajda/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.12.1/jackson-core-2.12.1.jar:/home/wajda/.m2/repository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar:/home/wajda/.m2/repository/org/apache/httpcomponents/httpclient/4.5.10/httpclient-4.5.10.jar:/home/wajda/.m2/repository/org/apache/httpcomponents/httpcore/4.4.12/httpcore-4.4.12.jar:/home/wajda/.m2/repository/commons-codec/commons-codec/1.13/commons-codec-1.13.jar:/home/wajda/.m2/repository/org/springframework/spring-beans/5.2.2.RELEASE/spring-beans-5.2.2.RELEASE.jar:/home/wajda/.m2/repository/org/springframework/spring-core/5.2.2.RELEASE/spring-core-5.2.2.RELEASE.jar:/home/wajda/.m2/repository/org/springframework/spring-jcl/5.2.2.RELEASE/spring-jcl-5.2.2.RELEASE.jar:/home/wajda/.m2/repository/org/springframework/spring-context/5.2.2.RELEASE/spring-context-5.2.2.RELEASE.jar:/home/wajda/.m2/repository/org/springframework/spring-aop/5.2.2.RELEASE/spring-aop-5.2.2.RELEASE.jar:/home/wajda/.m2/repository/org/springframework/spring-expression/5.2.2.RELEASE/spring-expression-5.2.2.RELEASE.jar:/home/wajda/.m2/repository/com/arangodb/arangodb-java-driver/6.12.2/arangodb-java-driver-6.12.2.jar:/home/wajda/.m2/repository/com/arangodb/velocypack/2.5.3/velocypack-2.5.3.jar:/home/wajda/.m2/repository/com/arangodb/velocypack-module-scala_2.12/1.2.1/velocypack-module-scala_2.12-1.2.1.jar:/home/wajda/.m2/repository/org/scala-lang/modules/scala-java8-compat_2.12/0.9.0/scala-java8-compat_2.12-0.9.0.jar:/home/wajda/.m2/repository/com/github/scopt/scopt_2.12/4.0.1/scopt_2.12-4.0.1.jar:/home/wajda/.m2/repository/org/scala-lang/scala-reflect/2.12.13/scala-reflect-2.12.13.jar:/home/wajda/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/home/wajda/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/home/wajda/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/home/wajda/.m2/repository/org/scala-lang/scala-library/2.12.13/scala-library-2.12.13.jar za.co.absa.spline.admin.AdminCLI db-exec --foxx-reinstall arangodb://root@172.17.0.1/spline -l info
com.arangodb.ArangoDBException: Response: 401, Error: 401 - unauthorized
	at com.arangodb.internal.util.ResponseUtils.checkError(ResponseUtils.java:52)
	at com.arangodb.internal.velocystream.VstCommunication.checkError(VstCommunication.java:147)
	at com.arangodb.internal.velocystream.VstCommunicationSync.execute(VstCommunicationSync.java:130)
	at com.arangodb.internal.velocystream.VstCommunicationSync.authenticate(VstCommunicationSync.java:153)
	at com.arangodb.internal.velocystream.VstCommunicationSync.authenticate(VstCommunicationSync.java:44)
	at com.arangodb.internal.velocystream.VstCommunication.tryAuthenticate(VstCommunication.java:125)
	at com.arangodb.internal.velocystream.VstCommunication.connect(VstCommunication.java:92)
	at com.arangodb.internal.velocystream.VstCommunication.execute(VstCommunication.java:140)
	at com.arangodb.internal.velocystream.VstProtocol.execute(VstProtocol.java:46)
	at com.arangodb.internal.ArangoExecutorSync.execute(ArangoExecutorSync.java:71)
	at com.arangodb.internal.net.ExtendedHostResolver.resolveFromServer(ExtendedHostResolver.java:127)
	at com.arangodb.internal.net.ExtendedHostResolver.resolve(ExtendedHostResolver.java:85)
	at com.arangodb.internal.net.FallbackHostHandler.close(FallbackHostHandler.java:87)
	at com.arangodb.internal.net.DirtyReadHostHandler.close(DirtyReadHostHandler.java:75)
	at com.arangodb.internal.velocystream.VstCommunication.close(VstCommunication.java:136)
	at com.arangodb.async.internal.ArangoExecutorAsync.disconnect(ArangoExecutorAsync.java:74)
	at com.arangodb.async.internal.ArangoDBAsyncImpl.shutdown(ArangoDBAsyncImpl.java:84)
	at za.co.absa.spline.persistence.ArangoDatabaseFacade.destroy(ArangoDatabaseFacade.scala:67)
	at za.co.absa.spline.persistence.AutoClosingArangoManagerProxy$$anonfun$withManager$2.applyOrElse(AutoClosingArangoManagerProxy.scala:46)
	at za.co.absa.spline.persistence.AutoClosingArangoManagerProxy$$anonfun$withManager$2.applyOrElse(AutoClosingArangoManagerProxy.scala:45)
	at scala.concurrent.Future.$anonfun$andThen$1(Future.scala:536)
	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Exception in thread "main" java.util.concurrent.ExecutionException: com.arangodb.ArangoDBException: java.util.concurrent.ExecutionException: com.arangodb.ArangoDBException: Response: 401, Error: 401 - unauthorized
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
	at za.co.absa.spline.persistence.ArangoDatabaseFacade$.$anonfun$warmUpDb$1(ArangoDatabaseFacade.scala:81)
	at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:57)
	at scala.concurrent.package$.blocking(package.scala:146)
	at za.co.absa.spline.persistence.ArangoDatabaseFacade$.za$co$absa$spline$persistence$ArangoDatabaseFacade$$warmUpDb(ArangoDatabaseFacade.scala:84)
	at za.co.absa.spline.persistence.ArangoDatabaseFacade.db$lzycompute(ArangoDatabaseFacade.scala:62)
	at za.co.absa.spline.persistence.ArangoDatabaseFacade.db(ArangoDatabaseFacade.scala:60)
	at za.co.absa.spline.persistence.AutoClosingArangoManagerProxy.$anonfun$withManager$1(AutoClosingArangoManagerProxy.scala:42)
	at scala.util.Try$.apply(Try.scala:213)
	at za.co.absa.spline.persistence.AutoClosingArangoManagerProxy.withManager(AutoClosingArangoManagerProxy.scala:42)
	at za.co.absa.spline.persistence.AutoClosingArangoManagerProxy.execute(AutoClosingArangoManagerProxy.scala:37)
	at za.co.absa.spline.admin.AdminCLI.exec(AdminCLI.scala:173)
	at za.co.absa.spline.admin.AdminCLI$.delayedEndpoint$za$co$absa$spline$admin$AdminCLI$1(AdminCLI.scala:66)
	at za.co.absa.spline.admin.AdminCLI$delayedInit$body.apply(AdminCLI.scala:34)
	at scala.Function0.apply$mcV$sp(Function0.scala:39)
	at scala.Function0.apply$mcV$sp$(Function0.scala:39)
	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
	at scala.App.$anonfun$main$1$adapted(App.scala:80)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at scala.App.main(App.scala:80)
	at scala.App.main$(App.scala:78)
	at za.co.absa.spline.admin.AdminCLI$.main(AdminCLI.scala:34)
	at za.co.absa.spline.admin.AdminCLI.main(AdminCLI.scala)
Caused by: com.arangodb.ArangoDBException: java.util.concurrent.ExecutionException: com.arangodb.ArangoDBException: Response: 401, Error: 401 - unauthorized
	at com.arangodb.async.internal.velocystream.VstCommunicationAsync.authenticate(VstCommunicationAsync.java:124)
	at com.arangodb.async.internal.velocystream.VstCommunicationAsync.authenticate(VstCommunicationAsync.java:47)
	at com.arangodb.internal.velocystream.VstCommunication.tryAuthenticate(VstCommunication.java:125)
	at com.arangodb.internal.velocystream.VstCommunication.connect(VstCommunication.java:92)
	at com.arangodb.internal.velocystream.VstCommunication.execute(VstCommunication.java:140)
	at com.arangodb.async.internal.ArangoExecutorAsync.lambda$execute$2(ArangoExecutorAsync.java:69)
	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.util.concurrent.ExecutionException: com.arangodb.ArangoDBException: Response: 401, Error: 401 - unauthorized
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
	at com.arangodb.async.internal.velocystream.VstCommunicationAsync.authenticate(VstCommunicationAsync.java:122)
	... 10 more
Caused by: com.arangodb.ArangoDBException: Response: 401, Error: 401 - unauthorized
	at com.arangodb.internal.util.ResponseUtils.checkError(ResponseUtils.java:52)
	at com.arangodb.internal.velocystream.VstCommunication.checkError(VstCommunication.java:147)
	at com.arangodb.async.internal.velocystream.VstCommunicationAsync.lambda$execute$1(VstCommunicationAsync.java:74)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:883)
	at java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2251)
	at com.arangodb.async.internal.velocystream.VstCommunicationAsync.execute(VstCommunicationAsync.java:62)
	at com.arangodb.async.internal.velocystream.VstCommunicationAsync.authenticate(VstCommunicationAsync.java:121)
	... 10 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant