hi . cron has problem with aws
im created new cron for backup db files into aws server and has error and not upload
but aws plugin worked correcly and i can manual manage aws server with aws plugin
panel : 7.15.0 , aws 1.5
hi
==========================================================================================
★start backup[2024-10-20 19:38:40]
|-Backup MySQL database: evan_mydb
|-Database size: 914.73 KB
|-Database Character Set: utf8
|-The available disk space for partition / is: 12.11 GB, and the available Inode is: 1685687
|-Start exporting database:2024-10-20 19:38:40
|-Database backup completed, taking 0.19 seconds, compressed file size: 183.78 KB
|-Uploading to AWS S3, please wait...
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.12/site-packages/boto3/s3/transfer.py", line 372, in upload_file
future.result()
File "/www/server/panel/pyenv/lib/python3.12/site-packages/s3transfer/futures.py", line 103, in result
return self.coordinator.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/s3transfer/futures.py", line 266, in result
raise self.exception
File "/www/server/panel/pyenv/lib/python3.12/site-packages/s3transfer/tasks.py", line 139, in call
return self._execute_main(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/s3transfer/tasks.py", line 162, in execute_main
return_value = self.main(**kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/s3transfer/upload.py", line 764, in _main
client.put_object(Bucket=bucket, Key=key, Body=body, **extra_args)
File "/www/server/panel/pyenv/lib/python3.12/site-packages/botocore/client.py", line 565, in api_call
return self.make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/botocore/client.py", line 1021, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the PutObject operation: The AWS Access Key Id you provided does not exist in our records.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/script/backup.py", line 59, in <module>
backup.backupDatabaseAll(sys.argv[3], echo_id)
File "/www/server/panel/script/backup.py", line 37, in backupDatabaseAll
self.backup_database_all(save, echo_id=echo_id)
File "/www/server/panel/class_v2/panel_backup_v2.py", line 885, in backup_database_all
status, backup_path = self.backup_database(db_name, save, echo_id=echo_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class_v2/panel_backup_v2.py", line 998, in backup_database
res = self._cloud.upload_file1(backup_path, upload_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/plugin/aws_s3/s3lib/client/aws_s3.py", line 258, in upload_file1
client.upload_file(
File "/www/server/panel/pyenv/lib/python3.12/site-packages/boto3/s3/inject.py", line 145, in upload_file
return transfer.upload_file(
^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/boto3/s3/transfer.py", line 378, in upload_file
raise S3UploadFailedError(
boto3.exceptions.S3UploadFailedError: Failed to upload /www/backup/database/mysql/crontab_backup/evan_mydb/evan_mydb_2024-10-20_19-38-40_mysql_data.sql.gz to backup-server-pars/ArvanServerBackup/database/mysql/evan_mydb/evan_mydb_2024-10-20_19-38-40_mysql_data.sql.gz: An error occurred (InvalidAccessKeyId) when calling the PutObject operation: The AWS Access Key Id you provided does not exist in our records.
★[2024-10-20 19:38:41] Successful