arangodb icon indicating copy to clipboard operation
arangodb copied to clipboard

arangorestore command terminated arangodb process

Open mathsyouth opened this issue 5 years ago • 0 comments
trafficstars

My Environment

  • ArangoDB Version: 3.6.7-1
  • Storage Engine: RocksDB
  • Deployment Mode: single instance
  • Deployment Strategy: ArangoDB Starter
  • Configuration: 1 machine
  • Infrastructure: own
  • Operating System: CentOS 7.3
  • Total RAM in your machine: 64Gb each
  • Disks in use: HDD

Component, Query & Data

Affected feature: arangorestore restores a database

AQL query (if applicable):

AQL explain and/or profile (if applicable):

Problem:

I created a database named "test" which has no collections and no edge collections.

I run the following code:

bin/arangorestore --server.endpoint tcp://127.0.0.1:8529 --server.name test --server.password test --server.authentication true --server.database test --input-directory "dump_db" --force-same-database true

The printed log on the screen is:

[13336] ERROR [e8e7a] {restore} Error while creating collection 'production': got invalid response from server: 'Connection closed by remote' while executing restoring collection with this payload: '{"index": [],"parameters":{"cacheEnabled":false,"deleted":false,"globallyUniquedId":"c10011700/","id":"10011700:......}
[13336] ERROR [cb69f] {restore} got invalid response from server: 'Connection closed by remote' while executing restoring collection with this payload: '{"indexes":[],....}'

There is also an INFO message in arangodb's arangod.log:

|INFO| Wait on 31818 returned component=arangodb core-dump=true signal="segmentation fault" trap-cause=-1
|INFO| Terminated single component=arangodb process=31818
|INFO| single has terminated component=arangodb
|INFO| restarting single component=arangodb
|INFO| Looking for a running instance of single on port 8529 componnent=arangodb
.......

However, if I created all the collections for the "test" database manually and then run the above commands, all the data was successfully loaded into arangodb. I don't know why.

Expected result:

The arangorestore could be executed successfully, without creating collections ahead of time.

mathsyouth avatar Oct 23 '20 15:10 mathsyouth