Development Using Vagrant: Connections has been reset

Discuss general development subjects that are not specific to a particular version like the versioning control system we use or other infrastructure.
Post Reply
pcmagas
Registered User
Posts: 3
Joined: Tue Feb 20, 2018 3:54 pm

Development Using Vagrant: Connections has been reset

Post by pcmagas » Tue Feb 20, 2018 3:59 pm

I try to develop into phpBB's source code from using the homestead-based vagrant solution.

I installed vagrant from Ubuntu repositories via:

apt-get install vagrant

And I run:

./composer.phar install

In order to install its dependencies (including vagrant's ones). Then I run:

vagrant up

As the documentation says.

But when I visit the http://192.168.10.10/ I get the response:

Code: Select all

curl -ivf http://192.168.10.10/
    *   Trying 192.168.10.10...
    * connect to 192.168.10.10 port 80 failed: No route to host
    * Failed to connect to 192.168.10.10 port 80: No route to host
    * Closing connection 0
    curl: (7) Failed to connect to 192.168.10.10 port 80: No route to host
While when I hit the http://127.0.0.1:8000 I get the response:

Code: Select all

    curl -ivf http://127.0.0.1:8000/
    *   Trying 127.0.0.1...
    * Connected to 127.0.0.1 (127.0.0.1) port 8000 (#0)
    > GET / HTTP/1.1
    > Host: 127.0.0.1:8000
    > User-Agent: curl/7.47.0
    > Accept: */*
    > 
    * Recv failure: Connection reset by peer
    * Closing connection 0
    curl: (56) Recv failure: Connection reset by peer
Do you have any idea why?

Any vagrant-related setting are in this folder and I touched nothing from it.

User avatar
rubencm
Registered User
Posts: 21
Joined: Sun Mar 12, 2017 8:30 pm

Re: Development Using Vagrant: Connections has been reset

Post by rubencm » Tue Feb 27, 2018 1:56 pm

Try running ifconfig and post the output

pcmagas
Registered User
Posts: 3
Joined: Tue Feb 20, 2018 3:54 pm

Re: Development Using Vagrant: Connections has been reset

Post by pcmagas » Wed Feb 28, 2018 12:16 pm

My networks are:

Code: Select all

br-001a3afae20f Link encap:Ethernet  HWaddr 02:42:6f:aa:bd:48  
          inet addr:172.18.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-0742498b7fbc Link encap:Ethernet  HWaddr 02:42:4e:61:66:31  
          inet addr:172.23.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-0fc41ffa232f Link encap:Ethernet  HWaddr 02:42:d5:ab:be:06  
          inet addr:172.28.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-1e5084727d26 Link encap:Ethernet  HWaddr 02:42:2b:0f:eb:3f  
          inet addr:172.24.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-29968454432f Link encap:Ethernet  HWaddr 02:42:88:00:16:cc  
          inet addr:172.26.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-335fbc42a6c1 Link encap:Ethernet  HWaddr 02:42:fa:dc:87:c0  
          inet addr:172.27.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-5087762f64a3 Link encap:Ethernet  HWaddr 02:42:2a:4f:73:d3  
          inet addr:172.20.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-67229ac7fdb0 Link encap:Ethernet  HWaddr 02:42:a6:2a:66:89  
          inet addr:172.29.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-8e86909a81eb Link encap:Ethernet  HWaddr 02:42:05:ae:2f:e1  
          inet addr:172.22.1.1  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::1/64 Scope:Link
          inet6 addr: fd4d:6169:6c63:6f77::1/64 Scope:Global
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-be260cedc016 Link encap:Ethernet  HWaddr 02:42:89:70:39:8e  
          inet addr:172.25.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-dd3ad344f69b Link encap:Ethernet  HWaddr 02:42:79:4f:c4:e5  
          inet addr:172.19.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-fce35572518b Link encap:Ethernet  HWaddr 02:42:20:95:2b:ec  
          inet addr:172.21.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

docker0   Link encap:Ethernet  HWaddr 02:42:d9:fd:b5:0d  
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::42:d9ff:fefd:b50d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54722 errors:0 dropped:0 overruns:0 frame:0
          TX packets:86093 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3011794 (3.0 MB)  TX bytes:129132127 (129.1 MB)

enp3s0    Link encap:Ethernet  HWaddr 30:5a:3a:82:3c:2c  
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::5446:7c23:5247:7096/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1675215 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1269798 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1714801424 (1.7 GB)  TX bytes:199516898 (199.5 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:13558 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13558 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:2224227 (2.2 MB)  TX bytes:2224227 (2.2 MB)

lxcbr0    Link encap:Ethernet  HWaddr 00:16:3e:00:00:00  
          inet addr:10.0.3.1  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

veth5635de2 Link encap:Ethernet  HWaddr 42:24:4f:f4:6c:0e  
          inet6 addr: fe80::4024:4fff:fef4:6c0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1139 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1955 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:78751 (78.7 KB)  TX bytes:2891478 (2.8 MB)
There are so many because I also run docker and lxc containers on my machine.

User avatar
rubencm
Registered User
Posts: 21
Joined: Sun Mar 12, 2017 8:30 pm

Re: Development Using Vagrant: Connections has been reset

Post by rubencm » Wed Feb 28, 2018 4:37 pm

If you use "vagrant up" there should be one called vboxnet0 or similar

Post Reply