wckr / wocker

Create your WordPress development environment in 3 SECONDS!
https://wocker.dev/
MIT License
480 stars 42 forks source link

Wocker gives a 404 after some time #46

Closed joeynimu closed 8 years ago

joeynimu commented 8 years ago

Hi,

First and foremost i want to say thank you this tool that eases wp development.

I am experiencing this issues whereby after i start a container and visit http://wocker.dev it works as expected. But after a few minutes when i try to reload the page or as i go about in interacting with the website, i get a 404. Please see the attached screenshot. When i check if the container is still running on terminal it turns out it's still running. weird. What could be the issue? Thanks

screen shot 2016-08-10 at 21 23 04
ixkaito commented 8 years ago

Hi @joeynimu

First, chould you tell me what OS you are using, Mac, Windows, or Ubuntu and check if there is a line 10.0.23.16 wocker.dev in your hosts file?

Then, could you try the following and tell me what happens if you visit http://wocker.dev after each one:

joeynimu commented 8 years ago

Hi @ixkaito I am using Mac OS X Yosemite version 10.10.5.

I have checked my host file and found that there is indeed this line with the IP 10.0.23.16 config.vm.hostname = "wocker.dev" config.vm.network :private_network, ip: "10.0.23.16"

vagrant version is 1.8.1 let me try to upgrade and see if that fixes it.

joeynimu commented 8 years ago

I have upgraded my vagrant and my box still experiencing the same problem. Really frustrating and the way i was hyped about this tool :-(

ixkaito commented 8 years ago

@joeynimu

Yes, it seems a little weird. Is your network changing while Wocker is running?

By the way, the hosts file is at /etc/hosts, so after you get 404, could you check whether there is 10.0.23.16 wocker.dev in it and whether your network changed?

$ cat /etc/hosts
joeynimu commented 8 years ago

@ixkaito i think i have solved it by simply rebooting my machine. It seems to work as expected and i can do $ wocker stop && start CONTAINER

Thanks for your time and apologise for bothering you with this. I should have tried to restart my machine initially.

Thanks a bunch for the awesome tool, cheers 👍