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

Connect-SGWServer return with error #3

Closed
sckhoo opened this issue Apr 11, 2018 · 2 comments
Closed

Connect-SGWServer return with error #3

sckhoo opened this issue Apr 11, 2018 · 2 comments

Comments

@sckhoo
Copy link

sckhoo commented Apr 11, 2018

I need help with this. a totall newbie with PS.

PS C:\Users\khoosc> Connect-SGWServer -Name $Server -Credential $Credential -SkipCertificateCheck
Method invocation failed because [Microsoft.PowerShell.Commands.WebRequestSession] does not contain a method named
'new'.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\StorageGRID-Webscale\StorageGRID-Webscale.psm1:1031 char:9
+         $Server = [PSCustomObject]@{SkipCertificateCheck=$SkipCertificateCheck.I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound


WARNING: Certificate of the server may not be trusted. Use -SkipCertificateCheck switch if you want to skip certificate
 verification.
Get-SgwVersion : GET to /versions failed with Exception Invalid URI: The hostname could not be parsed.

At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\StorageGRID-Webscale\StorageGRID-Webscale.psm1:1074 char:24
+         $APIVersion = (Get-SgwVersion -Server $Server -ErrorAction Stop | Sort-O ...
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-SgwVersion
@mschindl
Copy link

mschindl commented Feb 5, 2019

Did you tried to connect with an endpoint?

$Credential = Get-Credential
$Name = "<fqdn/ip>"
Connect-SgwServer -Name $Name -Credential $Credential -S3EndpointUrl "<fqdn/ip>:8082"

SG uses port 8082 for S3 as default, but it's no problem to change it to 443.

@ffeldhaus
Copy link
Contributor

Closing as there was no additional feedback.

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

No branches or pull requests

3 participants