{"id":3988,"date":"2012-07-12T08:39:57","date_gmt":"2012-07-12T06:39:57","guid":{"rendered":"https:\/\/ingmarverheij.com\/?p=3988"},"modified":"2012-07-12T08:44:27","modified_gmt":"2012-07-12T06:44:27","slug":"install-citrix-appdna-with-quickdb-on-a-non-system-drive","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/install-citrix-appdna-with-quickdb-on-a-non-system-drive\/","title":{"rendered":"Install Citrix APPDNA with QuickDB on a non-system drive"},"content":{"rendered":"\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" align=\"right\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/AppDNA-logo2.jpg\" width=\"55\" height=\"92\" \/><\/p>\n<p>There are two installers available for Citrix AppDNA (former App-DNA Apptitude). Depending on how big of a download you want to obtain and distribute internally, you can choose any of those two. Both installers will result in the same product:<\/p>\n<ul>\n<li>AppDNA Enterprise Edition [288MB] <\/li>\n<li>AppDNA Enterprise Edition with Quick DB Install [659MB] <\/li>\n<\/ul>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Citrix-AppDNA-Operating-systems.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 0px 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" align=\"right\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Citrix-AppDNA-Operating-systems_thumb.png\" width=\"154\" height=\"63\" \/><\/a>The main difference between the two installers is that the \u2018with Quick DB install\u2019 includes a database dump of OS images, where you otherwise would have to download and import the OS images manually (which will take around 2 hours).<\/p>\n<p><!--more--><\/p>\n<h2>Database size<\/h2>\n<p>Citrix estimates that a base database (with no applications) requires around 3GB of disk space, adding the applications will cause the database to increase. 10GB is reasonable but needs to be considered.Microsoft SQL Server Express (limited to 10GB databases) can be used in a PoC environment.&#160; <em>Source: Citrix AppDNA 6.1 presentation.<\/em><\/p>\n<p>&#160;<\/p>\n<h2>PoC<\/h2>\n<p>I was setting up a demo environment so I choose the \u2018with Quick DB Install\u2019 and installed the product on a secondary drive (the system drive wouldn\u2019t have enough free space. All SQL databases are stored on the E: drive.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Disk-free-space.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Disk-free-space_thumb.png\" width=\"193\" height=\"104\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/SERVER01-Database-Settings.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/SERVER01-Database-Settings_thumb.png\" width=\"115\" height=\"104\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<h2>An error occurred<\/h2>\n<p>During the installation part where the Quick database is restored I got the error &quot;\u201d<em><strong>Restoring the Quick database failed<\/strong><\/em>\u201d and then the installation stopped. <\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Citrix-AppDNA-environment-An-error-occurred.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Citrix AppDNA environment - An error occurred\" border=\"0\" alt=\"Citrix AppDNA environment - An error occurred\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Citrix-AppDNA-environment-An-error-occurred_thumb.png\" width=\"304\" height=\"205\" \/><\/a><\/p>\n<p>This error message isn&#8217;t very informative (but does give a hint) so I figured out how to enable verbose logging of the installation proces (<a href=\"https:\/\/ingmarverheij.com\/2012\/07\/howto-get-citrix-appdna-installation-logfiles\/\" target=\"_blank\">Howto: Citrix AppDNA installation logfiles<\/a>). In the <strong>AppTitudeBusinessLogicVerboseLog.txt<\/strong>&#160; log file the following error was recorded:<\/p>\n<pre>11-7-2012 14:17:57: Restoring db: RESTORE DATABASE [AppDNA]\n                                                FROM DISK = 'E:\\Program Files (x86)\\Citrix\\AppDNA\\Server\\Bin\\AppDNA.tmp'\n                                                WITH REPLACE\n                                                 timeout: 6000\n11-7-2012 14:17:57: ExecuteScalarNoTran connection string: Data Source=SERVER01;Initial Catalog=master;Integrated Security=False;Persist Security Info=False;User ID=AppDNA;Enlist=False;Pooling=False;Connect Timeout=15;Application Name=&quot;AppDNA Configuration Wizard&quot;\n11-7-2012 14:17:59: Directory lookup for the file &quot;C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA.mdf&quot; failed with the operating system error 3(The system cannot find the path specified.).\nFile 'AppDNA' cannot be restored to 'C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA.mdf'. Use WITH MOVE to identify a valid location for the file.\nDirectory lookup for the file &quot;C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA_log.LDF&quot; failed with the operating system error 3(The system cannot find the path specified.).\nFile 'AppDNA_log' cannot be restored to 'C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA_log.LDF'. Use WITH MOVE to identify a valid location for the file.\nProblems were identified while planning for the RESTORE statement. Previous messages provide details.\nRESTORE DATABASE is terminating abnormally.\n11-7-2012 14:17:59: AppDNA.ASM.Common.Exceptions.ASMException: Restoring the Quick database failed. ---&gt; AppDNA.ASM.Common.Exceptions.ASMException: Restoring the Quick database failed. ---&gt; System.Data.SqlClient.SqlException: Directory lookup for the file &quot;C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA.mdf&quot; failed with the operating system error 3(The system cannot find the path specified.).\nFile 'AppDNA' cannot be restored to 'C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA.mdf'. Use WITH MOVE to identify a valid location for the file.\nDirectory lookup for the file &quot;C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA_log.LDF&quot; failed with the operating system error 3(The system cannot find the path specified.).\nFile 'AppDNA_log' cannot be restored to 'C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA\\AppDNA_log.LDF'. Use WITH MOVE to identify a valid location for the file.\nProblems were identified while planning for the RESTORE statement. Previous messages provide details.\nRESTORE DATABASE is terminating abnormally.\n   at AppDNA.ASM.SystemCheck.Database.ExecuteScalarNoTran(DatabaseConfig db, String aSQLStatement, Boolean throw_exceptions)\n   at AppDNA.ASM.SystemCheck.Database.RestoreDatabaseFromStockBackup(DatabaseConfig db)\n   --- End of inner exception stack trace ---\n   at AppDNA.ASM.SystemCheck.Database.RestoreDatabaseFromStockBackup(DatabaseConfig db)\n   at AppDNA.ASM.SystemCheck.Database.CreateQuickDb(DatabaseConfig db)\n   at AppDNAConfigurationWizard.DataClasses.DatabaseDataDoer.Run()\n   --- End of inner exception stack trace ---\n   at AppDNAConfigurationWizard.DataClasses.DatabaseDataDoer.Run()\n   at AppDNAConfigurationWizard.DataClasses.ConfigurationDataDoer.TaskWorker(AsyncOperation async, CancelInfo asyncContext, Boolean&amp; cancelled)<\/pre>\n<p>&#160;<\/p>\n<p>Apparently (after the AppDNA database is created) it tries to restore the content from the <strong><em>%InstallationFolder%\\Server\\Bin\\AppDNA.tmp <\/em><\/strong>to <strong><em>C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\DATA<\/em><\/strong>. Since the database is stored in <strong><em>E:\\MSSQL\\DATA<\/em><\/strong>, this won\u2019t work.<\/p>\n<h2>&#160;<\/h2>\n<h2>Helping the installer<\/h2>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Citrix-AppDNA-environment-Upgrade-database.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 0px 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" align=\"right\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Citrix-AppDNA-environment-Upgrade-database_thumb.png\" width=\"154\" height=\"104\" \/><\/a>You can help the Citrix AppDNA installer by restoring the database manually (to the proper location). After you\u2019ve restored the database successfully the installation will detect the database and will upgrade the database.<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>You can restore the database via Transact-SQL using the <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/ms186858.aspx\" target=\"_blank\">RESTORE<\/a> command with MOVE and REPLACE option:<\/p>\n<pre lang=\"SQL\">RESTORE DATABASE [AppDNA]\nFROM DISK = N'E:\\Program Files (x86)\\Citrix\\AppDNA\\Server\\Bin\\AppDNA.tmp'\nWITH MOVE N'AppDNA' TO N'E:\\MSSQL\\DATA\\AppDNA.mdf',  \nMOVE N'AppDNA_Log' TO N'E:\\MSSQL\\LOG\\AppDNA_log.ldf',\nREPLACE<\/pre>\n<p>If you\u2019re using the <em>Microsoft SQL Server Management Studio<\/em> don\u2019t forget to select a different database then the AppDNA database (default is master), otherwise the database would be in use. The restore will (probably) be completed within a minute.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Microsoft-SQL-Server-Management-Studio-Restore-database.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Microsoft-SQL-Server-Management-Studio-Restore-database_thumb.png\" width=\"604\" height=\"343\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two installers available for Citrix AppDNA (former App-DNA Apptitude). Depending on how big of a download you want to obtain and distribute internally, you can choose any of those two. Both installers will result in the same product: AppDNA Enterprise Edition [288MB] AppDNA Enterprise Edition with Quick DB Install [659MB] The main difference [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[471],"tags":[674,667,185,473],"class_list":["post-3988","post","type-post","status-publish","format-standard","hentry","category-appdna","tag-appdna","tag-citrix","tag-installation","tag-restore"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=3988"}],"version-history":[{"count":6,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3988\/revisions"}],"predecessor-version":[{"id":3995,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3988\/revisions\/3995"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=3988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=3988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=3988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}