Answers.Body: <p>This is an indirect answer, but if you don't have time to debug the install process to set up a Vagrant box, grab this:</p>
  
  <p><a href="https://github.com/niceandserious/crafty-vagrant" rel="nofollow noreferrer">https://github.com/niceandserious/crafty-vagrant</a></p>
  
  <p>Something about it doesn't trigger the duplicate table trouble. Someday I'll have time to figure out why.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-04T17:43:39.563Z
Answers.LastActivityDate: 2017-12-04T17:43:39.563Z
Answers.UserDisplayName: borducks
Body: <p>I keep getting stranded at the "Oops" modal on install. This is on the third Craft site I've started. The other two Craft 2 sites stood up fine, an I've been developing them for nearly a year.</p>
  
  <p>I've seen questions about this but haven't seen a resolution. Maybe my situation will help figure this out.</p>
  
  <p>Log error output:</p>
  
  <pre><code>[error] [exception.CDbException] exception 'CDbException' with message 'CDbCommand failed to execute the SQL statement: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'craft_entryversions' already exists' in /var/www/thesite/craft/app/framework/db/CDbCommand.php:358
  
  Stack trace:
  
  #0 /var/www/thesite/craft/app/framework/db/CDbCommand.php(1352): CDbCommand-&gt;execute()
  #1 /var/www/thesite/craft/app/etc/db/DbCommand.php(507): CDbCommand-&gt;createTable('craft_entryvers...', Array, NULL)
  #2 /var/www/thesite/craft/app/records/BaseRecord.php(301): Craft\DbCommand-&gt;createTable('entryversions', Array, NULL, true)
  #3 /var/www/thesite/craft/app/services/InstallService.php(172): Craft\BaseRecord-&gt;createTable()
  #4 /var/www/thesite/craft/app/services/InstallService.php(56): Craft\InstallService-&gt;_createTablesFromRecords(Array)
  #5 /var/www/thesite/craft/app/controllers/InstallController.php(159): Craft\InstallService-&gt;run(Array)
  #6 /var/www/thesite/craft/app/framework/web/actions/CInlineAction.php(49): Craft\InstallController-&gt;actionInstall()
  #7 /var/www/thesite/craft/app/framework/web/CController.php(308): CInlineAction-&gt;runWithParams(Array)
  #8 /var/www/thesite/craft/app/framework/web/CController.php(286): CController-&gt;runAction(Object(CInlineAction))
  #9 /var/www/thesite/craft/app/framework/web/CController.php(265): CController-&gt;runActionWithFilters(Object(CInlineAction), Array)
  #10 /var/www/thesite/craft/app/framework/web/CWebApplication.php(282): CController-&gt;run('install')
  #11 /var/www/thesite/craft/app/etc/web/WebApp.php(823): CWebApplication-&gt;runController('install/install')
  #12 /var/www/thesite/craft/app/etc/web/WebApp.php(790): Craft\WebApp-&gt;_processActionRequest()
  #13 /var/www/thesite/craft/app/etc/web/WebApp.php(203): Craft\WebApp-&gt;_processInstallRequest()
  #14 /var/www/thesite/craft/app/framework/base/CApplication.php(185): Craft\WebApp-&gt;processRequest()
  #15 /var/www/thesite/craft/app/index.php(62): CApplication-&gt;run()
  #16 /var/www/thesite/public/index.php(19): require_once('/var/www/thesite...')
  #17 {main}
  REQUEST_URI=/index.php?p=admin/actions/install/install
  </code></pre>
  
  <p>I've tried this on a couple of local vagrant boxes:</p>
  
  <ul>
  <li>ubuntu xenial 64, nginx, php7.0-fpm, mysql server 5.7.20</li>
  <li>ubutnu trusty 64, nginx, php5-fpm, mysql-server 5.5.58</li>
  </ul>
  
  <p>I have successfully installed an older version of Craft on both of these boxes before.</p>
  
  <p>The DB user was root for both environments, so DB permissions shouldn't be an issue as suggested in another post about this.</p>
  
  <p>I also tried deleting the tables mentioned in the log and tried again, as mentioned in another post about this. I just got an error about another duplicate table.</p>
  
  <p>I also destroyed and recreated each vagrant box, so I don't think lingering sql temp files are an issue as reported elsewhere.</p>
  
  <p>Any new direction on this would be awesome. We already have a Craft site ready for production, but if we can't use it for a related site for the same client, we'll have to move on to something else, and that's the last thing I want to do.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-01T17:45:14.803Z
Comments.Text: Maybe use xDebug and put a breakpoint in Craft's `craft/app/controllers/InstallController.php`'s `actionInstall` method? Step through and something might come up as to why it appears that EntryVersionRecord.php is getting run twice?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-01T17:48:44.503Z
Comments.Text: hi Brad. Thanks for commenting quickly. Good idea. I'll report back.
Comments.UserDisplayName: borducks
Tags: <error><install><mysql>
Title: Craft 2.6.2999 install error: Base table or view already exists: 1050 Table 'craft_entryversions' already exists'
ThreadText: # Craft 2.6.2999 install error: Base table or view already exists: 1050 Table 'craft_entryversions' already exists'
  
  (Asked by: username_0 on 2017-12-01)
  
  I keep getting stranded at the "Oops" modal on install. This is on the third Craft site I've started. The other two Craft 2 sites stood up fine, an I've been developing them for nearly a year.
  
  I've seen questions about this but haven't seen a resolution. Maybe my situation will help figure this out.
  
  Log error output:
  
  ```
  [error] [exception.CDbException] exception 'CDbException' with message 'CDbCommand failed to execute the SQL statement: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'craft_entryversions' already exists' in /var/www/thesite/craft/app/framework/db/CDbCommand.php:358
  
  Stack trace:
  
  #0 /var/www/thesite/craft/app/framework/db/CDbCommand.php(1352): CDbCommand->execute()
  #1 /var/www/thesite/craft/app/etc/db/DbCommand.php(507): CDbCommand->createTable('craft_entryvers...', Array, NULL)
  #2 /var/www/thesite/craft/app/records/BaseRecord.php(301): Craft\DbCommand->createTable('entryversions', Array, NULL, true)
  #3 /var/www/thesite/craft/app/services/InstallService.php(172): Craft\BaseRecord->createTable()
  #4 /var/www/thesite/craft/app/services/InstallService.php(56): Craft\InstallService->_createTablesFromRecords(Array)
  #5 /var/www/thesite/craft/app/controllers/InstallController.php(159): Craft\InstallService->run(Array)
  #6 /var/www/thesite/craft/app/framework/web/actions/CInlineAction.php(49): Craft\InstallController->actionInstall()
  #7 /var/www/thesite/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
  #8 /var/www/thesite/craft/app/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
  #9 /var/www/thesite/craft/app/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
  #10 /var/www/thesite/craft/app/framework/web/CWebApplication.php(282): CController->run('install')
  #11 /var/www/thesite/craft/app/etc/web/WebApp.php(823): CWebApplication->runController('install/install')
  #12 /var/www/thesite/craft/app/etc/web/WebApp.php(790): Craft\WebApp->_processActionRequest()
  #13 /var/www/thesite/craft/app/etc/web/WebApp.php(203): Craft\WebApp->_processInstallRequest()
  #14 /var/www/thesite/craft/app/framework/base/CApplication.php(185): Craft\WebApp->processRequest()
  #15 /var/www/thesite/craft/app/index.php(62): CApplication->run()
  #16 /var/www/thesite/public/index.php(19): require_once('/var/www/thesite...')
  #17 {main}
  REQUEST_URI=/index.php?p=admin/actions/install/install
  
  ```
  
  I've tried this on a couple of local vagrant boxes:
  
  * ubuntu xenial 64, nginx, php7.0-fpm, mysql server 5.7.20
  * ubutnu trusty 64, nginx, php5-fpm, mysql-server 5.5.58
  
  I have successfully installed an older version of Craft on both of these boxes before.
  
  The DB user was root for both environments, so DB permissions shouldn't be an issue as suggested in another post about this.
  
  I also tried deleting the tables mentioned in the log and tried again, as mentioned in another post about this. I just got an error about another duplicate table.
  
  I also destroyed and recreated each vagrant box, so I don't think lingering sql temp files are an issue as reported elsewhere.
  
  Any new direction on this would be awesome. We already have a Craft site ready for production, but if we can't use it for a related site for the same client, we'll have to move on to something else, and that's the last thing I want to do.
  
  **Tags:** error, install, mysql
  
  > **Comments:**
  > **username_1**: Maybe use xDebug and put a breakpoint in Craft's `craft/app/controllers/InstallController.php`'s `actionInstall` method? Step through and something might come up as to why it appears that EntryVersionRecord.php is getting run twice?  
  > **username_0**: hi username_1. Thanks for commenting quickly. Good idea. I'll report back.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-12-04. Score: 1
  
  This is an indirect answer, but if you don't have time to debug the install process to set up a Vagrant box, grab this:
  
  <https://github.com/niceandserious/crafty-vagrant>
  
  Something about it doesn't trigger the duplicate table trouble. Someday I'll have time to figure out why.
  
  
  ---
  
  