Support

UNiTE, Remote CLI, eXtract Wizard

#35303 UNiTE replies with getBucket

Posted in ‘UNiTE and Remote CLI’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
Tool
UNiTE
Tool version
n/a

Latest post by on Saturday, 03 July 2021 20:17 CDT

carcam

Hi Team!!

I'm facing issues trying to use UNiTE to retrieve my backup files from my storage provider using an S3 custom endpoint. The S3 definition I have in the xml is:

 

<s3>
   <accesskey>API_KEY</accesskey>
  <secretkey>API_SECRET</secretkey>
  <signature>v2</signature>
  <bucket>hepta-clients</bucket>
  <region>eu-west-1</region>
  <ssl>1</ssl>
  <filename>FOLDER/SHOP-shop.clientname.org-20210521-103341cest-HAFwLUupjXUDrnVR.jpa</filename>
  <endpoint>s3.eu-central-1.wasabisys.com</endpoint>
</s3>

And the reply I get from command line is:

 

S3: using custom endpoint http://s3.eu-central-1.wasabisys.com
S3: forcing legacy (v2) signature because you are using a custom endpoint.
Setting up the download from S3 failed
PHP Notice: Undefined variable: s3 in phar:///app/www/unite.phar/Engine/Step/S3.php on line 136
PHP Fatal error: Uncaught Error: Call to a member function getBucket() on null in phar:///app/www/unite.phar/Engine/Step/S3.php:136
Stack trace:
#0 phar:///app/www/unite.phar/Engine/Base/BasePart.php(118): Akeeba\UNiTE\Engine\Step\S3->_run()
#1 phar:///app/www/unite.phar/Engine/Step/Worker.php(83): Akeeba\UNiTE\Engine\Base\BasePart->tick()
#2 phar:///app/www/unite.phar/Engine/Base/BasePart.php(118): Akeeba\UNiTE\Engine\Step\Worker->_run()
#3 phar:///app/www/unite.phar/Engine/Core/Kettenrad.php(77): Akeeba\UNiTE\Engine\Base\BasePart->tick()
#4 phar:///app/www/unite.phar/Engine/Base/BasePart.php(121): Akeeba\UNiTE\Engine\Core\Kettenrad->_run()
#5 phar:///app/www/unite.phar/Command/Restore.php(147): Akeeba\UNiTE\Engine\Base\BasePart->tick()
#6 phar:///app/www/unite.phar/lib/remotecli/Kernel/Dispatcher.php(124): Akeeba\UNiTE\Command\Restore->execute(Object(Akeeba\RemoteCLI\Input\Cli), Object(Akeeba\RemoteCLI\Output\Output))
#7 phar:///app/www/unite.phar/unite.php(107): Akeeba\RemoteCLI\Kernel\Dispatcher->dispatch()
#8 /app/www/un in phar:///app/www/unite.phar/Engine/Step/S3.php on line 136 

 

What am I doing wrong?

Best!!

nicholas
Akeeba Staff
Manager

Try removing the <ssl>1</ssl> and change the endpoint from http:// to https://

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

carcam

Hi Nicholas,

thank you very much for your reply!!

I have performed the changes you suggest:

  • Removed ssl tag
  • Added https:// to the url of the endpoint

But the result is exactly the same. Any other idea or test I can perform?

nicholas
Akeeba Staff
Manager

I've published a dev release at https://www.akeeba.com/download/developer-releases/unite-dev.html

Can you please use that instead? If there is a problem with the configuration leading to a PHP exception it should now report the error instead of simply not reading an S3 connector which causes the fatal error you get with 4.1.3.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

carcam

Hi Nicholas,

thank you very much for your reply.

I have tested this and it provides a much more detailed message (I have replaced (BUCKET, FOLDER AND FILE):

Running s3
Preparing to download s3://BUCKET/FOLDER/FILE.jpa
S3: using custom endpoint http://s3.eu-central-1.wasabisys.com
S3: forcing legacy (v2) signature because you are using a custom endpoint.
Setting up the download from S3 failed
The custom S3 endpoint provided is invalid. Do NOT include the protocol (http:// or https://). Valid examples are s3.example.com and www.example.com/s3Api

 

I have tested this using http://, https://, and nothing in teh custom endpoint url in the xml and also adding <ssl>1</ssl> but the result is always the same.

nicholas
Akeeba Staff
Manager

What is the endpoint they are giving you from your storage provider?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

carcam

Hi Nicholas,

the custom endpoint I got from my provider is exactly:

 

s3.eu-central-1.wasabisys.com

 

Here is the documentation where I got it: https://wasabi-support.zendesk.com/hc/en-us/articles/360015106031-What-are-the-service-URLs-for-Wasabi-s-different-storage-regions-

 

My buckets are in Europe.

 

Best!!

nicholas
Akeeba Staff
Manager

Thank you for the additional information! I signed up for the Wasabi trial so I could test this out. Indeed, UNiTE has a problem when trying to use custom endpoints. I never noticed because I am using Amazon S3 for the daily restorations of our site's backups to my local servers.

I have fixed that and confirmed it works with Wasabi.

You may get a fatal error at the very end of the UNiTE run, after it says it successfully completed the restoration. You can ignore that. It comes from the ANGIE installer, it's largely cosmetic (it simply complains because we deleted the installation folder before the ANGIE code that restored the site was unloaded) and will be addressed in the next version of Akeeba Backup.

You can find the new development version of UNiTE here: https://www.akeeba.com/download/developer-releases/unite-dev/reve657e1f.html

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

carcam

Hi Nicholas,

that was it!! It works like a charm now. Thank you very much for your amazing software and support.

Best!!

nicholas
Akeeba Staff
Manager

Awesome! Thank you for the confirmation. I will publish a new UNiTE version most likely next week.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!