ArangoDB connection fail: Reached the end of the stream

9/21/2021

i am struggle with the first setup of a simple arangodb server therefore i use that config from the tutorial

apiVersion: "database.arangodb.com/v1alpha"
kind: "ArangoDeployment"
metadata:
  name: "arangodb"
spec:
  mode: Single

On client side i use com.github.goodforgod:micronaut-arangodb which bundles the arangodb-java-driver and integrates it into micronaut.

The connection settings are also pretty straight forward (application.yaml)

arangodb:
  hosts:
    - arangodb.default.svc:8529
  database: mydb
  user: myuser
  password: mypw

From the logs on client side i get that

2021-09-21 17:35:34,593 [scheduled-executor-thread-2] DEBUG com.arangodb.internal.ArangoDBImpl - ArangoDB Client is ready to use
2021-09-21 17:35:34,628 [scheduled-executor-thread-2] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Connection created
2021-09-21 17:35:34,628 [scheduled-executor-thread-2] DEBUG c.a.internal.net.ConnectionPoolImpl - Return Connection connection_1632245734627_0.2727626330130274
2021-09-21 17:35:34,630 [scheduled-executor-thread-2] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Open connection to host[addr=arangodb.default.svc,port=8529]
2021-09-21 17:35:34,689 [scheduled-executor-thread-2] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Connected to Socket[addr=arangodb.default.svc/10.0.5.236,port=8529,localport=44532]
2021-09-21 17:35:34,694 [scheduled-executor-thread-2] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Send velocystream protocol header to Socket[addr=arangodb.default.svc/10.0.5.236,port=8529,localport=44532]
2021-09-21 17:35:34,703 [scheduled-executor-thread-2] DEBUG c.a.i.v.VstCommunicationSync - Send Message (id=1, head=[1,1000,"plain","myuser","mypw"], body={})
2021-09-21 17:35:34,708 [scheduled-executor-thread-2] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Send chunk 1:1 from message 1
2021-09-21 17:35:34,712 [pool-3-thread-1] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Start Callable
2021-09-21 17:35:34,714 [pool-3-thread-1] ERROR c.a.i.v.internal.MessageStore - Reached the end of the stream.
java.io.IOException: Reached the end of the stream.
	at com.arangodb.internal.velocystream.internal.VstConnection.readBytesIntoBuffer(VstConnection.java:348)
	at com.arangodb.internal.velocystream.internal.VstConnection.readBytes(VstConnection.java:340)
	at com.arangodb.internal.velocystream.internal.VstConnection.readChunk(VstConnection.java:315)
	at com.arangodb.internal.velocystream.internal.VstConnection.lambda$open$0(VstConnection.java:212)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:831)
2021-09-21 17:35:34,716 [pool-3-thread-1] DEBUG c.a.i.v.internal.MessageStore - Exceptionally complete Message (id=1).
2021-09-21 17:35:34,717 [scheduled-executor-thread-2] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Close connection Socket[addr=arangodb.default.svc/10.0.5.236,port=8529,localport=44532]
2021-09-21 17:35:34,728 [pool-3-thread-1] DEBUG c.a.i.v.internal.VstConnection - [connection_1632245734627_0.2727626330130274]: Stop Callable

So it seems to me that he is able to open up a socket connection but fails afterwards for reading data. The server logs contains nothing.

So i am quite lost how to proceed with that issue? Any help is welcome Regards Oliver

-- IEE1394
arangodb
kubernetes
micronaut

0 Answers