{"action":"closed","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/1556","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/1556/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/1556/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/1556/events","html_url":"https://github.com/arangodb/arangodb/issues/1556","id":114671442,"number":1556,"title":"Export-Store: collection name mismatch in collection structure file","user":{"login":"aurelijusb","id":1453957,"avatar_url":"https://avatars.githubusercontent.com/u/1453957?v=3","gravatar_id":"","url":"https://api.github.com/users/aurelijusb","html_url":"https://github.com/aurelijusb","followers_url":"https://api.github.com/users/aurelijusb/followers","following_url":"https://api.github.com/users/aurelijusb/following{/other_user}","gists_url":"https://api.github.com/users/aurelijusb/gists{/gist_id}","starred_url":"https://api.github.com/users/aurelijusb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurelijusb/subscriptions","organizations_url":"https://api.github.com/users/aurelijusb/orgs","repos_url":"https://api.github.com/users/aurelijusb/repos","events_url":"https://api.github.com/users/aurelijusb/events{/privacy}","received_events_url":"https://api.github.com/users/aurelijusb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-02T19:53:35Z","updated_at":"2015-11-05T09:37:36Z","closed_at":"2015-11-05T09:37:36Z","body":"tl;dr\r\n-----\r\nCannot export `2.7.0` stable into `2.7.0-devel` (`b2bc61d02d8f335cb8395eba97026b40e17405fb`) using `arangodump` and `arangorestore`\r\n\r\nContext\r\n----------\r\n 2.7.0 has bug in Web Graph visualisation. Wanted to check if it is fixed in develop version.\r\n\r\nSteps to reproduce\r\n-------------------------\r\n\r\n* Store old data into `/var/lib/arangodb/databases`:  https://www.dropbox.com/s/w53nalad6ciwwh4/database-150862994665.tar.gz?dl=0\r\n* Run 2.7.0 on port 8530:\r\n```\r\n#!/bin/sh\r\n\r\nSBIN_DIR=/usr/sbin\r\nJS_DIR=/usr/share/arangodb\r\nDATA_DIR=/var/lib/arangodb\r\nENDPOINT=127.0.0.1:8530\r\nLOGS_DIR=/home/aurelijus/Documents/ArangoDBTests/INSTANCE3\r\n\r\n$SBIN_DIR/arangod $DATA_DIR --configuration none --server.endpoint \"tcp://$ENDPOINT\" --javascript.startup-directory $JS_DIR/js --javascript.app-path $DATA_DIR/app --log.file $LOGS_DIR/log\r\n```\r\n\r\n* Run 2.7.0 develop on port 8529\r\n```\r\n#!/bin/sh\r\nBIN_DIR=/some/directory/where/I/cloned/git/repository/arangodb\r\nDATA_DIR=/some/directory/where/I/wanted/to/dump/data\r\nENDPOINT=127.0.0.1:8529\r\n\r\n$BIN_DIR/bin/arangod $DATA_DIR --configuration none --server.endpoint \"tcp://$ENDPOINT\" --javascript.startup-directory $BIN_DIR/js --javascript.app-path $DATA_DIR/app --log.file $DATA_DIR/log\r\n```\r\n* Export from old database: \r\n```\r\n arangodump --log.level debug --server.endpoint=\"tcp://127.0.0.1:8530\" --server.database=multimodel --server.username=root\r\n```\r\n```\r\n2015-11-02T19:08:51Z [20556] DEBUG [arangosh/ArangoShell/ArangoClient.cpp:393] using init file '/etc/arangodb/arangodump.conf'\r\nPlease specify a password: \r\n2015-11-02T19:09:02Z [20556] DEBUG [lib/Rest/EndpointIp.cpp:353] connecting to ip endpoint 'tcp://127.0.0.1:8530'\r\nServer version: 2.7.0\r\nConnected to ArangoDB 'tcp://127.0.0.1:8530', database: 'multimodel', username: 'root'\r\nWriting dump to output directory '/home/aurelijus/Documents/ArangoDBTests/INSTANCE3/dump'\r\nLast tick provided by server is: 160285629927\r\ndumping collection 'Database'...\r\ndumping collection 'Type'...\r\ndumping collection 'ExampleOf'...\r\nProcessed 3 collection(s), wrote 20826 byte(s) into datafiles, sent 3 batch(es)\r\n```\r\nPassword of old database: `test321`\r\n* Files are saved: https://www.dropbox.com/s/u06t7r18n38qa2k/dump.tar.gz?dl=0\r\n* Trying to import fails:\r\n```\r\n/some/directory/where/I/cloned/git/repository/arangodb/bin/arangorestore --log.level debug --server.endpoint=\"tcp://127.0.0.1:8529\" --input-directory \"dump\"\r\n```\r\n```\r\n2015-11-02T19:09:32Z [20589] DEBUG [arangosh/ArangoShell/ArangoClient.cpp:375] no system init file '/usr/local/etc/arangodb/arangorestore.conf'\r\nPlease specify a password: \r\n2015-11-02T19:09:34Z [20589] DEBUG [lib/Rest/EndpointIp.cpp:353] connecting to ip endpoint 'tcp://127.0.0.1:8529'\r\nServer version: 2.7.0-devel\r\nConnected to ArangoDB 'tcp://127.0.0.1:8529\r\nProcessed 0 collection(s), read 0 byte(s) from datafiles, sent 0 batch(es)\r\ncollection name mismatch in collection structure file 'Type_' (offending value: 'Type')\r\n```\r\n\r\nEnvironment\r\n----------------\r\n```\r\narangod --version\r\narchitecture: 64bit\r\nbuild-date: 2015-10-13 22:17:34\r\nconfigure:  './configure' 'CC=gcc' 'CXX=g++' 'CFLAGS=-g -O3 -fomit-frame-pointer' 'CXXFLAGS=-g -O3 -fomit-frame-pointer' '--enable-gold' '--enable-tcmalloc' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-all-in-one-etcd' '--enable-internal-go'\r\nenv:  CFLAGS='-g -O3 -fomit-frame-pointer' CXXFLAGS='-g -O3 -fomit-frame-pointer' CC='gcc' CXX='g++'\r\nfd-client-event-handler: poll\r\nfd-setsize: 1024\r\nicu-version: 54.1\r\nlibev-version: 4.11\r\nmaintainer-mode: false\r\nopenssl-version: OpenSSL 1.0.1f 6 Jan 2014\r\nreadline-version: 6.3\r\nserver-version: 2.7.0\r\nsizeof int: 4\r\nsizeof void*: 8\r\ntcmalloc: true\r\nv8-version: 4.3.61\r\n```\r\n```\r\n/some/directory/where/I/cloned/git/repository/arangodb/bin/arangod --version\r\narchitecture: 64bit\r\nbuild-date: 2015-11-02 19:00:42\r\nconfigure:  './configure'\r\nfd-client-event-handler: poll\r\nfd-setsize: 1024\r\nicu-version: 54.1\r\nlibev-version: 4.11\r\nmaintainer-mode: false\r\nopenssl-version: OpenSSL 1.0.2d 9 Jul 2015\r\nreadline-version: unknown version\r\nrepository-version: heads/devel-0-gb2bc61d02d8f335cb8395eba97026b40e17405fb\r\nserver-version: 2.7.0-devel\r\nsizeof int: 4\r\nsizeof void*: 8\r\ntcmalloc: false\r\nv8-version: 4.3.61\r\n```\r\nOS: Ubuntu 15.10\r\n\r\nWorkaround\r\n----------------\r\n\r\nHard copy folder from `/var/lib/arangodb/databases` to new database data directory."}}