It's not possible for me to setup a working vagrant vm.

vagrant up works but at http://drupal.vbox.local I see the permission issues, which are mentioned here: https://drupal.org/node/1364008

After applying the patch from there, the permisson problems seem to be fixed, but then Drupal shows me a PDO exception at http://drupal.vbox.local

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.system' doesn't exist: SELECT * FROM {system} WHERE type = 'theme' OR (type = 'module' AND status = 1) ORDER BY weight ASC, name ASC

Maybe someone can specify the version of virtualbox and vagrant of working setup.
I appreciate every other hint to get it running.

Comments

scromie’s picture

Worked fine for me. I think the piece that's missing is that after you "vagrant up" your site, you also have to go to http://drupal.vbox.local/install.php and run through the drupal installer. I just finished doing that and it worked like a charm.

The install appears to have the following modules present:

admin_menu
ctools
devel
diff
features
views
views_bulk_operations

I think the maintainer just needs to add the http://drupal.vbox.local/install.php to the main page and it will solve the concerns of others.

ar-jan’s picture

Component: Code » Documentation
Category: support » task
Status: Active » Needs review

Same thing - full error message:

Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.semaphore' doesn't exist: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 19819672575002c0354b2b39.73174901 ) in lock_release_all() (line 269 of /vagrant/public/drupal.vbox.local/www/includes/lock.inc).

Installing as per #1 worked fine.

nickgs’s picture

This is correct, you need to install the Drupal instance before using it. This is not apparent on the project page.

We should probably have a documentation page in the handbook we can all collaborate on. I am running this on Windows 7 and ran into a few "gotchas" that may have some value to share.

I am thinking we should have a child page somewhere within the 'Develop for Drupal' guide:

http://drupal.org/node/157602

Thoughts?

Thanks.

Nick
http://nickgs.com

carsonblack’s picture

I think it should automatically redirect to install.php like normal installs do. I got a little confused on this too, I received the same error as in #2 when I went to drupal.vbox.local. The previous version of the code worked that way.
Also, I got a WSOD when I got to the Configure Site page when running the install by going directly to install.php.

therobyouknow’s picture

Comment #1 worked for me too. Agreed the project page instructions don't mention it, though yes install.php is the standard procedure for drupal installation.

Details of my host machine setup:
Windows 7 64bit Professional
4Gb RAM
version 4.2.4r81684 of Oracle VirtualBox (VirtualBox is required and used by Vagrant for this setup and many others)

rootwork’s picture

Title: Can't setup drupal vagrant » Documentation should explicitly include going to install.php

Changing the title to reflect the solution needed.