bradp / vv

:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ :x: This project is no longer maintained. Please update your copy of VVV , which has most of the vv features built in.
GNU General Public License v2.0
1k stars 90 forks source link

VV sites 404 not found. #340

Closed dterr009 closed 7 years ago

dterr009 commented 7 years ago

Hello,

I'm having trouble with new sites created by VV. All of the default sites are working but the new ones get a 404 not found.

Here is my debug

`$ vv --debug-vv

/c/Dev/vv/vv: line 1506: version: command not found

vv: /c/Dev/vv/vv

vv_config: /c/Users/domin/.vv-config vvv path: /c/dev/vvv home: /c/Users/domin

tput: cat: /usr/bin/cat curl: /mingw64/bin/curl which: no brew in (/c/Users/domin/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/domin/bin:/c/ProgramData/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/HashiCorp/Vagrant/bin:/cmd:/c/Users/domin/AppData/Local/Microsoft/WindowsApps:/c/Dev/vv:/usr/bin/vendor_perl:/usr/bin/core_perl:/c/Users/domin/bin) brew: tar: /usr/bin/tar find: /usr/bin/find git: /mingw64/bin/git sed: /usr/bin/sed paste: /usr/bin/paste vagrant: /c/HashiCorp/Vagrant/bin/vagrant `

alejuu commented 7 years ago

Same here

vitolob commented 7 years ago

It seems that, for some reason, the vvv-init.sh script is not being run on provision so that we have to run it manually.

You're going to have to ssh into the machine. And thencd /srv/www/{your_site_name} Execute ./vvv-init.sh Now run sudo service nginx restart

I hope that helps while the issue is not yet solved.

pixleight commented 7 years ago

I've also run into the same issue, also referenced in #339. It appears that provisioning is not running vvv-init.sh and I've had to run it manually.

Rayken commented 7 years ago

Same, question is how we remedy this rather than having to do it manually.

EricaLynnFL commented 7 years ago

I also had this problem today .. and its my first day using VVV & vv. I'm very glad I found this thread, thought I was going crazy :)

vitolob commented 7 years ago

Same, question is how we remedy this rather than having to do it manually.

The problem seems to be with a certain incompatibility between vv and the new provisioning system used by VVV.

vv, as it is right now, works perfectly with the latest stable release of VVV, but fortunately it can also work with the new provisioning system with some tweaks.

Therefore, there are two ways to go about this:

  1. Clone the master branch (stable release) of VVV, or download the release 1.4.1 on this link https://github.com/varying-vagrant-vagrants/vvv/releases and vv will work with no problems or,

  2. Make some tweaks:

I am going to copy/paste @matthewmcvickar comment from the issue https://github.com/bradp/vv/issues/330

You need to add your site to the vvv-custom.yml file in the root of the VVV installation. For example, if you are adding a site called macgraphic.dev:

  1. In the root of the VVV installation (the vagrant-local folder), duplicate the vvv-config.yml file and name the copy vvv-custom.yml.

  2. Add your site to the vvv-custom.yml file:

---
sites:
  wordpress-default:
    repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git
    hosts:
      - local.wordpress.dev

  macgraphic:
    hosts:
      - macgraphic.dev

(Leave the rest of the file alone. It is run instead of vvv-config.yml, not in addition to it, so you need to leave in the default WP installations if you still want them.)

  1. Create your site: vv create macgraphic

VV will then create the site as expected.

That's how you avoid having to do it manually. I hope that helps.

If you'd like to learn more about the new provision system in VVV, check out this article: https://tomjn.com/2017/01/16/whats-new-vvv-2-0/

estevancarlos commented 7 years ago

I get a command now found when entering sudo service nginx restart. Suggestions on how to resolve that?

vitolob commented 7 years ago

Hi @estevancarlos . I imagine you are trying to manually run the vvv-init.sh script. For that, you first need to ssh into the machine by running vagrant ssh (Assuming you're not on Windows, or are using Bash). Then you can run the commands as suggested.

Did that happen after ssh'ing into the machine?

bradp commented 7 years ago

Closing this, I'm going to start tracking 2.0 support in https://github.com/bradp/vv/issues/348.