Hey
Please can you help with a guide on setting up a bucket in S3, I have tried setting up one but i am getting error message below
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 290, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 809, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 702, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 964, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 947, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 696, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.py”, line 34, in validate
conn.create_bucket(Bucket=bucket_lower)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/client.py”, line 312, in _api_call
return self._make_api_call(operation_name, kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/client.py”, line 579, in _make_api_call
api_params, operation_model, context=request_context)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/client.py”, line 631, in _convert_to_request_dict
params=api_params, model=operation_model, context=context)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/hooks.py”, line 227, in emit
return self._emit(event_name, kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/hooks.py”, line 210, in emit
response = handler(**kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/handlers.py”, line 212, in validate_bucket_name
raise ParamValidationError(report=error_msg)
ParamValidationError: Parameter validation failed:
Invalid bucket name “arn:aws:s3:::xlevel”: Bucket name must match the regex "^[a-zA-Z0-9.-]{1,255}$"
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 935, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 290, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 809, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 702, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 964, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 947, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 696, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/s3_backup_settings/s3_backup_settings.py”, line 34, in validate
conn.create_bucket(Bucket=bucket_lower)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/client.py”, line 312, in _api_call
return self._make_api_call(operation_name, kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/client.py”, line 579, in _make_api_call
api_params, operation_model, context=request_context)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/client.py”, line 631, in _convert_to_request_dict
params=api_params, model=operation_model, context=context)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/hooks.py”, line 227, in emit
return self._emit(event_name, kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/hooks.py”, line 210, in emit
response = handler(**kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/botocore/handlers.py”, line 212, in validate_bucket_name
raise ParamValidationError(report=error_msg)
ParamValidationError: Parameter validation failed:
Invalid bucket name “arn:aws:s3:::xlevel”: Bucket name must match the regex "^[a-zA-Z0-9.-]{1,255}$"