Duplicate ContentCollection's on pages

I’m getting the following exception if i run flow node:repair. I’m in the process to deploy an neos project from my local development server to an webhosting site.
I wondere where to start fixing this error.

Exception #1316451800 in line 316 of /usr/www/users/agaweb/neos/Neos-2.1.5/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_TYPO3CR_Domain_Service_NodeTypeManager.php: Node type “” does not exist

    41 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::loadNodeType("", array|125|)
    40 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::evaluateSuperTypeConfiguration("", TRUE, array|125|)
    39 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::evaluateSuperTypesConfiguration(array|6|, array|125|)
    38 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::loadNodeType("TYPO3.Neos.NodeTypes:ContentImageMixin", array|125|)
    37 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::evaluateSuperTypeConfiguration("TYPO3.Neos.NodeTypes:ContentImageMixin", TRUE, array|125|)
    36 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::evaluateSuperTypesConfiguration(array|2|, array|125|)
    35 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::loadNodeType("TYPO3.Neos.NodeTypes:Image", array|125|, NULL)
    34 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::loadNodeTypes()
    33 TYPO3\TYPO3CR\Domain\Service\NodeTypeManager_Original::getNodeType("unstructured")
    32 call_user_func_array(array|2|, array|1|)
    31 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("getNodeType", array|1|)
    30 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::getNodeType("unstructured")
    29 TYPO3\TYPO3CR\Domain\Model\AbstractNodeData::getNodeType()
    28 TYPO3\Flow\Persistence\Doctrine\Proxies\__CG__\TYPO3\TYPO3CR\Domain\Model\NodeData::getNodeType()
    27 TYPO3\TYPO3CR\Domain\Factory\NodeFactory_Original::createFromNodeData(TYPO3\Flow\Persistence\Doctrine\Proxies\__CG__\TYPO3\TYPO3CR\Domain\Model\NodeData, TYPO3\Neos\Domain\Service\ContentContext)
    26 call_user_func_array(array|2|, array|2|)
    25 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("createFromNodeData", array|2|)
    24 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::createFromNodeData(TYPO3\Flow\Persistence\Doctrine\Proxies\__CG__\TYPO3\TYPO3CR\Domain\Model\NodeData, TYPO3\Neos\Domain\Service\ContentContext)
    23 TYPO3\TYPO3CR\Domain\Service\Context_Original::getNode("/sites")

Circumvented the error by bootstraping the site with the composer.json from my development server first. Then I copied the site folder and afterwards im imported the data. I’d still be interested how to analyse the nodes based on such an error message.

Also there is one other issue now. The ContentCollections from the page template now showup twice in the backend.

The collections on newly created pages only showup once. Cleaning the cache and removing Data\Temporary* does not fix this. Neighter does flow node:repair.

I found the duplicate ContenCollection nodes also show up on my development site. Looking into the XML file from the site export i can see an variant (language de) for these collections.
I had tried to add a second language (german) following these docs Multiple Languages - Content Dimensions - Content Repository - Manual - Guide - Neos Docs, received below error message so i had removed the content dimension and ran ./flow node:migrate 20150716212459 again (this time whithout error messages).

./flow node:migrate 20150716212459

Comments
Migrate from some node dimensions to default dimension values, adding missing
dimension default values.

Successfully applied migration.
An exception occurred while executing ‘UPDATE typo3_typo3cr_domain_model_nodedata SET dimensionshash = ?, dimensionvalues = ?, lastmodificationdatetime = ?, version = version + 1 WHERE persistence_object_identifier = ?
AND version = ?’ with params [“fb11fdde869d0a8fcfe00a2fd35c031d”, “{\n
"language": {\n "0": "de"\n }\n}”, “2016-04-13 09:07:37”,
“17d17ce5-1f90-4e13-a48f-623f170285b6”, 7]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
‘680efc82c7a1835ffa9712bb13727b53-live-fb11fdde869d0a8fcfe00a2fd3’ for
key ‘UNIQ_60A956B92DBEC7578D94001992F8FB01’

Type: Doctrine\DBAL\Exception\UniqueConstraintViolationException
File: Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriv
er.php
Line: 66

Nested exception:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘680efc82c7a1835ffa9712bb13727b53-live-fb11fdde869d0a8fcfe00a2fd3’ for key ‘UNIQ_60A956B92DBEC7578D94001992F8FB01’

Type: Doctrine\DBAL\Driver\PDOException
Code: 23000
File: Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
Line: 93

Nested exception:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘680efc82c7a1835ffa9712bb13727b53-live-fb11fdde869d0a8fcfe00a2fd3’ for key ‘UNIQ_60A956B92DBEC7578D94001992F8FB01’

Type: PDOException
Code: 23000
File: Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
Line: 91

If i remove the language de variant nodes from the xml file and reimport the site the duplicate nodes are gone, so i will fix it with an xls transformation and an reimport.

Update: Was abit more difficult some content had no language dimenson some had de dimension, so i had to fix it manual. It’s working now. Is there an flow migrate script to merge language dimensions for nodes?