[Windows 10] hanging on network activity

36 views
Skip to first unread message

th...@konghq.com

unread,
Apr 30, 2018, 2:48:18 AM4/30/18
to Vagrant
I have a weird issue with Windows. Our vagrant image doesn't build, but hangs on some network activity. (the same box that is building properly on other platforms)

It always hangs on a `wget` instruction. It downloads a bit, and then just hangs. Adding timeouts to the command doesn't work either. If I replace it with a `curl` command, it will hang just a few lines further down, midway an `apt-get update`.

The nature in which it hangs (not responding to timeouts etc) leads me to believe the problem is not with the script itself.

Windows 10 pro
Vagrant 2.0.4
Virtual Box 5.2.8

for reference:
- reported issue: https://github.com/Kong/kong-vagrant/issues/87

Any ideas?

Alvaro Miranda Aguilera

unread,
Apr 30, 2018, 3:34:15 AM4/30/18
to vagra...@googlegroups.com
the link you share describe an error but doesn't have the code to repro or steps to reproduce.

if downloading the deb file is works, i would suggest check the documentation of dpkg and install it correctly, the error shows you are missing flags for the command

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/71fc70f8-684e-4730-9500-0b307fcd26c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Thijs Schreijer

unread,
Apr 30, 2018, 3:41:52 AM4/30/18
to vagra...@googlegroups.com
To reproduce on Windows:

cd kong-vagrant
vagrant up

I don’t think some flag is the issue, since it works on other host platforms.

If you remove the switch `-q` from this command (https://github.com/Kong/kong-vagrant/blob/master/provision.sh#L109) you’ll see it downloads a certain percentage, and then just hangs.

Thijs


To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewLaYYW-gJGsMvk5uZmXCGLRHsk%3D%2BBZ-5MKH6L9gUfsAA%40mail.gmail.com.

Alvaro Miranda Aguilera

unread,
Apr 30, 2018, 4:13:05 AM4/30/18
to vagra...@googlegroups.com
worked for me, finished properly,

attached log.

I am based in the netherlands, so maybe is something related to the national ubuntu mirror? when I was in New Zealand 1 every 4 times all suck, and had to update the mirror in /etc/apt

other times apt goes to use ipv6 since dns resolve that but some ISP/local computer doesn't have IPV6 and apt fails.

here I do have ipv6 working fine.

Suggestion:


couple of errors on the output but just add

export DEBIAN_FRONTEND=noninteractive

export LANGUAGE=en_US.UTF-8

export LANG=en_US.UTF-8

export LC_ALL=en_US.UTF-8




to the 3 rd line of the script.



to test is the mirror, add this, replace AU with the country where you are, OR other country:

# Use AU mirrors
sudo sed -i \
-e 's/\/us.archive.ubuntu.com/\/au.archive.ubuntu.com/' \
-e 's/\/archive.ubuntu.com/\/au.archive.ubuntu.com/' \
/etc/apt/sources.list


to test is the IPV6 issue, test adding this
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4

output of my run


    default:  * Starting DNS forwarder and DHCP server dnsmasq

    default:    ...done.

    default: Setting up netcat-traditional (1.10-40) ...

    default: Setting up netcat (1.10-40) ...

    default: Processing triggers for libc-bin (2.19-0ubuntu6.14) ...

    default: Processing triggers for ureadahead (0.100.0-16) ...

    default: Selecting previously unselected package kong-community-edition.

    default: (Reading database ... 67344 files and directories currently installed.)

    default: Preparing to unpack kong.deb ...

    default: Unpacking kong-community-edition (0.13.1) ...

    default: Setting up kong-community-edition (0.13.1) ...

    default: fs.file-max = 65536

    default: Successfully Installed Kong version: 0.13.1

0  (master *) $ 



Alvaro




--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

vagrant_up.log

Tony Apuzzo

unread,
May 7, 2018, 11:13:12 AM5/7/18
to Vagrant
Are you perhaps using the Windows 10 1709+ "Default Switch" NAT virtual switch?  I get random network hangs if I'm using that.  Have never been able to pin it down well enough to submit a case.
Reply all
Reply to author
Forward
0 new messages