Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Not able to connect with Vcenter #205

Open
durgesh28 opened this issue Jan 24, 2019 · 10 comments
Open

Not able to connect with Vcenter #205

durgesh28 opened this issue Jan 24, 2019 · 10 comments

Comments

@durgesh28
Copy link

durgesh28 commented Jan 24, 2019

failetoconnectvcenter
HI ,
I have installed webcommader walnut .
But somehow i am not able to connect with vcenter using webcommander ui .

Need help.

Durgesh

@9whirls
Copy link
Contributor

9whirls commented Jan 24, 2019

Please run Set-PowerCLIConfiguration on webcommander. If the result is not persistent on the server, you may need to add it to objects.ps1 (just before connect-viserver )
http://vmwareinsight.com/Articles/2018/3/5802943/Connect-VIServer-Error-The-HTTP-request-was-forbidden-with-client-authentication-scheme-Anonymous

@durgesh28
Copy link
Author

Thanks jerry for the help !!!!

Now i am able to connect with VCenter But vSphere\interfaces.ps1 script is getting failed and i am not able to fetch the details of datastore or any method on UI .

Powercli version on my machine is belwo

PS C:\WebCommander\powershell> Get-PowerCLIVersion

PowerCLI Version

VMware PowerCLI 11.0.0 build 10380590

Component Versions

VMware Cis Core PowerCLI Component PowerCLI Component 11.0 build 10335701
VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 11.0 build 10336080
VMware VimAutomation Vds Commands PowerCLI Component PowerCLI Component 11.0 build 10336077

listdatastore-error

@9whirls
Copy link
Contributor

9whirls commented Jan 25, 2019

cd c:\webcommander\powershell
vsphere\interfaces.ps1 -serveraddress xxx -serveruser xxx -serverpassword xxx -listdatastore

Please run the commands and post the output

@durgesh28
Copy link
Author

below is the output . its the same output as observed on webcommander walnut UI dashboard. I have got stuck here and not able to proceed . Please help .

PS C:\WebCommander\powershell> .\vSphere\interfaces.ps1 -serveraddress xxxxxxx -serveruser 10000-vw0\durgesh.pandey -serverpassword xxxxxxx -listDatastore
% : Method invocation failed because [VMware.VimAutomation.ViCore.Impl.V1.PowerCLIConfigurationImpl] does not contain a method named 'listDatastore'.
At C:\WebCommander\powershell\vSphere\interfaces.ps1:189 char:19

  • $serverList | % { $_.listDatastore("*") }
    
  •               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [ForEach-Object], RuntimeException
    • FullyQualifiedErrorId : MethodNotFound,Microsoft.PowerShell.Commands.ForEachObjectCommand

@9whirls
Copy link
Contributor

9whirls commented Jan 28, 2019

Interesting, the command should not output anything since it's not triggered by exec.ps1.
Where did you get the walnut scripts? They work differently from mine.
Please use github.com/9whirls/webcommander_walnut

@durgesh28
Copy link
Author

Thanks jerry for the help !!!!

Above issue was due to older version of php on the server.

now i am able to run webcommander and webcommander walnut both on same server with different port .

Now i am trying to execute script which are kept on a git server .

Please help how can we do this . I am following the instructions in the manual but not getting success.

I am doing the changes in local source.json but remote scripts are not visible on web gui

example source.json .

{
"remote": "https://github.com/durgesh28/webcommander/blob/master/www/_def.json"
}
Please guide

@9whirls
Copy link
Contributor

9whirls commented Jan 30, 2019

@durgesh28
Copy link
Author

Thanks Jerry !!!

It working now . I am now able to run remote script kept in git now .

I have two questions now.

  1. To access scripts from webcommandeer, i have make the repo public . If the repo is private , then how scripts will accessible. I mean what will be changes in source.json ??

  2. what are configurations if i want to connect the application with mongo db which is installed on the same server on which application is installed. (means mongo is installed locally on window machine )

Please respond .

@durgesh28
Copy link
Author

Hi Jerry ,

Please help on below point .

If the git reposiory is private , then how scripts will accessible. I mean what will be changes in source.json .
??

How the remote scripts kept on private repo can be accessed from webcommander

@9whirls
Copy link
Contributor

9whirls commented Mar 19, 2019

I don't have this type of configuration on my side. But a reasonable guess is that you need to setup an access token for your private repository and add that token into webcommander code.

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

No branches or pull requests

2 participants