TeamCity executing Packer 1.0.1 and higher, timeout

163 views
Skip to first unread message

neil.f...@gmail.com

unread,
Oct 15, 2017, 10:41:50 PM10/15/17
to Packer
We are using TeamCity 9.1.6 to run our Packer builds. This has been working fine until Packer version 1.0.1.

We can successfully get TeamCity to execute our PowerShell script which executes Packer v 1.0.0 and below. As soon as we swap the exe to version 1.0.1, 1.0.2 ... 1.1.0 we get the following error using both of the builders we use.

Is anyone else using TeamCity with Packer for their builds?
We have tried changing PowerShell settings on our TeamCity build step such as x86 / x64, PowerShell v 2.0 mode, -NoProfile mode. Regardless we still get the timeout error.

If we run our PowerShell script on one of the virtual machines created by TeamCity running Packer 1.0.1 + but execute the script not via TeamCity we don't get the timeout issue.

Cheers

Failed to initialize build 'vmwaredesktop': error initializing builder 'vmware-iso': timeout while waiting for plugin to start
Failed to initialize build 'virtualbox': error initializing builder 'virtualbox-iso': timeout while waiting for plugin to start

Megan Marsh

unread,
Oct 16, 2017, 12:07:51 PM10/16/17
to packe...@googlegroups.com
Looks like this might be the same as https://github.com/hashicorp/packer/issues/5467?

--
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/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9a5402ca-db9a-4454-8bf4-ac87be7ccdb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

neil.f...@gmail.com

unread,
Oct 16, 2017, 6:50:46 PM10/16/17
to Packer
Hi Megan,
 thanks for your reply.

The only extra Packer plugin we use is the following and we have recently moved to the latest version of this (0.2.3);

Are you suggesting we should remove this plugin from the Packer directory and see if that helps?

Thanks
Neil.


On Tuesday, 17 October 2017 02:07:51 UTC+10, Megan Marsh wrote:
Looks like this might be the same as https://github.com/hashicorp/packer/issues/5467?
On Sun, Oct 15, 2017 at 7:41 PM, <neil.f...@gmail.com> wrote:
We are using TeamCity 9.1.6 to run our Packer builds. This has been working fine until Packer version 1.0.1.

We can successfully get TeamCity to execute our PowerShell script which executes Packer v 1.0.0 and below. As soon as we swap the exe to version 1.0.1, 1.0.2 ... 1.1.0 we get the following error using both of the builders we use.

Is anyone else using TeamCity with Packer for their builds?
We have tried changing PowerShell settings on our TeamCity build step such as x86 / x64, PowerShell v 2.0 mode, -NoProfile mode. Regardless we still get the timeout error.

If we run our PowerShell script on one of the virtual machines created by TeamCity running Packer 1.0.1 + but execute the script not via TeamCity we don't get the timeout issue.

Cheers

Failed to initialize build 'vmwaredesktop': error initializing builder 'vmware-iso': timeout while waiting for plugin to start
Failed to initialize build 'virtualbox': error initializing builder 'virtualbox-iso': timeout while waiting for plugin to start

--
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/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.

Megan Marsh

unread,
Oct 16, 2017, 6:55:55 PM10/16/17
to packe...@googlegroups.com
I guess it's worth a try -- I was commenting more as a way of pointing out to the community that we might have multiple people reporting the same issue, since your email and the issue had similar features.  We haven't gotten to the bottom of the linked issue yet but when we do it may help you as well.

Alvaro Miranda Aguilera

unread,
Oct 16, 2017, 11:41:51 PM10/16/17
to packe...@googlegroups.com
Hello

Can you share the OS of server and agent? both windows?

If you can share how to repro this, I can have a look.

Thanks
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/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.



--
Alvaro

neil.f...@gmail.com

unread,
Oct 18, 2017, 2:14:21 AM10/18/17
to Packer
Hi 
 the Operating System on the TeamCity elastic build agents is Windows Server 2012 R2. This runs on VMware vSphere with nested virtualisation enabled.

Within the virtual machine we run;
  • Packer 1.0.0
  • Oracle VirtualBox 5.1.28
  • VMware Workstation 12.5.7
  • Vagrant 1.9.5
  • Chef DK 1.6.1
  • TeamCity Agent 9
  • various other development tools
The Operating Systems we build with Packer include Windows Server 2008 R2, 2012, 2012 R2 and 2016, as well as Red Hat Linux 7.

We experience the timeout issue using both the virtualbox-iso and vmware-iso builders on all of the above Operating Systems when using TeamCity and Packer 1.0.1 or higher.

Cheers
Neil.

On Tuesday, 17 October 2017 13:41:51 UTC+10, Alvaro Miranda Aguilera wrote:
Hello

Can you share the OS of server and agent? both windows?

If you can share how to repro this, I can have a look.

Thanks
Alvaro
On Sun, Oct 15, 2017 at 9:41 PM, <neil.f...@gmail.com> wrote:
We are using TeamCity 9.1.6 to run our Packer builds. This has been working fine until Packer version 1.0.1.

We can successfully get TeamCity to execute our PowerShell script which executes Packer v 1.0.0 and below. As soon as we swap the exe to version 1.0.1, 1.0.2 ... 1.1.0 we get the following error using both of the builders we use.

Is anyone else using TeamCity with Packer for their builds?
We have tried changing PowerShell settings on our TeamCity build step such as x86 / x64, PowerShell v 2.0 mode, -NoProfile mode. Regardless we still get the timeout error.

If we run our PowerShell script on one of the virtual machines created by TeamCity running Packer 1.0.1 + but execute the script not via TeamCity we don't get the timeout issue.

Cheers

Failed to initialize build 'vmwaredesktop': error initializing builder 'vmware-iso': timeout while waiting for plugin to start
Failed to initialize build 'virtualbox': error initializing builder 'virtualbox-iso': timeout while waiting for plugin to start

--
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/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages