Support

UNiTE, Remote CLI, eXtract Wizard

#35303 – UNiTE replies with getBucket

Posted in ‘UNiTE, Remote CLI, eXtract Wizard’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 26 May 2021 23:34 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!!

Custom Fields

Which tool do you want support for? Akeeba UNiTE
Tool version (in x.y.z format) 4.1.3
 
Thursday, 27 May 2021 02:05 CDT
nicholas

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



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



Thursday, 27 May 2021 09:57 CDT
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?

 
Friday, 28 May 2021 00:56 CDT
nicholas

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



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



Friday, 28 May 2021 10:03 CDT
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.

 
Friday, 28 May 2021 11:10 CDT
nicholas

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



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



Monday, 31 May 2021 03:47 CDT
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!!

 
Monday, 31 May 2021 10:05 CDT
nicholas

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



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



Wednesday, 02 June 2021 08:27 CDT
carcam

Hi Nicholas,

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

Best!!

 
Thursday, 03 June 2021 03:44 CDT
nicholas

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



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



Saturday, 03 July 2021 20:17 CDT
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.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!