I am trying to set up SHIFT server in our lab and facing some challenges.
I have installed shift on windows 2012 server (virtualized on vmware). I am following the install doc step by step. When i finally trigger the connect-shiftserver command it asks for user credentials which were setup while installing the software. For some reason here it bombs out like this saying "bad credentials"
Thanks for your message. Yeah I am leaving everything as default. The port is listening and the software does repsond but keeps saying "bad credentials".I actually uninstalled and re-installed just to be sure that i didn't make a mistake while entering the passowrd. In fact I also used notepad to copy/paste the password just be sure that my keyboard (remote desktop) is not playing tricks on me 🙂
cmdlet Connect-ShiftServer at command pipeline position 1 Supply values for the following parameters: (Type !? for Help.) credential VERBOSE: Connecting to the shift server located at host:localhost and port:8443 VERBOSE: GET https://localhost:8443/Shift/api/v1/config/networks with 0-byte payload Invoke-RestMethod : HTTP Status 401 - Bad credentials type Status report message Bad credentials description This request requires HTTP authentication. Apache Tomcat/7.0.55 At C:\Program Files (x86)\NetApp\OnCommand Shift\ShiftClient\ShiftClient.psm1:1860 char:15 + $result = Invoke-RestMethod -Uri $uri$appendstr -Method $method -TimeoutSec ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc eption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand Connect-ShiftServer : Could not connect to the shift server At line:1 char:1 + Connect-ShiftServer -verbose + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Connect-ShiftServer
Yeah, the verbose switch is not very useful in your case. Are you using any multibyte characters as your password ? Shift 1.0 is not i18n compliant, so you need to use english characters as your password. What's the operating system of the shift server machine ?
Also, make sure that there are no problems during installation. On the last step of the installer, you should see that "OnCommand Shift server is successfully installed". if you see a message like "Problem observed during Shift server installation" then the installation has issues.