Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate build error - BuildHelpers Set-ModuleFunctions #6

Open
adamrushuk opened this issue May 21, 2017 · 2 comments
Open

Investigate build error - BuildHelpers Set-ModuleFunctions #6

adamrushuk opened this issue May 21, 2017 · 2 comments

Comments

@adamrushuk
Copy link
Owner

adamrushuk commented May 21, 2017

https://ci.appveyor.com/project/adamrushuk/psvcloud/build/0.2.0.23

Executing Build

Error: 5/21/2017 4:02:12 PM:

  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Could not find module 'C:\projects\psvcloud\psvcloud\psvcloud.psd1'
    

Command executed with exception: Could not find module 'C:\projects\psvcloud\psvcloud\psvcloud.psd1'

===

Issue exists in "C:\Program Files\WindowsPowerShell\Modules\BuildHelpers\0.0.45\Public\Set-ModuleFunctions.ps1":

Could not find module 'PSvCloud.psd1'
At TestImport.ps1:32 char:5

  • Throw "Could not find module '$Name'"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Could not find ...\PSvCloud.psd1':String) [], RuntimeException
    • FullyQualifiedErrorId : Could not find module 'PSvCloud.psd1'

===

I suspect this may be due to a PowerCLI issue with Runspaces, and this known error on subsequent loading of PowerCLI (the first import-module is successful):

Import-Module : The specified mount name 'vis' is already in use.
At line:1 char:5

  • Import-Module -Name $Name -PassThru:$Passthru -Force:$Force
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Import-Module], DriveException
    • FullyQualifiedErrorId : NewDriveProviderException,Microsoft.PowerShell.Commands.ImportModuleCommand

Check: https://communities.vmware.com/thread/513253?start=0&tstart=0

@adamrushuk
Copy link
Owner Author

This worked when I removed vCloud Module from RequiredModules in .psd1 file.

@adamrushuk
Copy link
Owner Author

TODO: Report this issue to VMware PowerCLI team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant