{"action":"closed","issue":{"url":"https://api.github.com/repos/roots/trellis/issues/550","repository_url":"https://api.github.com/repos/roots/trellis","labels_url":"https://api.github.com/repos/roots/trellis/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/roots/trellis/issues/550/comments","events_url":"https://api.github.com/repos/roots/trellis/issues/550/events","html_url":"https://github.com/roots/trellis/issues/550","id":146102875,"number":550,"title":"Setup Permalink Structure Task Failing for WordPress Installations using Multisite","user":{"login":"richvida","id":1568825,"avatar_url":"https://avatars.githubusercontent.com/u/1568825?v=3","gravatar_id":"","url":"https://api.github.com/users/richvida","html_url":"https://github.com/richvida","followers_url":"https://api.github.com/users/richvida/followers","following_url":"https://api.github.com/users/richvida/following{/other_user}","gists_url":"https://api.github.com/users/richvida/gists{/gist_id}","starred_url":"https://api.github.com/users/richvida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richvida/subscriptions","organizations_url":"https://api.github.com/users/richvida/orgs","repos_url":"https://api.github.com/users/richvida/repos","events_url":"https://api.github.com/users/richvida/events{/privacy}","received_events_url":"https://api.github.com/users/richvida/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-05T20:36:16Z","updated_at":"2016-04-06T02:04:31Z","closed_at":"2016-04-06T02:04:31Z","body":"**Here's an active Discourse describing the same issue**: [Multisite - database error on vagrant up](https://discourse.roots.io/t/multisite-database-error-on-vagrant-up/6350)\r\n\r\nMy Vagrant development environment, which consists of 3 websites (1 Multisite, 2 non-Multisite), is failing at `TASK [wordpress-install : Setup Permalink Structure]` with error:\r\n\r\n    WordPress database error Table 'site1_development.wp_blogs' doesn't exist for query SELECT * FROM wp_blogs WHERE domain = 'site1.dev' AND path = '/' made by include('phar:///usr/bin/wp/php/boot-phar.php'), include('phar:///usr/bin/wp/php/wp-cli.php'), WP_CLI\\Runner->start, WP_CLI\\Runner->load_wordpress, require('phar:///usr/bin/wp/php/wp-settings- cli.php'), require('wp-includes/ms-settings.php'), get_site_by_path Error: Site site1.dev/ not found. failed: [default] => (item=site1) => {\"changed\": true, \"cmd\": [\"wp\", \"rewrite\", \"structure\", \"/%postname%/\", \"--allow-root\"], \"delta\": \"0:00:00.096019\", \"end\": \"2016-04-05 20:16:15.394469\", \"failed\": true, \"item\": \"site1\", \"rc\": 1, \"start\": \"2016-04-05 20:16:15.298450\", \"stderr\": \"WordPress database error Table 'site1_development.wp_blogs' doesn't exist for query SELECT * FROM wp_blogs WHERE domain = 'site1.dev' AND path = '/' made by include('phar:///usr/bin/wp/php/boot-phar.php'), include('phar:///usr/bin/wp/php/wp-cli.php'), WP_CLI\\\\Runner->start, WP_CLI\\\\Runner->load_wordpress, require('phar:///usr/bin/wp/php/wp-settings-cli.php'), require('wp-includes/ms-settings.php'), get_site_by_path\\nError: Site site1.dev/ not found.\", \"stdout\": \"\", \"stdout_lines\": [], \"warnings\": []}\r\n    ---------------------------------------------------\r\n    changed: [default] => (item=site2)\r\n    changed: [default] => (item=site3)\r\n\r\nwhen running `vagrant up` for the first time.\r\n\r\nLoading *site1.dev* a web browser results in this:\r\n\r\n    Error establishing a database connection \r\n\r\n**group_vars/development/wordpress_sites.yml**:\r\n\r\n    wordpress_sites:\r\n\r\n      site1:\r\n        site_hosts:\r\n          - site1.dev\r\n        local_path: ../site1\r\n        admin_email: admin@site1.dev\r\n        multisite:\r\n          enabled: true\r\n          subdomain: false\r\n        ssl:\r\n          enabled: false\r\n          provider: self-signed\r\n        cache:\r\n          enabled: false\r\n        env:\r\n          domain_current_site: site1.dev\r\n\r\n      site2:\r\n        site_hosts:\r\n          - site2.dev\r\n        local_path: ../site2\r\n        admin_email: admin@site2.dev\r\n        multisite:\r\n          enabled: false\r\n        ssl:\r\n          enabled: false\r\n          provider: self-signed\r\n        cache:\r\n          enabled: false\r\n\r\n      site3:\r\n        site_hosts:\r\n          - site3.dev\r\n        local_path: ../site3\r\n        admin_email: admin@site3.dev\r\n        multisite:\r\n          enabled: false\r\n        ssl:\r\n          enabled: false\r\n          provider: self-signed\r\n        cache:\r\n          enabled: false"}}