vmware-archive / webcommander

Powerful, flexible, intuitive and most importantly simple. That is what a real automation solution should be. No matter how complicated the task is, we'd like to turn it into a single click. Is that possible? Not without webcommander :)
MIT License
165 stars 47 forks source link

XML Parsing Error: no root element found #190

Open goldberghere opened 6 years ago

goldberghere commented 6 years ago

Ok, I'm at a loss. I have a script that creates multiple VMs, make some interface modifications, powers on VMs and then changes IPs. All works well when I set my count for 1 VM but anymore then that and I get the XML Parsing error. I have modified the max execution time in php.ini to 9000 and the issue still exists. Not sure if there is some other timer that is being used which needs to be modified. I'm running Windows 2012 Server and connecting to Vcenter 6.5. I connecting to the webcommander interface directly on the webcommander server. Any assistance will be greatly appreciated!

goldberghere commented 6 years ago

I added Start-Sleep 120 at the end of my script and once the 120 seconds passed, I was then presented with the error.

9whirls commented 6 years ago

Your script may output some special strings or characters that result in the XML parsing error. To debug, run your script from powershell console directly and redirect its output to a file such as debug.xml. Then open the file with any xml editor or viewer to check if there is any invalid entity. To prevent such invalid output, add " | out-null " to powershell commands in your script.