• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Amazon S3 Backup, can't save settings

Dmytro

Basic Pleskian
Username:

TITLE

Amazon S3 Backup, can't save settings

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian, 18.0.48 , CloudLinux 8.6, x64

PROBLEM DESCRIPTION

I can't save new settings for S3 backup using wasabisys.com credentials for their cloud storage

STEPS TO REPRODUCE

Just entering settings on the extension page and trying to save

ACTUAL RESULT

Getting error in plesk:

Code:
undefined

Errors from panel.log:

Code:
[2022-11-21 14:42:52.605] 2931096:637b724c93ad7 ERR [panel] Call to a member function getParam() on null
[21-Nov-2022 14:43:47 Europe/Kyiv] PHP Fatal error:  Access level to Aws\Api\Parser\RestXmlParser::$parser must be protected (as in class Aws\Api\Parser\AbstractRestParser) or weaker in /usr/local/psa/admin/plib/modules/s3-backup/vendor/aws/aws-sdk-php/src/Api/Parser/RestXmlParser.php on line 11
[2022-11-21 14:43:47.376] 3895260:637b72834f599 ERR [panel] ERROR: Access level to Aws\Api\Parser\RestXmlParser::$parser must be protected (as in class Aws\Api\Parser\AbstractRestParser) or weaker (RestXmlParser.php:11)

EXPECTED RESULT

Saved settings without errors, here is how it looks like on the another server with almost the same configuration:

JoF91fL.jpg


ANY ADDITIONAL INFORMATION

DxqQTwh.jpg


YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Developers can't reproduce the issue according to your steps to reproduce.
Please clarify it more precisely or contact Plesk Support Team to provide access to your server for further investigation directly on your server.
 
Hi,

I got this error as well.
First, it worked properly when I have initially set up the new S3 backup and tested with my AWS account. But second time when I wanted to add client's AWS credentials (key/secret key combination) it fails, throwing this error.

I have tried with the working access key/secret key and realized that it throws error before even connecting to AWS, as I tried with gibberish credentials also. It will just throw this error. Also, tried to use the search for this error on forums but had no luck. I even tried to uninstall and install the S3 extension back. The server is on AWS EC2 instance, Ubuntu 22.04, installed through their BYOL setup, on AWS Marketplace and using the latest 18.0.48 version (the error also appears on 18.0.47 as well)

Both options don't work: I have created a restricted IAM user account - throws the error from the screenshot
I will use the root account credentials (will not be stored) - throws different error: Class Aws\Api\Parser\QueryParser contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Aws\Api\Parser\AbstractParser parseMemberFromStream) (QueryParser.php:12)

Thanks in advance!
 

Attachments

  • 316241511_10225922017150920_6882881274115307970_n.jpeg
    316241511_10225922017150920_6882881274115307970_n.jpeg
    57.8 KB · Views: 3
Developer's suggestion:

I suggest turning on debug in panel.ini, including log level, utils log, everything, reproducing the error and providing the service team with full logs of this time interval.
 
[2022-11-22 13:10:41.902] 66546:637cca51b9a6c DEBUG [api-rpc/s3-backup] Incoming API-RPC request [e6daa3127a8a73f2d1229342fe9a082f]:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.9.1">
<server>
<get>
<gen_info/>
</get>
</server>
</packet>

[2022-11-22 13:10:41.902] 66546:637cca51b9a6c DEBUG [panel] Protocol version: 1.6.9.1
[2022-11-22 13:10:41.930] 66546:637cca51b9a6c DEBUG [panel] run operator server
[2022-11-22 13:10:41.931] 66546:637cca51b9a6c DEBUG [dbquery] [120] SQL: UPDATE ApiRpcCallsStat SET `Count` = `Count` + 1, `LastExecutionDate` = '2022-11-22 13:10:41' WHERE `Version` = '1.6.9.1' AND `Operator` = 'server' AND `Command` = 'get' AND `Session` = 'admin' AND `FilterName` = '' AND `GroupOperation` = 0
[2022-11-22 13:10:41.931] 66546:637cca51b9a6c DEBUG [dbquery] [120] END: 0.00096 sec
[2022-11-22 13:10:41.932] 66546:637cca51b9a6c DEBUG [dbquery] [121] SQL: select val from admin_aliases_param where param='power_user_panel' AND alias_id = 1
[2022-11-22 13:10:41.932] 66546:637cca51b9a6c DEBUG [dbquery] [121] END: 0.00019 sec
[2022-11-22 13:10:41.933] 66546:637cca51b9a6c DEBUG [api-rpc/s3-backup] API-RPC response [e6daa3127a8a73f2d1229342fe9a082f]:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.9.1">
<server>
<get>
<result>
<status>ok</status>
<gen_info>
<server_name>dev-1.omittedduetoprivacy</server_name>
<server_guid>e3110338-5b50-11ed-9ee8-060351778aa6</server_guid>
<vps-optimized-status>
<aspect>
<name>mysql-innodb</name>
<value>false</value>
</aspect>
<aspect>
<name>apache-modules-all</name>
<value>false</value>
</aspect>
<aspect>
<name>apache-modules-except-php</name>
<value>false</value>
</aspect>
<aspect>
<name>apache-modules-except-scripting</name>
<value>false</value>
</aspect>
</vps-optimized-status>
<mode>poweruser</mode>
</gen_info>
</result>
</get>
</server>
</packet>

[2022-11-22 13:10:41.936] 66546:637cca51b9a6c DEBUG [dbquery] [122] SQL: SELECT `Modules`.* FROM `Modules` WHERE (`name` = 'git')
[2022-11-22 13:10:41.936] 66546:637cca51b9a6c DEBUG [dbquery] [122] END: 0.00026 sec
[2022-11-22 13:10:41.938] 66546:637cca51b9a6c DEBUG [dbquery] [123] SQL: SELECT `Modules`.* FROM `Modules` WHERE (`name` = 'site-import')
[2022-11-22 13:10:41.939] 66546:637cca51b9a6c DEBUG [dbquery] [123] END: 0.00021 sec
[2022-11-22 13:10:41.940] 66546:637cca51b9a6c DEBUG [dbquery] [124] SQL: SELECT `Modules`.* FROM `Modules` WHERE (`name` = 's3-backup')
[2022-11-22 13:10:41.940] 66546:637cca51b9a6c DEBUG [dbquery] [124] END: 0.00020 sec
[2022-11-22 13:10:41.941] 66546:637cca51b9a6c DEBUG [dbquery] [125] SQL: SELECT `Modules`.* FROM `Modules` WHERE (`name` = 's3-backup')
[2022-11-22 13:10:41.941] 66546:637cca51b9a6c DEBUG [dbquery] [125] END: 0.00017 sec
[22-Nov-2022 13:10:41 Etc/UTC] PHP Fatal error: Access level to Aws\Api\Parser\RestXmlParser::$parser must be protected (as in class Aws\Api\Parser\AbstractRestParser) or weaker in /opt/psa/admin/plib/modules/s3-backup/vendor/aws/aws-sdk-php/src/Api/Parser/RestXmlParser.php on line 11
[2022-11-22 13:10:41.943] 66546:637cca51b9a6c ERR [panel] ERROR: Access level to Aws\Api\Parser\RestXmlParser::$parser must be protected (as in class Aws\Api\Parser\AbstractRestParser) or weaker (RestXmlParser.php:11)
[2022-11-22 13:10:41.944] 66546:637cca51b9a6c DEBUG [panel] Execute: '/opt/psa/admin/bin/send-error-report'
[2022-11-22 13:10:42.827] 66546:637cca51b9a6c DEBUG [dbquery] [126] SQL: SELECT `Modules`.* FROM `Modules` WHERE (`name` = 's3-backup')
[2022-11-22 13:10:42.828] 66546:637cca51b9a6c DEBUG [dbquery] [126] END: 0.00034 sec
I hope it helps.
 
Just reporting in: I am also experiencing the same issues. I am adding a custom endpoint to Backblaze.

This process has worked previously on many servers without issue. This is a new server and the settings refuse to save.
 
Back
Top