0

I need to connect to my bucket via cloudberry powershell snap in. I go through these steps:

Set-CloudOption -ProxyAddress {muProxyAddress} -ProxyPort 80
$s3 = Get-CloudS3Connection -Key myKey -Secret mySecret
$source = $s3 | Select-CloudFolder -Path myBucketName/myFolderName

But I get this error:

Select-CloudFolder : Redirect location is empty
At line:1 char:17
+ $source = $s3 | Select-CloudFolder -Path myBucketName/myFolderName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 + CategoryInfo : NotSpecified: (:) [Select-CloudFolder], Exception
 + FullyQualifiedErrorId : System.Exception,CloudBerryLab.Explorer.PSSnapIn.Commands.SelectCloudFolder

And this is what is written in log file:

2016-09-01 16:06:03,368 [S3] [Pipeline Execution Thread] INFO - HEAD request, bucket: myBucketName, key: , version: 2016-09-01 16:06:04,738 [Base] [Pipeline Execution Thread] INFO - MovedPermanently to

Eli
  • 11
  • 2

1 Answers1

0

This should work.

Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn
Set-CloudOption -ProxyAddress xxxx -ProxyPort xxxx -PathStyle Path
$key = "xxxx"
$secret = "xxxx"
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup
evgeny
  • 1,039
  • 1
  • 9
  • 26
  • 1
    Happy it helps! Accept this as answer so other members can use this as the solution for similar cases. – evgeny Sep 10 '16 at 11:37
  • 1
    For me the resolution was -PathStyle VHost as answered here http://stackoverflow.com/a/41400287/368105 – Aron Dec 30 '16 at 17:46