Connection reset by peer problem

637 views
Skip to first unread message

jean-guillaume lalanne

unread,
Sep 23, 2013, 5:37:21 AM9/23/13
to vagra...@googlegroups.com
Hi,

I am setting up a dev environment on my windows 7 machine.

I am using VirtualBox 4.2.16 and vagrant 1.2.2.

My guest os is the following one (CentOS) : https://s3.amazonaws.com/itmat-public/centos-6.3-chef-10.14.2.box

I have disabled iptables, ip6tables and sulinux on Linux.

when I browse with firefox on the following url 


everythins is fine.


when I do the same from the host I get the following result :

* curl -v localhost 8081
* STATE: INIT => CONNECT handle 0x600055460; line 1027 (connection #-5000)
* Rebuilt URL to: localhost/
* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1...
* Adding handle: conn: 0x600067db0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* 0x600055460 is at send pipe head!
* - Conn 0 (0x600067db0) send_pipe: 1, recv_pipe: 0
* STATE: CONNECT => WAITCONNECT handle 0x600055460; line 1074 (connection #0)
* Connected to localhost (127.0.0.1) port 80 (#0)
* STATE: WAITCONNECT => DO handle 0x600055460; line 1193 (connection #0)
> GET / HTTP/1.1
> User-Agent: curl/7.32.0
> Host: localhost
> Accept: */*
>
* STATE: DO => DO_DONE handle 0x600055460; line 1279 (connection #0)
* STATE: DO_DONE => WAITPERFORM handle 0x600055460; line 1400 (connection #0)
* STATE: WAITPERFORM => PERFORM handle 0x600055460; line 1411 (connection #0)
* Recv failure: Connection reset by peer
* Closing connection 0
* The cache now contains 0 members
* Expire cleared
curl: (56) Recv failure: Connection reset by peer
* STATE: INIT => CONNECT handle 0x600055460; line 1027 (connection #-5000)
* Rebuilt URL to: 8081/
* getaddrinfo(3) failed for 8081:80
* Couldn't resolve host '8081'
* Closing connection 1
* The cache now contains 0 members
* Expire cleared
curl: (6) Couldn't resolve host '8081'

I don't understand this "connection reset by peer"... Any idea ?

Here is my vagrantfile :

Vagrant.configure("2") do |config|
  config.vm.network :forwarded_port, guest: 9990, host: 9990
  config.vm.network :forwarded_port, guest: 8081, host: 8081
  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "4096"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]   
  end
end

Thanks in advance for your help

Best regards

Jean-Guillaume


Reply all
Reply to author
Forward
0 new messages