Hi,
I tried to transfer a project from one machine to another. As sugested in What is the best method for transferring a local Neos project to an online server? I executed ./flow site:export --package-key TH.Blog
which completed without an error.
When I try to import the project on the other machine (freshly installed neos) importing fails:
./flow site:import --package-key=TH.Blog
Error: During the import of the "Sites.xml" from the package "TH.Blog" an exception occurred: Error: During import an exception occurred:
"An exception occurred while executing
'INSERT INTO typo3_typo3cr_domain_model_nodedata (
Persistence_Object_Identifier,
identifier,
nodeType,
workspace,
sortingIndex,
version,
removed,
hidden,
hiddenInIndex,
path,
pathHash,
parentPath,
parentPathHash,
dimensionsHash,
dimensionValues,
properties,
creationDateTime,
lastModificationDateTime,
accessRoles
)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'
with params [
"f1f8c1c9-5a1c-4fa0-804f-9185df1f6440",
"166366b0-97f3-448c-b523-5746222ab719",
"TYPO3.Neos.NodeTypes:Page",
"live",
"100",
"1",
false,
false,
false,
"\/sites\/blog",
"24a5582558345283318d4b26b04f8b37",
"\/sites",
"dbd87ae51cbf5240fea77283585e69d5",
"4f534b1eb0c1a785da31e681fb5e91ff",
"{\n \"language\": {\n \"0\": \"en_US\"\n }\n}", "{\n \"title\": \"Home\",\n \"uriPathSegment\": \"home\"\n}",
"2016-07-22 21:53:18", "2016-07-22 21:53:18", "{}"
]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24a5582558345283318d4b26b04f8b37-live-4f534b1eb0c1a785da31e681fb' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'".
see log for further information.
Error Log:
Exception #1300360480: Error: During import an exception occurred: "An exception occurred while executing 'INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, creationDateTime, lastModificationDateTime, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["83e5b262-53f4-4ea0-86c0-6956a1dcb25a", "166366b0-97f3-448c-b523-5746222ab719", "TYPO3.Neos.NodeTypes:Page", "live", "100", "1", false, false, false, "\/sites\/blog", "24a5582558345283318d4b26b04f8b37", "\/sites", "dbd87ae51cbf5240fea77283585e69d5", "4f534b1eb0c1a785da31e681fb5e91ff", "{\n \"language\": {\n \"0\": \"en_US\"\n }\n}", "{\n \"title\": \"Home\",\n \"uriPathSegment\": \"home\"\n}", "2016-07-22 21:53:18", "2016-07-22 21:53:18", "{}"]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24a5582558345283318d4b26b04f8b37-live-4f534b1eb0c1a785da31e681fb' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'".
23 TYPO3\Neos\Domain\Service\SiteImportService_Original::importFromPackage("TH.Blog")
22 call_user_func_array(array|2|, array|1|)
21 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("importFromPackage", array|1|)
20 TYPO3\Neos\Command\SiteCommandController_Original::importCommand("TH.Blog", NULL)
19 call_user_func_array(array|2|, array|2|)
18 TYPO3\Flow\Cli\CommandController_Original::callCommandMethod()
17 TYPO3\Flow\Cli\CommandController_Original::processRequest(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
16 TYPO3\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
15 TYPO3\Flow\Mvc\Dispatcher_Original::dispatch(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
14 TYPO3\Flow\Cli\CommandRequestHandler::TYPO3\Flow\Cli\{closure}()
13 Closure::__invoke()
12 TYPO3\Flow\Security\Context_Original::withoutAuthorizationChecks(Closure)
11 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
10 call_user_func_array(array|2|, array|1|)
9 TYPO3\Flow\Security\Context::Flow_Aop_Proxy_invokeJoinPoint(TYPO3\Flow\Aop\JoinPoint)
8 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
7 TYPO3\Flow\Session\Aspect\LazyLoadingAspect_Original::callMethodOnOriginalSessionObject(TYPO3\Flow\Aop\JoinPoint)
6 TYPO3\Flow\Aop\Advice\AroundAdvice::invoke(TYPO3\Flow\Aop\JoinPoint)
5 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
4 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
3 TYPO3\Flow\Cli\CommandRequestHandler::handleRequest()
2 TYPO3\Flow\Core\Bootstrap::run()
1 require("/var/www/html/stammprojekte/Packages/Framework/TYPO3.Flow/Scripts/flow.php")
Previous exception: Exception in line 128 of /var/www/html/stammprojekte/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php: An exception occurred while executing 'INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, creationDateTime, lastModificationDateTime, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["83e5b262-53f4-4ea0-86c0-6956a1dcb25a", "166366b0-97f3-448c-b523-5746222ab719", "TYPO3.Neos.NodeTypes:Page", "live", "100", "1", false, false, false, "\/sites\/blog", "24a5582558345283318d4b26b04f8b37", "\/sites", "dbd87ae51cbf5240fea77283585e69d5", "4f534b1eb0c1a785da31e681fb5e91ff", "{\n \"language\": {\n \"0\": \"en_US\"\n }\n}", "{\n \"title\": \"Home\",\n \"uriPathSegment\": \"home\"\n}", "2016-07-22 21:53:18", "2016-07-22 21:53:18", "{}"]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24a5582558345283318d4b26b04f8b37-live-4f534b1eb0c1a785da31e681fb' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'
37 Doctrine\DBAL\Driver\AbstractMySQLDriver::convertException("An exception occurred while executing 'INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, creationDateTime, lastModificationDateTime, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["83e5b262-53f4-4ea0-86c0-6956a1dcb25a", "166366b0-97f3-448c-b523-5746222ab719", "TYPO3.Neos.NodeTypes:Page", "live", "100", "1", false, false, false, "\/sites\/blog", "24a5582558345283318d4b26b04f8b37", "\/sites", "dbd87ae51cbf5240fea77283585e69d5", "4f534b1eb0c1a785da31e681fb5e91ff", "{\n \"language\": {\n \"0\": \"en_US\"\n }\n}", "{\n \"title\": \"Home\",\n \"uriPathSegment\": \"home\"\n}", "2016-07-22 21:53:18", "2016-07-22 21:53:18", "{}"]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24a5582558345283318d4b26b04f8b37-live-4f534b1eb0c1a785da31e681fb' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'", Doctrine\DBAL\Driver\PDOException)
36 Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Doctrine\DBAL\Driver\PDOMySql\Driver, Doctrine\DBAL\Driver\PDOException, "INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, creationDateTime, lastModificationDateTime, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", array|19|)
35 Doctrine\DBAL\Connection::executeUpdate("INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, creationDateTime, lastModificationDateTime, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", array|19|, array|19|)
34 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::persistNodeData(array|19|)
33 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::parseEndElement(XMLReader)
32 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::importSubtree(XMLReader)
31 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::TYPO3\TYPO3CR\Domain\Service\ImportExport\{closure}()
30 Closure::__invoke()
29 TYPO3\Flow\Security\Context_Original::withoutAuthorizationChecks(Closure)
28 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
27 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::import(XMLReader, "/sites", "resource://TH.Blog/Private/Content/Resources")
26 call_user_func_array(array|2|, array|3|)
25 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("import", array|3|)
24 TYPO3\Neos\Domain\Service\SiteImportService_Original::importFromFile("resource://TH.Blog/Private/Content/Sites.xml")
23 TYPO3\Neos\Domain\Service\SiteImportService_Original::importFromPackage("TH.Blog")
22 call_user_func_array(array|2|, array|1|)
21 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("importFromPackage", array|1|)
20 TYPO3\Neos\Command\SiteCommandController_Original::importCommand("TH.Blog", NULL)
19 call_user_func_array(array|2|, array|2|)
18 TYPO3\Flow\Cli\CommandController_Original::callCommandMethod()
17 TYPO3\Flow\Cli\CommandController_Original::processRequest(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
16 TYPO3\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
15 TYPO3\Flow\Mvc\Dispatcher_Original::dispatch(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
14 TYPO3\Flow\Cli\CommandRequestHandler::TYPO3\Flow\Cli\{closure}()
13 Closure::__invoke()
12 TYPO3\Flow\Security\Context_Original::withoutAuthorizationChecks(Closure)
11 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
10 call_user_func_array(array|2|, array|1|)
9 TYPO3\Flow\Security\Context::Flow_Aop_Proxy_invokeJoinPoint(TYPO3\Flow\Aop\JoinPoint)
8 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
7 TYPO3\Flow\Session\Aspect\LazyLoadingAspect_Original::callMethodOnOriginalSessionObject(TYPO3\Flow\Aop\JoinPoint)
6 TYPO3\Flow\Aop\Advice\AroundAdvice::invoke(TYPO3\Flow\Aop\JoinPoint)
5 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
4 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
3 TYPO3\Flow\Cli\CommandRequestHandler::handleRequest()
2 TYPO3\Flow\Core\Bootstrap::run()
1 require("/var/www/html/stammprojekte/Packages/Framework/TYPO3.Flow/Scripts/flow.php")
Previous exception: Exception #23000 in line 987 of /var/www/html/stammprojekte/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Connection.php: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24a5582558345283318d4b26b04f8b37-live-4f534b1eb0c1a785da31e681fb' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'
36 Doctrine\DBAL\Driver\PDOStatement::execute()
35 Doctrine\DBAL\Connection::executeUpdate("INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, creationDateTime, lastModificationDateTime, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", array|19|, array|19|)
34 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::persistNodeData(array|19|)
33 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::parseEndElement(XMLReader)
32 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::importSubtree(XMLReader)
31 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::TYPO3\TYPO3CR\Domain\Service\ImportExport\{closure}()
30 Closure::__invoke()
29 TYPO3\Flow\Security\Context_Original::withoutAuthorizationChecks(Closure)
28 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
27 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::import(XMLReader, "/sites", "resource://TH.Blog/Private/Content/Resources")
26 call_user_func_array(array|2|, array|3|)
25 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("import", array|3|)
24 TYPO3\Neos\Domain\Service\SiteImportService_Original::importFromFile("resource://TH.Blog/Private/Content/Sites.xml")
23 TYPO3\Neos\Domain\Service\SiteImportService_Original::importFromPackage("TH.Blog")
22 call_user_func_array(array|2|, array|1|)
21 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("importFromPackage", array|1|)
20 TYPO3\Neos\Command\SiteCommandController_Original::importCommand("TH.Blog", NULL)
19 call_user_func_array(array|2|, array|2|)
18 TYPO3\Flow\Cli\CommandController_Original::callCommandMethod()
17 TYPO3\Flow\Cli\CommandController_Original::processRequest(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
16 TYPO3\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
15 TYPO3\Flow\Mvc\Dispatcher_Original::dispatch(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
14 TYPO3\Flow\Cli\CommandRequestHandler::TYPO3\Flow\Cli\{closure}()
13 Closure::__invoke()
12 TYPO3\Flow\Security\Context_Original::withoutAuthorizationChecks(Closure)
11 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
10 call_user_func_array(array|2|, array|1|)
9 TYPO3\Flow\Security\Context::Flow_Aop_Proxy_invokeJoinPoint(TYPO3\Flow\Aop\JoinPoint)
8 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
7 TYPO3\Flow\Session\Aspect\LazyLoadingAspect_Original::callMethodOnOriginalSessionObject(TYPO3\Flow\Aop\JoinPoint)
6 TYPO3\Flow\Aop\Advice\AroundAdvice::invoke(TYPO3\Flow\Aop\JoinPoint)
5 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
4 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
3 TYPO3\Flow\Cli\CommandRequestHandler::handleRequest()
2 TYPO3\Flow\Core\Bootstrap::run()
1 require("/var/www/html/stammprojekte/Packages/Framework/TYPO3.Flow/Scripts/flow.php")
Previous exception: Exception #23000 in line 91 of /var/www/html/stammprojekte/Packages/Libraries/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24a5582558345283318d4b26b04f8b37-live-4f534b1eb0c1a785da31e681fb' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'
37 PDOStatement::execute(NULL)
36 Doctrine\DBAL\Driver\PDOStatement::execute()
35 Doctrine\DBAL\Connection::executeUpdate("INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, creationDateTime, lastModificationDateTime, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", array|19|, array|19|)
34 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::persistNodeData(array|19|)
33 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::parseEndElement(XMLReader)
32 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::importSubtree(XMLReader)
31 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::TYPO3\TYPO3CR\Domain\Service\ImportExport\{closure}()
30 Closure::__invoke()
29 TYPO3\Flow\Security\Context_Original::withoutAuthorizationChecks(Closure)
28 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
27 TYPO3\TYPO3CR\Domain\Service\ImportExport\NodeImportService_Original::import(XMLReader, "/sites", "resource://TH.Blog/Private/Content/Resources")
26 call_user_func_array(array|2|, array|3|)
25 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("import", array|3|)
24 TYPO3\Neos\Domain\Service\SiteImportService_Original::importFromFile("resource://TH.Blog/Private/Content/Sites.xml")
23 TYPO3\Neos\Domain\Service\SiteImportService_Original::importFromPackage("TH.Blog")
22 call_user_func_array(array|2|, array|1|)
21 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("importFromPackage", array|1|)
20 TYPO3\Neos\Command\SiteCommandController_Original::importCommand("TH.Blog", NULL)
19 call_user_func_array(array|2|, array|2|)
18 TYPO3\Flow\Cli\CommandController_Original::callCommandMethod()
17 TYPO3\Flow\Cli\CommandController_Original::processRequest(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
16 TYPO3\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
15 TYPO3\Flow\Mvc\Dispatcher_Original::dispatch(TYPO3\Flow\Cli\Request, TYPO3\Flow\Cli\Response)
14 TYPO3\Flow\Cli\CommandRequestHandler::TYPO3\Flow\Cli\{closure}()
13 Closure::__invoke()
12 TYPO3\Flow\Security\Context_Original::withoutAuthorizationChecks(Closure)
11 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
10 call_user_func_array(array|2|, array|1|)
9 TYPO3\Flow\Security\Context::Flow_Aop_Proxy_invokeJoinPoint(TYPO3\Flow\Aop\JoinPoint)
8 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
7 TYPO3\Flow\Session\Aspect\LazyLoadingAspect_Original::callMethodOnOriginalSessionObject(TYPO3\Flow\Aop\JoinPoint)
6 TYPO3\Flow\Aop\Advice\AroundAdvice::invoke(TYPO3\Flow\Aop\JoinPoint)
5 TYPO3\Flow\Aop\Advice\AdviceChain::proceed(TYPO3\Flow\Aop\JoinPoint)
4 TYPO3\Flow\Security\Context::withoutAuthorizationChecks(Closure)
3 TYPO3\Flow\Cli\CommandRequestHandler::handleRequest()
2 TYPO3\Flow\Core\Bootstrap::run()
1 require("/var/www/html/stammprojekte/Packages/Framework/TYPO3.Flow/Scripts/flow.php")
Why does this error occur and how can I fix it?
Regards