Found connection timeout with building new vagrant box with Chef Test Kitchen

182 views
Skip to first unread message

Preston3271

unread,
Sep 14, 2015, 11:26:40 AM9/14/15
to Vagrant

I was in the process of building a new vagrant basebox and found that I has connection timeout back to the learningchef/centos65 url:

**default: Warning: Connection timeout. Retrying...**

$ kitchen create default-centos65
 -----> Starting Kitchen (v1.4.2)
 -----> Creating <default-centos65>...
   Bringing machine 'default' up with 'virtualbox' provider...
   ==> default: Importing base box 'learningchef/centos65'...
   ==> default: Matching MAC address for NAT networking...
   ==> default: Checking if box 'learningchef/centos65' is up to date...
   ==> default: Setting the name of the VM: kitchen-kitchen-default-centos65_default_1441979206253_97174
   ==> default: Clearing any previously set network interfaces...
   ==> default: Preparing network interfaces based on configuration...
       default: Adapter 1: nat
   ==> default: Forwarding ports...
       default: 22 => 2222 (adapter 1)
   ==> default: Booting VM...
   ==> default: Waiting for machine to boot. This may take a few minutes...
       default: SSH address: 127.0.0.1:2222
       default: SSH username: vagrant
       default: SSH auth method: private key
       **default: Warning: Connection timeout. Retrying...**
       default:
       default: Vagrant insecure key detected. Vagrant will automatically replace
       default: this with a newly generated keypair for better security.
       default:
       default: Inserting generated public key within guest...
       default: Removing insecure key from the guest if it's present...
       default: Key inserted! Disconnecting and reconnecting using new SSH key...
   ==> default: Machine booted and ready!
   ==> default: Checking for guest additions in VM...
   ==> default: Setting hostname...
   ==> default: Machine not provisioned because `--no-provision` is specified.
   [SSH] Established
   Vagrant instance <default-centos65> created.
   Finished creating <default-centos65> (1m3.86s).
   -----> Kitchen is finished. (1m4.43s)
   zlib(finalizer): the stream was freed prematurely.

This is causing the vagrant build from completing properly (zlib(finalizer): the stream was freed prematurely.).  Is there a correction, workaround, and patch that fixes this issue?

Alvaro Miranda Aguilera

unread,
Sep 15, 2015, 5:45:03 AM9/15/15
to vagra...@googlegroups.com
On Tue, Sep 15, 2015 at 3:26 AM, Preston3271 <prest...@gmail.com> wrote:
> the stream was freed prematurely.

Hello

Seems an issue with test kitchen?

https://github.com/test-kitchen/test-kitchen/issues/822

Alvaro.
Reply all
Reply to author
Forward
0 new messages